summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-14 03:42:48 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-14 03:42:48 (GMT)
commitf31b69f9dbfcb0d7f57147abcba47a940bd9430b (patch)
tree8f8ee58ab46f7fddb4bd92d9f9693c0131050516 /Doc/library/sys.rst
parent620fbe6632eef6b6c80145eff024e0b2a8bad4da (diff)
downloadcpython-f31b69f9dbfcb0d7f57147abcba47a940bd9430b.zip
cpython-f31b69f9dbfcb0d7f57147abcba47a940bd9430b.tar.gz
cpython-f31b69f9dbfcb0d7f57147abcba47a940bd9430b.tar.bz2
Applied patch #1816: sys.flags patch
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst38
1 files changed, 38 insertions, 0 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index a98c5d4..d830490 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -240,6 +240,44 @@ always available.
Use :mod:`atexit` instead.
+.. data:: flags
+
+ The struct sequence *flags* exposes the status of command line flags. The
+ attributes are read only.
+
+ +------------------------------+------------------------------------------+
+ | attribute | flag |
+ +==============================+==========================================+
+ | :const:`debug` | -d |
+ +------------------------------+------------------------------------------+
+ | :const:`py3k_warning` | -3 |
+ +------------------------------+------------------------------------------+
+ | :const:`division_warning` | -Q |
+ +------------------------------+------------------------------------------+
+ | :const:`division_new` | -Qnew |
+ +------------------------------+------------------------------------------+
+ | :const:`inspect` | -i |
+ +------------------------------+------------------------------------------+
+ | :const:`interactive` | -i |
+ +------------------------------+------------------------------------------+
+ | :const:`optimize` | -O or -OO |
+ +------------------------------+------------------------------------------+
+ | :const:`dont_write_bytecode` | -B |
+ +------------------------------+------------------------------------------+
+ | :const:`no_site` | -S |
+ +------------------------------+------------------------------------------+
+ | :const:`ingnore_environment` | -E |
+ +------------------------------+------------------------------------------+
+ | :const:`tabcheck` | -t or -tt |
+ +------------------------------+------------------------------------------+
+ | :const:`verbose` | -v |
+ +------------------------------+------------------------------------------+
+ | :const:`unicode` | -U |
+ +------------------------------+------------------------------------------+
+
+ .. versionadded:: 2.6
+
+
.. data:: float_info
A dict holding information about the float type. It contains low level