[Python-3000-checkins] r59607 - in python/branches/py3k/Doc: library/constants.rst reference/simple_stmts.rst

georg.brandl python-3000-checkins at python.org
Sat Dec 29 11:57:11 CET 2007


Author: georg.brandl
Date: Sat Dec 29 11:57:11 2007
New Revision: 59607

Modified:
   python/branches/py3k/Doc/library/constants.rst
   python/branches/py3k/Doc/reference/simple_stmts.rst
Log:
Two nits.


Modified: python/branches/py3k/Doc/library/constants.rst
==============================================================================
--- python/branches/py3k/Doc/library/constants.rst	(original)
+++ python/branches/py3k/Doc/library/constants.rst	Sat Dec 29 11:57:11 2007
@@ -8,7 +8,8 @@
 .. note::
 
    :data:`None`, :data:`False`, :data:`True` and :data:`__debug__` cannot be
-   reassigned, so they can be considered "true" constants.
+   reassigned (assignments to them raise :exc:`SyntaxError`), so they can be
+   considered "true" constants.
 
 .. XXX False, True, None are keywords too
 

Modified: python/branches/py3k/Doc/reference/simple_stmts.rst
==============================================================================
--- python/branches/py3k/Doc/reference/simple_stmts.rst	(original)
+++ python/branches/py3k/Doc/reference/simple_stmts.rst	Sat Dec 29 11:57:11 2007
@@ -290,7 +290,7 @@
 The extended form, ``assert expression1, expression2``, is equivalent to ::
 
    if __debug__:
-      if not expression1: raise AssertionError, expression2
+      if not expression1: raise AssertionError(expression2)
 
 .. index::
    single: __debug__


More information about the Python-3000-checkins mailing list