/third_party/python/Python/ |
D | sysmodule.c | 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 [all …]
|
D | initconfig.c | 623 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 …]
|
D | pylifecycle.c | 1136 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/ |
D | save_env.py | 211 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/ |
D | test_program.py | 241 warnoptions = sys.warnoptions[:] 243 sys.warnoptions[:] = [] 248 sys.warnoptions[:] = ['somevalue'] 254 sys.warnoptions[:] = warnoptions
|
/third_party/python/Programs/ |
D | _testembed.c | 554 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.py | 200 self.check(warnoptions=[]) 201 self.check(warnoptions=["default", "ignore"])
|
D | test_embed.py | 920 warnoptions=['default']) 928 warnoptions=['default']) 1393 warnoptions = [ 1410 'warnoptions': warnoptions,
|
/third_party/python/Include/cpython/ |
D | initconfig.h | 156 PyWideStringList warnoptions; member
|
/third_party/python/Doc/library/ |
D | warnings.rst | 184 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:
|
D | test.rst | 521 in ``sys.flags`` and ``sys.warnoptions``.
|
D | sys.rst | 1703 .. data:: warnoptions
|
/third_party/python/Lib/unittest/ |
D | main.py | 84 if warnings is None and not sys.warnoptions:
|
/third_party/python/Doc/c-api/ |
D | sys.rst | 235 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`.
|
D | init_config.rst | 1131 .. 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/ |
D | 3.7.0a4.rst | 144 ``error::BytesWarning`` entries into ``sys.warnoptions``, ensuring that they 155 `-X dev` now injects a ``'default'`` entry into sys.warnoptions, ensuring
|
D | 3.9.0a1.rst | 323 Fix warnings options priority: ``PyConfig.warnoptions`` has the highest
|
/third_party/python/Lib/ |
D | warnings.py | 538 _processoptions(sys.warnoptions)
|
D | subprocess.py | 307 warnopts = sys.warnoptions[:]
|
/third_party/python/Lib/idlelib/ |
D | pyshell.py | 447 w = ['-W' + s for s in sys.warnoptions]
|
/third_party/python/Doc/tutorial/ |
D | modules.rst | 330 'warnoptions']
|
/third_party/python/Tools/c-analyzer/ |
D | TODO | 597 Python/sysmodule.c:PyId_warnoptions _Py_IDENTIFIER(warnoptions)
|
/third_party/python/Doc/whatsnew/ |
D | 3.7.rst | 1578 to the warnings machinery via the :data:`sys.warnoptions` attribute.
|