[Python-checkins] r74173 - python/trunk/Doc/reference/simple_stmts.rst

benjamin.peterson python-checkins at python.org
Wed Jul 22 18:34:37 CEST 2009


Author: benjamin.peterson
Date: Wed Jul 22 18:34:37 2009
New Revision: 74173

Log:
revert r74152

Modified:
   python/trunk/Doc/reference/simple_stmts.rst

Modified: python/trunk/Doc/reference/simple_stmts.rst
==============================================================================
--- python/trunk/Doc/reference/simple_stmts.rst	(original)
+++ python/trunk/Doc/reference/simple_stmts.rst	Wed Jul 22 18:34:37 2009
@@ -282,13 +282,13 @@
 
 The simple form, ``assert expression``, is equivalent to ::
 
-   if __debug__ and not expression:
-       raise AssertionError
+   if __debug__:
+      if not expression: raise AssertionError
 
 The extended form, ``assert expression1, expression2``, is equivalent to ::
 
-   if __debug__ and not expression1:
-       raise AssertionError(expression2)
+   if __debug__:
+      if not expression1: raise AssertionError(expression2)
 
 .. index::
    single: __debug__


More information about the Python-checkins mailing list