/external/python/cpython2/Python/ |
D | sysmodule.c | 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() [all …]
|
/external/python/cpython3/Python/ |
D | sysmodule.c | 53 _Py_IDENTIFIER(warnoptions); 1759 PyObject *warnoptions = _PySys_GetObjectId(&PyId_warnoptions); in get_warnoptions() local 1760 if (warnoptions == NULL || !PyList_Check(warnoptions)) { in get_warnoptions() 1771 warnoptions = PyList_New(0); in get_warnoptions() 1772 if (warnoptions == NULL) in get_warnoptions() 1774 if (_PySys_SetObjectId(&PyId_warnoptions, warnoptions)) { in get_warnoptions() 1775 Py_DECREF(warnoptions); in get_warnoptions() 1778 Py_DECREF(warnoptions); in get_warnoptions() 1780 return warnoptions; in get_warnoptions() 1792 PyObject *warnoptions = _PySys_GetObjectId(&PyId_warnoptions); in PySys_ResetWarnOptions() local [all …]
|
D | pylifecycle.c | 973 if (interp->config.warnoptions != NULL && in _Py_InitializeMainInterpreter() 974 PyList_Size(interp->config.warnoptions) > 0) in _Py_InitializeMainInterpreter()
|
/external/python/cpython3/Lib/test/libregrtest/ |
D | save_env.py | 173 return id(sys.warnoptions), sys.warnoptions, sys.warnoptions[:] 175 sys.warnoptions = saved_options[1] 176 sys.warnoptions[:] = saved_options[2]
|
/external/python/cpython3/Lib/unittest/test/ |
D | test_program.py | 233 warnoptions = sys.warnoptions[:] 235 sys.warnoptions[:] = [] 240 sys.warnoptions[:] = ['somevalue'] 246 sys.warnoptions[:] = warnoptions
|
/external/python/cpython3/Programs/ |
D | _testembed.c | 487 static wchar_t* warnoptions[2] = { in test_init_from_config() local 491 config.nwarnoption = Py_ARRAY_LENGTH(warnoptions); in test_init_from_config() 492 config.warnoptions = warnoptions; in test_init_from_config()
|
/external/python/cpython3/Modules/ |
D | main.c | 438 wchar_t **warnoptions; /* -W options */ member 576 clear_wstrlist(cmdline->nwarnoption, cmdline->warnoptions); in pymain_clear_cmdline() 578 cmdline->warnoptions = NULL; in pymain_clear_cmdline() 864 &cmdline->warnoptions, in pymain_parse_cmdline_impl() 971 &config->warnoptions, in config_add_warnings_optlist() 1005 &config->warnoptions, in config_init_warnoptions() 1021 cmdline->warnoptions); in config_init_warnoptions() 1039 &config->warnoptions, in config_init_warnoptions() 2456 CLEAR_WSTRLIST(config->nwarnoption, config->warnoptions); in _PyCoreConfig_Clear() 2522 COPY_WSTRLIST(nwarnoption, warnoptions); in _PyCoreConfig_Copy() [all …]
|
/external/python/cpython3/Include/ |
D | pystate.h | 58 wchar_t **warnoptions; /* Warnings options */ member 104 PyObject *warnoptions; /* sys.warnoptions list, can be NULL */ member
|
/external/python/cpython2/Doc/c-api/ |
D | sys.rst | 78 Reset :data:`sys.warnoptions` to an empty list. 82 Append *s* to :data:`sys.warnoptions`.
|
/external/python/cpython3/Doc/library/ |
D | warnings.rst | 184 interpretation in ``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 | 615 in ``sys.flags`` and ``sys.warnoptions``.
|
D | sys.rst | 1479 .. data:: warnoptions
|
/external/python/cpython3/Doc/c-api/ |
D | sys.rst | 208 Reset :data:`sys.warnoptions` to an empty list. This function may be 213 Append *s* to :data:`sys.warnoptions`. This function must be called prior 218 Append *unicode* to :data:`sys.warnoptions`.
|
/external/python/cpython3/Lib/unittest/ |
D | main.py | 84 if warnings is None and not sys.warnoptions:
|
/external/python/cpython2/Lib/ |
D | warnings.py | 409 _processoptions(sys.warnoptions)
|
D | subprocess.py | 159 for opt in sys.warnoptions:
|
/external/python/cpython3/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
|
/external/python/cpython3/Lib/ |
D | warnings.py | 554 _processoptions(sys.warnoptions)
|
D | subprocess.py | 285 warnopts = sys.warnoptions[:]
|
/external/python/cpython2/Doc/library/ |
D | warnings.rst | 161 :option:`-W` options without interpretation in ``sys.warnoptions``; the
|
D | sys.rst | 1078 .. data:: warnoptions
|
/external/python/cpython3/Lib/idlelib/ |
D | pyshell.py | 413 w = ['-W' + s for s in sys.warnoptions]
|
/external/python/cpython2/Lib/idlelib/ |
D | PyShell.py | 413 w = ['-W' + s for s in sys.warnoptions]
|
/external/python/cpython3/Doc/tutorial/ |
D | modules.rst | 325 'thread_info', 'version', 'version_info', 'warnoptions']
|
/external/python/cpython2/Doc/tutorial/ |
D | modules.rst | 322 'version', 'version_info', 'warnoptions']
|