Lines Matching refs:warnoptions
1021 static PyObject *warnoptions = NULL; variable
1026 if (warnoptions == NULL || !PyList_Check(warnoptions)) in PySys_ResetWarnOptions()
1028 PyList_SetSlice(warnoptions, 0, PyList_GET_SIZE(warnoptions), NULL); in PySys_ResetWarnOptions()
1036 if (warnoptions == NULL || !PyList_Check(warnoptions)) { in PySys_AddWarnOption()
1037 Py_XDECREF(warnoptions); in PySys_AddWarnOption()
1038 warnoptions = PyList_New(0); in PySys_AddWarnOption()
1039 if (warnoptions == NULL) in PySys_AddWarnOption()
1044 PyList_Append(warnoptions, str); in PySys_AddWarnOption()
1052 return (warnoptions != NULL && (PyList_Size(warnoptions) > 0)) ? 1 : 0; in PySys_HasWarnOptions()
1482 if (warnoptions == NULL) { in _PySys_Init()
1483 warnoptions = PyList_New(0); in _PySys_Init()
1486 Py_INCREF(warnoptions); in _PySys_Init()
1488 if (warnoptions != NULL) { in _PySys_Init()
1489 PyDict_SetItemString(sysdict, "warnoptions", warnoptions); in _PySys_Init()