summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-08-25 15:15:56 +0000
committerRaymond Hettinger <python@rcn.com>2004-08-25 15:15:56 +0000
commit503a768ff53bb2fe8f7ff405e05eef91963e0b2d (patch)
treeb6c962f49fecb2bb1337558cb77d8540e49a1221 /Python
parent6e4c6e9d944f17c6d461d2a1f808c90edc2ba373 (diff)
downloadcpython-503a768ff53bb2fe8f7ff405e05eef91963e0b2d.tar.gz
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 fe31e6f105..1de249f6c5 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: