Commit bee2e189 authored by Benjamin Peterson's avatar Benjamin Peterson

simplify

parent 771e87bf
...@@ -282,13 +282,13 @@ program: ...@@ -282,13 +282,13 @@ program:
The simple form, ``assert expression``, is equivalent to :: The simple form, ``assert expression``, is equivalent to ::
if __debug__: if __debug__ and not expression:
if not expression: raise AssertionError raise AssertionError
The extended form, ``assert expression1, expression2``, is equivalent to :: The extended form, ``assert expression1, expression2``, is equivalent to ::
if __debug__: if __debug__ and not expression1:
if not expression1: raise AssertionError(expression2) raise AssertionError(expression2)
.. index:: .. index::
single: __debug__ 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