]> granicus.if.org Git - python/commitdiff
Fix typo in comment and add clarification.
authorRaymond Hettinger <python@rcn.com>
Wed, 25 Aug 2004 15:15:56 +0000 (15:15 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 25 Aug 2004 15:15:56 +0000 (15:15 +0000)
Python/compile.c

index fe31e6f105ef0b03c1859f1a084a776fa9a19d1e..1de249f6c597cafe5d7a6de2b230d0353718c36b 100644 (file)
@@ -557,7 +557,8 @@ optimize_code(PyObject *code, PyObject* consts, PyObject *names, PyObject *linen
                        "a and b or c"
                        "a and b and c"
                   x:JUMP_IF_FALSE y   y:JUMP_IF_FALSE z  -->  x:JUMP_IF_FALSE z
-                  x:JUMP_IF_FALSE y   y:JUMP_IF_FALSE z  -->  x:JUMP_IF_FALSE y+3 
+                  x:JUMP_IF_FALSE y   y:JUMP_IF_TRUE z  -->  x:JUMP_IF_FALSE y+3
+                       where y+3 is the instruction following the second test.
                */
                case JUMP_IF_FALSE:
                case JUMP_IF_TRUE: