Lines Matching refs:sysdict
70 PyObject *sd = tstate->interp->sysdict; in sys_get_object_id()
93 PyObject *sysdict = interp->sysdict; in _PySys_GetObject() local
94 if (sysdict == NULL) { in _PySys_GetObject()
97 return _PyDict_GetItemStringWithError(sysdict, name); in _PySys_GetObject()
120 PyObject *sd = interp->sysdict; in sys_set_object()
2793 res = PyDict_SetItemString(sysdict, key, v); \
2804 _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict) in _PySys_InitCore() argument
2812 SET_SYS(tokey, PyMapping_GetItemString(sysdict, fromkey)) in _PySys_InitCore()
2984 PyObject *sysdict = interp->sysdict; in _PySys_UpdateConfig() local
3014 PyDict_SetItemString(sysdict, "pycache_prefix", Py_None); in _PySys_UpdateConfig()
3057 _PySys_SetPreliminaryStderr(PyObject *sysdict) in _PySys_SetPreliminaryStderr() argument
3063 if (_PyDict_SetItemId(sysdict, &PyId_stderr, pstderr) < 0) { in _PySys_SetPreliminaryStderr()
3066 if (PyDict_SetItemString(sysdict, "__stderr__", pstderr) < 0) { in _PySys_SetPreliminaryStderr()
3098 PyObject *sysdict = PyModule_GetDict(sysmod); in _PySys_Create() local
3099 if (sysdict == NULL) { in _PySys_Create()
3102 Py_INCREF(sysdict); in _PySys_Create()
3103 interp->sysdict = sysdict; in _PySys_Create()
3105 if (PyDict_SetItemString(sysdict, "modules", interp->modules) < 0) { in _PySys_Create()
3109 PyStatus status = _PySys_SetPreliminaryStderr(sysdict); in _PySys_Create()
3114 status = _PySys_InitCore(tstate, sysdict); in _PySys_Create()