summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-03-26 01:09:14 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-03-26 01:09:14 (GMT)
commit254d4b851d67adc6e5a6660eb76309bf8af0abc8 (patch)
treee0f3ce1b805c895d987f02cf81b70f66a003733a
parent10ab95a2717335d99451760699fed92f731dc5da (diff)
downloadcpython-254d4b851d67adc6e5a6660eb76309bf8af0abc8.zip
cpython-254d4b851d67adc6e5a6660eb76309bf8af0abc8.tar.gz
cpython-254d4b851d67adc6e5a6660eb76309bf8af0abc8.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.
-rw-r--r--Doc/library/sys.rst52
1 files changed, 19 insertions, 33 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index ba2ae5c..12f861b 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -269,39 +269,25 @@ always available.
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_user_site` | -s |
- +------------------------------+------------------------------------------+
- | :const:`no_site` | -S |
- +------------------------------+------------------------------------------+
- | :const:`ignore_environment` | -E |
- +------------------------------+------------------------------------------+
- | :const:`tabcheck` | -t or -tt |
- +------------------------------+------------------------------------------+
- | :const:`verbose` | -v |
- +------------------------------+------------------------------------------+
- | :const:`unicode` | -U |
- +------------------------------+------------------------------------------+
- | :const:`bytes_warning` | -b |
- +------------------------------+------------------------------------------+
+ ============================= ===================================
+ attribute flag
+ ============================= ===================================
+ :const:`debug` :option:`-d`
+ :const:`py3k_warning` :option:`-3`
+ :const:`division_warning` :option:`-Q`
+ :const:`division_new` :option:`-Qnew <-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:`tabcheck` :option:`-t` or :option:`-tt <-t>`
+ :const:`verbose` :option:`-v`
+ :const:`unicode` :option:`-U`
+ :const:`bytes_warning` :option:`-b`
+ ============================= ===================================
.. versionadded:: 2.6