Searched refs:sysdict (Results 1 – 12 of 12) sorted by relevance
/external/python/cpython2/Python/ |
D | sysmodule.c | 53 PyObject *sd = tstate->interp->sysdict; in PySys_GetObject() 75 PyObject *sd = tstate->interp->sysdict; in PySys_SetObject() 1359 PyObject *m, *v, *sysdict; in _PySys_Init() local 1366 sysdict = PyModule_GetDict(m); in _PySys_Init() 1370 PyDict_SetItemString(sysdict, key, v); \ in _PySys_Init() 1406 PyDict_SetItemString(sysdict, "stdin", sysin); in _PySys_Init() 1407 PyDict_SetItemString(sysdict, "stdout", sysout); in _PySys_Init() 1408 PyDict_SetItemString(sysdict, "stderr", syserr); in _PySys_Init() 1410 PyDict_SetItemString(sysdict, "__stdin__", sysin); in _PySys_Init() 1411 PyDict_SetItemString(sysdict, "__stdout__", sysout); in _PySys_Init() [all …]
|
D | pythonrun.c | 251 interp->sysdict = PyModule_GetDict(sysmod); in Py_InitializeEx() 252 if (interp->sysdict == NULL) in Py_InitializeEx() 254 Py_INCREF(interp->sysdict); in Py_InitializeEx() 257 PyDict_SetItemString(interp->sysdict, "modules", in Py_InitializeEx() 620 interp->sysdict = PyModule_GetDict(sysmod); in Py_NewInterpreter() 621 if (interp->sysdict == NULL) in Py_NewInterpreter() 623 Py_INCREF(interp->sysdict); in Py_NewInterpreter() 625 PyDict_SetItemString(interp->sysdict, "modules", in Py_NewInterpreter()
|
D | pystate.c | 71 interp->sysdict = NULL; in PyInterpreterState_New() 111 Py_CLEAR(interp->sysdict); in PyInterpreterState_Clear()
|
D | _warnings.c | 460 globals = PyThreadState_Get()->interp->sysdict; in setup_context()
|
/external/python/cpython3/Python/ |
D | pylifecycle.c | 761 interp->sysdict = PyModule_GetDict(sysmod); in _Py_InitializeCore_impl() 762 if (interp->sysdict == NULL) { in _Py_InitializeCore_impl() 766 Py_INCREF(interp->sysdict); in _Py_InitializeCore_impl() 767 PyDict_SetItemString(interp->sysdict, "modules", modules); in _Py_InitializeCore_impl() 880 int res = PyDict_SetItemString(interp->sysdict, "argv", config->argv); in _Py_ReconfigureMainInterpreter() 932 if (_PySys_EndInit(interp->sysdict, &interp->config) < 0) { in _Py_InitializeMainInterpreter() 1413 interp->sysdict = PyModule_GetDict(sysmod); in new_interpreter() 1414 if (interp->sysdict == NULL) in new_interpreter() 1416 Py_INCREF(interp->sysdict); in new_interpreter() 1417 PyDict_SetItemString(interp->sysdict, "modules", modules); in new_interpreter() [all …]
|
D | sysmodule.c | 60 PyObject *sd = tstate->interp->sysdict; in _PySys_GetObjectId() 70 PyObject *sd = tstate->interp->sysdict; in PySys_GetObject() 80 PyObject *sd = tstate->interp->sysdict; in _PySys_SetObjectId() 95 PyObject *sd = tstate->interp->sysdict; in PySys_SetObject() 2263 res = PyDict_SetItemString(sysdict, key, v); \ 2274 res = PyDict_SetItemString(sysdict, key, v); \ 2285 PyObject *m, *sysdict, *version_info; in _PySys_BeginInit() local 2292 sysdict = PyModule_GetDict(m); in _PySys_BeginInit() 2313 PyDict_GetItemString(sysdict, "displayhook")); in _PySys_BeginInit() 2315 PyDict_GetItemString(sysdict, "excepthook")); in _PySys_BeginInit() [all …]
|
D | import.c | 426 if (PyDict_SetItemString(interp->sysdict, *p, Py_None) < 0) { in PyImport_Cleanup() 433 value = PyDict_GetItemString(interp->sysdict, *(p+1)); in PyImport_Cleanup() 436 if (PyDict_SetItemString(interp->sysdict, *p, value) < 0) { in PyImport_Cleanup() 553 if (dict == interp->builtins || dict == interp->sysdict) in PyImport_Cleanup() 567 _PyModule_ClearDict(interp->sysdict); in PyImport_Cleanup()
|
D | pystate.c | 136 interp->sysdict = NULL; in PyInterpreterState_New() 208 Py_CLEAR(interp->sysdict); in PyInterpreterState_Clear()
|
D | _warnings.c | 694 globals = PyThreadState_Get()->interp->sysdict; in setup_context()
|
/external/python/cpython2/Include/ |
D | pystate.h | 22 PyObject *sysdict; member
|
/external/python/cpython3/Include/ |
D | pylifecycle.h | 169 PyAPI_FUNC(int) _PySys_EndInit(PyObject *sysdict, _PyMainInterpreterConfig *config);
|
D | pystate.h | 124 PyObject *sysdict; member
|