Commit 18a499d1 authored by Georg Brandl's avatar Georg Brandl

Two nits.

parent 9a37159e
......@@ -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
......
......@@ -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__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment