#7301: add the environment variable $PYTHONWARNINGS to supplement the -W

command line option
patch from Brian Curtin
This commit is contained in:
Philip Jenvey 2010-04-06 23:24:45 +00:00
parent c1bf677e28
commit aebbaeb962
4 changed files with 60 additions and 0 deletions

View file

@ -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
~~~~~~~~~~~~~~~~~~~~