Searched refs:sysmod (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_code_module.py | 28 self.sysmod = stack.enter_context(prepatch) 30 self.sysmod.excepthook = self.sysmod.__excepthook__ 31 del self.sysmod.ps1 32 del self.sysmod.ps2 37 self.assertEqual(self.sysmod.ps1, '>>> ') 38 self.sysmod.ps1 = 'custom1> ' 40 self.assertEqual(self.sysmod.ps1, 'custom1> ') 45 self.assertEqual(self.sysmod.ps2, '... ') 46 self.sysmod.ps1 = 'custom2> ' 48 self.assertEqual(self.sysmod.ps1, 'custom2> ') [all …]
|
/external/python/cpython3/Python/ |
D | pylifecycle.c | 288 initimport(PyInterpreterState *interp, PyObject *sysmod) in initimport() argument 327 value = PyObject_CallMethod(importlib, "_install", "OO", sysmod, impmod); in initimport() 755 PyObject *sysmod; in _Py_InitializeCore_impl() local 756 err = _PySys_BeginInit(&sysmod); in _Py_InitializeCore_impl() 761 interp->sysdict = PyModule_GetDict(sysmod); in _Py_InitializeCore_impl() 768 _PyImport_FixupBuiltin(sysmod, "sys", modules); in _Py_InitializeCore_impl() 818 err = initimport(interp, sysmod); in _Py_InitializeCore_impl() 1358 PyObject *bimod, *sysmod; in new_interpreter() local 1411 sysmod = _PyImport_FindBuiltin("sys", modules); in new_interpreter() 1412 if (sysmod != NULL) { in new_interpreter() [all …]
|
D | sysmodule.c | 2283 _PySys_BeginInit(PyObject **sysmod) in _PySys_BeginInit() argument 2438 *sysmod = m; in _PySys_BeginInit()
|
/external/python/cpython2/Python/ |
D | pythonrun.c | 166 PyObject *bimod, *sysmod; in Py_InitializeEx() local 248 sysmod = _PySys_Init(); in Py_InitializeEx() 249 if (sysmod == NULL) in Py_InitializeEx() 251 interp->sysdict = PyModule_GetDict(sysmod); in Py_InitializeEx() 589 PyObject *bimod, *sysmod; in Py_NewInterpreter() local 618 sysmod = _PyImport_FindExtension("sys", "sys"); in Py_NewInterpreter() 619 if (bimod != NULL && sysmod != NULL) { in Py_NewInterpreter() 620 interp->sysdict = PyModule_GetDict(sysmod); in Py_NewInterpreter()
|
/external/python/cpython3/Include/ |
D | pylifecycle.h | 168 PyAPI_FUNC(_PyInitError) _PySys_BeginInit(PyObject **sysmod);
|