Lines Matching +refs:temp +refs:option +refs:key
68 sys_get_object_id(PyThreadState *tstate, _Py_Identifier *key) in sys_get_object_id() argument
76 PyObject *value = _PyDict_GetItemIdWithError(sd, key); in sys_get_object_id()
84 _PySys_GetObjectId(_Py_Identifier *key) in _PySys_GetObjectId() argument
87 return sys_get_object_id(tstate, key); in _PySys_GetObjectId()
115 sys_set_object(PyInterpreterState *interp, PyObject *key, PyObject *v) in sys_set_object() argument
117 if (key == NULL) { in sys_set_object()
122 v = _PyDict_Pop(sd, key, Py_None); in sys_set_object()
130 return PyDict_SetItem(sd, key, v); in sys_set_object()
135 sys_set_object_id(PyInterpreterState *interp, _Py_Identifier *key, PyObject *v) in sys_set_object_id() argument
137 return sys_set_object(interp, _PyUnicode_FromId(key), v); in sys_set_object_id()
141 _PySys_SetObjectId(_Py_Identifier *key, PyObject *v) in _PySys_SetObjectId() argument
144 return sys_set_object_id(interp, key, v); in _PySys_SetObjectId()
150 PyObject *key = v ? PyUnicode_InternFromString(name) in sys_set_object_str() local
152 int r = sys_set_object(interp, key, v); in sys_set_object_str()
153 Py_XDECREF(key); in sys_set_object_str()
1065 PyObject *temp = tstate->c_traceobj; in sys_gettrace_impl() local
1067 if (temp == NULL) in sys_gettrace_impl()
1068 temp = Py_None; in sys_gettrace_impl()
1069 Py_INCREF(temp); in sys_gettrace_impl()
1070 return temp; in sys_gettrace_impl()
1114 PyObject *temp = tstate->c_profileobj; in sys_getprofile_impl() local
1116 if (temp == NULL) in sys_getprofile_impl()
1117 temp = Py_None; in sys_getprofile_impl()
1118 Py_INCREF(temp); in sys_getprofile_impl()
1119 return temp; in sys_getprofile_impl()
2302 _PySys_AddWarnOptionWithError(PyThreadState *tstate, PyObject *option) in _PySys_AddWarnOptionWithError() argument
2308 if (PyList_Append(warnoptions, option)) { in _PySys_AddWarnOptionWithError()
2315 PySys_AddWarnOptionUnicode(PyObject *option) in PySys_AddWarnOptionUnicode() argument
2318 if (_PySys_AddWarnOptionWithError(tstate, option) < 0) { in PySys_AddWarnOptionUnicode()
2787 #define SET_SYS(key, value) \ argument
2793 res = PyDict_SetItemString(sysdict, key, v); \
2800 #define SET_SYS_FROM_STRING(key, value) \ argument
2801 SET_SYS(key, PyUnicode_FromString(value))
2967 const wchar_t *option = xoptions[i]; in sys_create_xoptions_dict() local
2968 if (sys_add_xoption(dict, option) < 0) { in sys_create_xoptions_dict()
3312 sys_write(_Py_Identifier *key, FILE *fp, const char *format, va_list va) in sys_write() argument
3321 file = sys_get_object_id(tstate, key); in sys_write()
3356 sys_format(_Py_Identifier *key, FILE *fp, const char *format, va_list va) in sys_format() argument
3364 file = sys_get_object_id(tstate, key); in sys_format()