summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-08-25 15:15:56 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-08-25 15:15:56 (GMT)
commit65d3c0537a061f392db260a13d2a6d239593c2eb (patch)
tree44889b5ef3ae3338df79185f1585f46cda6f1292 /Python
parente3a1b4888c706c7f9891133bfcf7d5cf1941f5f4 (diff)
downloadcpython-65d3c0537a061f392db260a13d2a6d239593c2eb.zip
cpython-65d3c0537a061f392db260a13d2a6d239593c2eb.tar.gz
cpython-65d3c0537a061f392db260a13d2a6d239593c2eb.tar.bz2
Fix typo in comment and add clarification.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index fe31e6f..1de249f 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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: