]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix 2.7ism.
authorGeorg Brandl <georg@python.org>
Tue, 3 Aug 2010 10:16:19 +0000 (10:16 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 3 Aug 2010 10:16:19 +0000 (10:16 +0000)
Doc/library/constants.rst

index 80e792c9521d7fda0233ca14ff63b57509ce9745..e6d927a140ce847582116450e110d614f02929bc 100644 (file)
@@ -42,17 +42,14 @@ A small number of constants live in the built-in namespace.  They are:
 .. data:: __debug__
 
    This constant is true if Python was not started with an :option:`-O` option.
-   See also the :keyword:`assert` statement.
+   It cannot be reassigned.  See also the :keyword:`assert` statement.
 
 
 .. note::
 
-   The names :data:`None` and :data:`__debug__` cannot be reassigned
-   (assignments to them, even as an attribute name, raise :exc:`SyntaxError`),
-   so they can be considered "true" constants.
-
-   .. versionchanged:: 2.7
-      Assignments to ``__debug__`` as an attribute became illegal.
+   The name :data:`None` cannot be reassigned (assignments to it, even as an
+   attribute name, raise :exc:`SyntaxError`), so it can be considered a "true"
+   constant.
 
 
 Constants added by the :mod:`site` module