Searched refs:sysmod (Results 1 – 3 of 3) sorted by relevance
/third_party/python/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 …]
|
/third_party/python/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 | 3093 PyObject *sysmod = _PyModule_CreateInitialized(&sysmodule, PYTHON_API_VERSION); in _PySys_Create() local 3094 if (sysmod == NULL) { in _PySys_Create() 3098 PyObject *sysdict = PyModule_GetDict(sysmod); in _PySys_Create() 3119 if (_PyImport_FixupBuiltin(sysmod, "sys", interp->modules) < 0) { in _PySys_Create() 3125 *sysmod_p = sysmod; in _PySys_Create()
|