mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
#7301: add the environment variable $PYTHONWARNINGS to supplement the -W
command line option patch from Brian Curtin
This commit is contained in:
parent
c1bf677e28
commit
aebbaeb962
4 changed files with 60 additions and 0 deletions
|
@ -352,6 +352,8 @@ Miscellaneous options
|
|||
|
||||
:pep:`230` -- Warning framework
|
||||
|
||||
:envvar:`PYTHONWARNINGS`
|
||||
|
||||
|
||||
.. cmdoption:: -x
|
||||
|
||||
|
@ -547,6 +549,12 @@ These environment variables influence Python's behavior.
|
|||
value instead of the value got through the C runtime. Only works on
|
||||
Mac OS X.
|
||||
|
||||
.. envvar:: PYTHONWARNINGS
|
||||
|
||||
This is the equivalent to the :option:`-W` option. If set to a comma
|
||||
separated string, it is equivalent to specifying :option:`-W` multiple
|
||||
times.
|
||||
|
||||
|
||||
Debug-mode variables
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue