[Python-checkins] r83657 - python/branches/release26-maint/Doc/library/constants.rst

georg.brandl python-checkins at python.org
Tue Aug 3 12:16:20 CEST 2010


Author: georg.brandl
Date: Tue Aug  3 12:16:19 2010
New Revision: 83657

Log:
Fix 2.7ism.

Modified:
   python/branches/release26-maint/Doc/library/constants.rst

Modified: python/branches/release26-maint/Doc/library/constants.rst
==============================================================================
--- python/branches/release26-maint/Doc/library/constants.rst	(original)
+++ python/branches/release26-maint/Doc/library/constants.rst	Tue Aug  3 12:16:19 2010
@@ -42,17 +42,14 @@
 .. 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


More information about the Python-checkins mailing list