Home
last modified time | relevance | path

Searched refs:warnoptions (Results 1 – 23 of 23) sorted by relevance

/third_party/python/Python/
Dsysmodule.c63 _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
[all …]
Dinitconfig.c623 assert(_PyWideStringList_CheckConsistency(&config->warnoptions)); in config_check_consistency()
660 _PyWideStringList_Clear(&config->warnoptions); in PyConfig_Clear()
898 COPY_WSTRLIST(warnoptions); in _PyConfig_Copy()
1001 SET_ITEM_WSTRLIST(warnoptions); in _PyConfig_AsDict()
1277 GET_WSTRLIST(warnoptions); in _PyConfig_FromDict()
2238 config_parse_cmdline(PyConfig *config, PyWideStringList *warnoptions, in config_parse_cmdline() argument
2369 status = PyWideStringList_Append(warnoptions, _PyOS_optarg); in config_parse_cmdline()
2428 config_init_env_warnoptions(PyConfig *config, PyWideStringList *warnoptions) in config_init_env_warnoptions() argument
2450 status = PyWideStringList_Append(warnoptions, warning); in config_init_env_warnoptions()
2469 if (_PyWideStringList_Find(&config->warnoptions, option)) { in warnoptions_append()
[all …]
Dpylifecycle.c1136 PyObject *warnoptions = PySys_GetObject("warnoptions"); in init_interp_main() local
1137 if (warnoptions != NULL && PyList_Size(warnoptions) > 0) in init_interp_main()
/third_party/python/Lib/test/libregrtest/
Dsave_env.py211 return id(sys.warnoptions), sys.warnoptions, sys.warnoptions[:]
213 sys.warnoptions = saved_options[1]
214 sys.warnoptions[:] = saved_options[2]
/third_party/python/Lib/unittest/test/
Dtest_program.py241 warnoptions = sys.warnoptions[:]
243 sys.warnoptions[:] = []
248 sys.warnoptions[:] = ['somevalue']
254 sys.warnoptions[:] = warnoptions
/third_party/python/Programs/
D_testembed.c554 wchar_t* warnoptions[1] = { in test_init_from_config() local
557 config_set_wide_string_list(&config, &config.warnoptions, in test_init_from_config()
558 Py_ARRAY_LENGTH(warnoptions), warnoptions); in test_init_from_config()
1388 status = PyWideStringList_Append(&config.warnoptions, in test_init_sys_add()
1508 status = PyWideStringList_Append(&config.warnoptions, in test_init_warnoptions()
1526 status = PyWideStringList_Append(&config.warnoptions, in test_init_warnoptions()
1532 status = PyWideStringList_Insert(&config.warnoptions, in test_init_warnoptions()
/third_party/python/Lib/test/
D_test_embed_set_config.py200 self.check(warnoptions=[])
201 self.check(warnoptions=["default", "ignore"])
Dtest_embed.py920 warnoptions=['default'])
928 warnoptions=['default'])
1393 warnoptions = [
1410 'warnoptions': warnoptions,
/third_party/python/Include/cpython/
Dinitconfig.h156 PyWideStringList warnoptions; member
/third_party/python/Doc/library/
Dwarnings.rst184 interpretation in :data:`sys.warnoptions`; the :mod:`warnings` module parses these
244 instead configured via :data:`sys.warnoptions` when :option:`-b` is specified
255 or otherwise working on the application. The :data:`sys.warnoptions` attribute
261 if not sys.warnoptions:
271 if not sys.warnoptions:
Dtest.rst521 in ``sys.flags`` and ``sys.warnoptions``.
Dsys.rst1703 .. data:: warnoptions
/third_party/python/Lib/unittest/
Dmain.py84 if warnings is None and not sys.warnoptions:
/third_party/python/Doc/c-api/
Dsys.rst235 Reset :data:`sys.warnoptions` to an empty list. This function may be
240 Append *s* to :data:`sys.warnoptions`. This function must be called prior
245 Append *unicode* to :data:`sys.warnoptions`.
Dinit_config.rst1131 .. c:member:: PyWideStringList warnoptions
1134 to highest priority: :data:`sys.warnoptions`.
1136 The :mod:`warnings` module adds :data:`sys.warnoptions` in the reverse
1137 order: the last :c:member:`PyConfig.warnoptions` item becomes the first
1142 :c:member:`~PyConfig.warnoptions`, it can be used multiple times.
/third_party/python/Misc/NEWS.d/
D3.7.0a4.rst144 ``error::BytesWarning`` entries into ``sys.warnoptions``, ensuring that they
155 `-X dev` now injects a ``'default'`` entry into sys.warnoptions, ensuring
D3.9.0a1.rst323 Fix warnings options priority: ``PyConfig.warnoptions`` has the highest
/third_party/python/Lib/
Dwarnings.py538 _processoptions(sys.warnoptions)
Dsubprocess.py307 warnopts = sys.warnoptions[:]
/third_party/python/Lib/idlelib/
Dpyshell.py447 w = ['-W' + s for s in sys.warnoptions]
/third_party/python/Doc/tutorial/
Dmodules.rst330 'warnoptions']
/third_party/python/Tools/c-analyzer/
DTODO597 Python/sysmodule.c:PyId_warnoptions _Py_IDENTIFIER(warnoptions)
/third_party/python/Doc/whatsnew/
D3.7.rst1578 to the warnings machinery via the :data:`sys.warnoptions` attribute.