summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2010-04-06 23:24:45 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2010-04-06 23:24:45 (GMT)
commitaebbaeb962b306d6143f77762dd53fae176bcf0e (patch)
tree50306f126f5f937e36252821dcfcd4398a4b3c82 /Doc
parentc1bf677e28a52b501ab9f93a6b78c6c0abbcc8ce (diff)
downloadcpython-aebbaeb962b306d6143f77762dd53fae176bcf0e.zip
cpython-aebbaeb962b306d6143f77762dd53fae176bcf0e.tar.gz
cpython-aebbaeb962b306d6143f77762dd53fae176bcf0e.tar.bz2
#7301: add the environment variable $PYTHONWARNINGS to supplement the -W
command line option patch from Brian Curtin
Diffstat (limited to 'Doc')
-rw-r--r--Doc/using/cmdline.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index cd5b8b5..7ccf8f0 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -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
~~~~~~~~~~~~~~~~~~~~