Searched refs:sysmod (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_code_module.py | 29 self.sysmod = stack.enter_context(prepatch) 31 self.sysmod.excepthook = self.sysmod.__excepthook__ 32 del self.sysmod.ps1 33 del self.sysmod.ps2 38 self.assertEqual(self.sysmod.ps1, '>>> ') 39 self.sysmod.ps1 = 'custom1> ' 41 self.assertEqual(self.sysmod.ps1, 'custom1> ') 46 self.assertEqual(self.sysmod.ps2, '... ') 47 self.sysmod.ps1 = 'custom2> ' 49 self.assertEqual(self.sysmod.ps1, 'custom2> ') [all …]
|
/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/Python/ |
D | pylifecycle.c | 156 init_importlib(PyThreadState *tstate, PyObject *sysmod) in init_importlib() argument 191 "OO", sysmod, imp_mod); in init_importlib() 794 PyObject *sysmod = NULL; in pycore_interp_init() local 824 status = _PySys_Create(tstate, &sysmod); in pycore_interp_init() 837 if (init_importlib(tstate, sysmod) < 0) { in pycore_interp_init() 844 Py_XDECREF(sysmod); in pycore_interp_init()
|
D | sysmodule.c | 3049 PyObject *sysmod = _PyModule_CreateInitialized(&sysmodule, PYTHON_API_VERSION); in _PySys_Create() local 3050 if (sysmod == NULL) { in _PySys_Create() 3054 PyObject *sysdict = PyModule_GetDict(sysmod); in _PySys_Create() 3075 if (_PyImport_FixupBuiltin(sysmod, "sys", interp->modules) < 0) { in _PySys_Create() 3081 *sysmod_p = sysmod; in _PySys_Create()
|