Lines Matching refs:warnoptions
63 _Py_IDENTIFIER(warnoptions);
2219 PyObject *warnoptions = sys_get_object_id(tstate, &PyId_warnoptions); in get_warnoptions() local
2220 if (warnoptions == NULL || !PyList_Check(warnoptions)) { in get_warnoptions()
2231 warnoptions = PyList_New(0); in get_warnoptions()
2232 if (warnoptions == NULL) { in get_warnoptions()
2235 if (sys_set_object_id(tstate->interp, &PyId_warnoptions, warnoptions)) { in get_warnoptions()
2236 Py_DECREF(warnoptions); in get_warnoptions()
2239 Py_DECREF(warnoptions); in get_warnoptions()
2241 return warnoptions; in get_warnoptions()
2253 PyObject *warnoptions = sys_get_object_id(tstate, &PyId_warnoptions); in PySys_ResetWarnOptions() local
2254 if (warnoptions == NULL || !PyList_Check(warnoptions)) in PySys_ResetWarnOptions()
2256 PyList_SetSlice(warnoptions, 0, PyList_GET_SIZE(warnoptions), NULL); in PySys_ResetWarnOptions()
2262 PyObject *warnoptions = get_warnoptions(tstate); in _PySys_AddWarnOptionWithError() local
2263 if (warnoptions == NULL) { in _PySys_AddWarnOptionWithError()
2266 if (PyList_Append(warnoptions, option)) { in _PySys_AddWarnOptionWithError()
2304 PyObject *warnoptions = sys_get_object_id(tstate, &PyId_warnoptions); in PySys_HasWarnOptions() local
2305 return (warnoptions != NULL && PyList_Check(warnoptions) in PySys_HasWarnOptions()
2306 && PyList_GET_SIZE(warnoptions) > 0); in PySys_HasWarnOptions()
2975 COPY_LIST("warnoptions", config->warnoptions); in _PySys_UpdateConfig()