Lines Matching refs:sysdict
69 PyObject *sd = tstate->interp->sysdict; in sys_get_object_id()
92 PyObject *sysdict = interp->sysdict; in _PySys_GetObject() local
93 if (sysdict == NULL) { in _PySys_GetObject()
96 return _PyDict_GetItemStringWithError(sysdict, name); in _PySys_GetObject()
119 PyObject *sd = interp->sysdict; in sys_set_object()
2749 res = PyDict_SetItemString(sysdict, key, v); \
2760 _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict) in _PySys_InitCore() argument
2768 SET_SYS(tokey, PyMapping_GetItemString(sysdict, fromkey)) in _PySys_InitCore()
2940 PyObject *sysdict = interp->sysdict; in _PySys_UpdateConfig() local
2970 PyDict_SetItemString(sysdict, "pycache_prefix", Py_None); in _PySys_UpdateConfig()
3013 _PySys_SetPreliminaryStderr(PyObject *sysdict) in _PySys_SetPreliminaryStderr() argument
3019 if (_PyDict_SetItemId(sysdict, &PyId_stderr, pstderr) < 0) { in _PySys_SetPreliminaryStderr()
3022 if (PyDict_SetItemString(sysdict, "__stderr__", pstderr) < 0) { in _PySys_SetPreliminaryStderr()
3054 PyObject *sysdict = PyModule_GetDict(sysmod); in _PySys_Create() local
3055 if (sysdict == NULL) { in _PySys_Create()
3058 Py_INCREF(sysdict); in _PySys_Create()
3059 interp->sysdict = sysdict; in _PySys_Create()
3061 if (PyDict_SetItemString(sysdict, "modules", interp->modules) < 0) { in _PySys_Create()
3065 PyStatus status = _PySys_SetPreliminaryStderr(sysdict); in _PySys_Create()
3070 status = _PySys_InitCore(tstate, sysdict); in _PySys_Create()