summaryrefslogtreecommitdiff
path: root/Doc/library/constants.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-12-29 10:57:00 +0000
committerGeorg Brandl <georg@python.org>2007-12-29 10:57:00 +0000
commitb19be571e09263239ef29c92eee06dbb30186685 (patch)
tree9c8a5439b14ce34cfaa0e4e164483b0f8690aa42 /Doc/library/constants.rst
parent28c7bcf38e1e69a9091cbba90b982331428ddbe6 (diff)
downloadcpython-git-b19be571e09263239ef29c92eee06dbb30186685.tar.gz
Some cleanup in the docs.
Diffstat (limited to 'Doc/library/constants.rst')
-rw-r--r--Doc/library/constants.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/Doc/library/constants.rst b/Doc/library/constants.rst
index 4aa3a1c18c..7e6397824c 100644
--- a/Doc/library/constants.rst
+++ b/Doc/library/constants.rst
@@ -25,6 +25,9 @@ A small number of constants live in the built-in namespace. They are:
represent the absence of a value, as when default arguments are not passed to a
function.
+ .. versionchanged:: 2.4
+ Assignments to ``None`` are illegal and raise a :exc:`SyntaxError`.
+
.. data:: NotImplemented
@@ -37,5 +40,11 @@ A small number of constants live in the built-in namespace. They are:
Special value used in conjunction with extended slicing syntax.
- .. % XXX Someone who understands extended slicing should fill in here.
+ .. XXX Someone who understands extended slicing should fill in here.
+
+
+.. data:: __debug__
+ This constant is true if Python was not started with an :option:`-O` option.
+ Assignments to :const:`__debug__` are illegal and raise a :exc:`SyntaxError`.
+ See also the :keyword:`assert` statement. \ No newline at end of file