Commit 65d3c053 authored by Raymond Hettinger's avatar Raymond Hettinger

Fix typo in comment and add clarification.

parent e3a1b488
...@@ -557,7 +557,8 @@ optimize_code(PyObject *code, PyObject* consts, PyObject *names, PyObject *linen ...@@ -557,7 +557,8 @@ optimize_code(PyObject *code, PyObject* consts, PyObject *names, PyObject *linen
"a and b or c" "a and b or c"
"a and b and 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 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_FALSE:
case JUMP_IF_TRUE: case JUMP_IF_TRUE:
......
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