]> granicus.if.org Git - python/commitdiff
Two nits.
authorGeorg Brandl <georg@python.org>
Sat, 29 Dec 2007 10:57:11 +0000 (10:57 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 29 Dec 2007 10:57:11 +0000 (10:57 +0000)
Doc/library/constants.rst
Doc/reference/simple_stmts.rst

index 634656a820117b82d538a019f74abe11681db706..0d44b7babb5cfd86af10db64d2d22f90a63dc626 100644 (file)
@@ -8,7 +8,8 @@ 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.
+   reassigned (assignments to them raise :exc:`SyntaxError`), so they can be
+   considered "true" constants.
 
 .. XXX False, True, None are keywords too
 
index e905ff6bf705e08584f8c40470d8abb4eee4393d..e9be1fddd46e7f9beb576f3364868cc3c637a560 100644 (file)
@@ -290,7 +290,7 @@ The simple form, ``assert expression``, is equivalent to ::
 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__