Searched refs:warnoptions (Results 1 – 8 of 8) sorted by relevance
1021 static PyObject *warnoptions = NULL; variable1026 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()[all …]
78 Reset :data:`sys.warnoptions` to an empty list.82 Append *s* to :data:`sys.warnoptions`.
406 _processoptions(sys.warnoptions)
155 for opt in sys.warnoptions:
161 :option:`-W` options without interpretation in ``sys.warnoptions``; the
1063 .. data:: warnoptions
413 w = ['-W' + s for s in sys.warnoptions]
303 'version', 'version_info', 'warnoptions']