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.
This commit is contained in:
Éric Araujo 2011-03-26 00:47:04 +01:00
parent a464d4e608
commit 5ab477695c
1 changed files with 15 additions and 25 deletions

View File

@ -206,31 +206,21 @@ always available.
The struct sequence *flags* exposes the status of command line flags. The The struct sequence *flags* exposes the status of command line flags. The
attributes are read only. attributes are read only.
+------------------------------+------------------------------------------+ ============================= =============================
| attribute | flag | attribute flag
+==============================+==========================================+ ============================= =============================
| :const:`debug` | -d | :const:`debug` :option:`-d`
+------------------------------+------------------------------------------+ :const:`division_warning` :option:`-Q`
| :const:`division_warning` | -Q | :const:`inspect` :option:`-i`
+------------------------------+------------------------------------------+ :const:`interactive` :option:`-i`
| :const:`inspect` | -i | :const:`optimize` :option:`-O` or :option:`-OO`
+------------------------------+------------------------------------------+ :const:`dont_write_bytecode` :option:`-B`
| :const:`interactive` | -i | :const:`no_user_site` :option:`-s`
+------------------------------+------------------------------------------+ :const:`no_site` :option:`-S`
| :const:`optimize` | -O or -OO | :const:`ignore_environment` :option:`-E`
+------------------------------+------------------------------------------+ :const:`verbose` :option:`-v`
| :const:`dont_write_bytecode` | -B | :const:`bytes_warning` :option:`-b`
+------------------------------+------------------------------------------+ ============================= =============================
| :const:`no_user_site` | -s |
+------------------------------+------------------------------------------+
| :const:`no_site` | -S |
+------------------------------+------------------------------------------+
| :const:`ignore_environment` | -E |
+------------------------------+------------------------------------------+
| :const:`verbose` | -v |
+------------------------------+------------------------------------------+
| :const:`bytes_warning` | -b |
+------------------------------+------------------------------------------+
.. data:: float_info .. data:: float_info