summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-03-25 23:47:04 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-03-25 23:47:04 (GMT)
commit5ab477695c5049effddab07db49b9363fc26917b (patch)
tree672f37378851db9a8344c57c5b0dd886c24f9961 /Doc
parenta464d4e608e8c81b6555b5210ed541d7a8ca61a5 (diff)
downloadcpython-5ab477695c5049effddab07db49b9363fc26917b.zip
cpython-5ab477695c5049effddab07db49b9363fc26917b.tar.gz
cpython-5ab477695c5049effddab07db49b9363fc26917b.tar.bz2
Tweaks to sys.flags description table.
The options listed in the table are now links to their documentation, and the table uses compact markup to make it easier to read and edit. First proposed in #10998.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sys.rst40
1 files changed, 15 insertions, 25 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index a9d24f3..e51e8ea 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -206,31 +206,21 @@ always available.
The struct sequence *flags* exposes the status of command line flags. The
attributes are read only.
- +------------------------------+------------------------------------------+
- | attribute | flag |
- +==============================+==========================================+
- | :const:`debug` | -d |
- +------------------------------+------------------------------------------+
- | :const:`division_warning` | -Q |
- +------------------------------+------------------------------------------+
- | :const:`inspect` | -i |
- +------------------------------+------------------------------------------+
- | :const:`interactive` | -i |
- +------------------------------+------------------------------------------+
- | :const:`optimize` | -O or -OO |
- +------------------------------+------------------------------------------+
- | :const:`dont_write_bytecode` | -B |
- +------------------------------+------------------------------------------+
- | :const:`no_user_site` | -s |
- +------------------------------+------------------------------------------+
- | :const:`no_site` | -S |
- +------------------------------+------------------------------------------+
- | :const:`ignore_environment` | -E |
- +------------------------------+------------------------------------------+
- | :const:`verbose` | -v |
- +------------------------------+------------------------------------------+
- | :const:`bytes_warning` | -b |
- +------------------------------+------------------------------------------+
+ ============================= =============================
+ attribute flag
+ ============================= =============================
+ :const:`debug` :option:`-d`
+ :const:`division_warning` :option:`-Q`
+ :const:`inspect` :option:`-i`
+ :const:`interactive` :option:`-i`
+ :const:`optimize` :option:`-O` or :option:`-OO`
+ :const:`dont_write_bytecode` :option:`-B`
+ :const:`no_user_site` :option:`-s`
+ :const:`no_site` :option:`-S`
+ :const:`ignore_environment` :option:`-E`
+ :const:`verbose` :option:`-v`
+ :const:`bytes_warning` :option:`-b`
+ ============================= =============================
.. data:: float_info