Home
last modified time | relevance | path

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

12

/external/python/cpython2/Python/
Dsysmodule.c1021 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/
Dsysmodule.c53 _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 …]
Dpylifecycle.c973 if (interp->config.warnoptions != NULL && in _Py_InitializeMainInterpreter()
974 PyList_Size(interp->config.warnoptions) > 0) in _Py_InitializeMainInterpreter()
/external/python/cpython3/Lib/test/libregrtest/
Dsave_env.py173 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/
Dtest_program.py233 warnoptions = sys.warnoptions[:]
235 sys.warnoptions[:] = []
240 sys.warnoptions[:] = ['somevalue']
246 sys.warnoptions[:] = warnoptions
/external/python/cpython3/Programs/
D_testembed.c487 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/
Dmain.c438 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/
Dpystate.h58 wchar_t **warnoptions; /* Warnings options */ member
104 PyObject *warnoptions; /* sys.warnoptions list, can be NULL */ member
/external/python/cpython2/Doc/c-api/
Dsys.rst78 Reset :data:`sys.warnoptions` to an empty list.
82 Append *s* to :data:`sys.warnoptions`.
/external/python/cpython3/Doc/library/
Dwarnings.rst184 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:
Dtest.rst615 in ``sys.flags`` and ``sys.warnoptions``.
Dsys.rst1479 .. data:: warnoptions
/external/python/cpython3/Doc/c-api/
Dsys.rst208 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/
Dmain.py84 if warnings is None and not sys.warnoptions:
/external/python/cpython2/Lib/
Dwarnings.py409 _processoptions(sys.warnoptions)
Dsubprocess.py159 for opt in sys.warnoptions:
/external/python/cpython3/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
/external/python/cpython3/Lib/
Dwarnings.py554 _processoptions(sys.warnoptions)
Dsubprocess.py285 warnopts = sys.warnoptions[:]
/external/python/cpython2/Doc/library/
Dwarnings.rst161 :option:`-W` options without interpretation in ``sys.warnoptions``; the
Dsys.rst1078 .. data:: warnoptions
/external/python/cpython3/Lib/idlelib/
Dpyshell.py413 w = ['-W' + s for s in sys.warnoptions]
/external/python/cpython2/Lib/idlelib/
DPyShell.py413 w = ['-W' + s for s in sys.warnoptions]
/external/python/cpython3/Doc/tutorial/
Dmodules.rst325 'thread_info', 'version', 'version_info', 'warnoptions']
/external/python/cpython2/Doc/tutorial/
Dmodules.rst322 'version', 'version_info', 'warnoptions']

12