Searched refs:sys_modules (Results 1 – 2 of 2) sorted by relevance
9 from sys import modules as sys_modules unknown22 if 'thread' in sys_modules:23 held_thread = sys_modules['thread']27 sys_modules['thread'] = sys_modules['dummy_thread']29 if 'threading' in sys_modules:33 held_threading = sys_modules['threading']35 del sys_modules['threading']37 if '_threading_local' in sys_modules:41 held__threading_local = sys_modules['_threading_local']43 del sys_modules['_threading_local'][all …]
1841 PyObject *sys_modules; in MODULE_INITFUNC() local1895 sys_modules = PySys_GetObject("modules"); in MODULE_INITFUNC()1901 PyDict_SetItem(sys_modules, errmod_name, errors_module); in MODULE_INITFUNC()1911 PyDict_SetItem(sys_modules, modelmod_name, model_module); in MODULE_INITFUNC()