diff options
author | Georg Brandl <georg@python.org> | 2007-09-07 14:15:41 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-07 14:15:41 (GMT) |
commit | 96593ed348078403eb30fd5d2767fc96c17e913a (patch) | |
tree | f1221b6a26fb84fc1159ead1f4064fb7dc59a354 /Doc/library/constants.rst | |
parent | 44fa8f650f3a69318afe37874e82c6688f88e311 (diff) | |
download | cpython-96593ed348078403eb30fd5d2767fc96c17e913a.zip cpython-96593ed348078403eb30fd5d2767fc96c17e913a.tar.gz cpython-96593ed348078403eb30fd5d2767fc96c17e913a.tar.bz2 |
Continue going through the language reference, bringing it up-to-date.
In particular, document the new comprehensions and remove mentions of long integers.
Fix a bunch of related things in the lib ref.
Diffstat (limited to 'Doc/library/constants.rst')
-rw-r--r-- | Doc/library/constants.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/constants.rst b/Doc/library/constants.rst index c36b2fa..634656a 100644 --- a/Doc/library/constants.rst +++ b/Doc/library/constants.rst @@ -5,6 +5,11 @@ Built-in Constants A small number of constants live in the built-in namespace. They are: +.. note:: + + :data:`None`, :data:`False`, :data:`True` and :data:`__debug__` cannot be + reassigned, so they can be considered "true" constants. + .. XXX False, True, None are keywords too .. data:: False @@ -37,3 +42,10 @@ A small number of constants live in the built-in namespace. They are: slicing syntax for user-defined container data types, as in :: val = container[1:5, 7:10, ...] + + +.. data:: __debug__ + + A boolean value that is :data:`True` if Python was not started with the + ``-O`` command line option. Its value is used indirectly by the + :keyword:`assert` statement, but it can also be used directly in code. |