Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65d3c05

Browse files
committed
Fix typo in comment and add clarification.
1 parent e3a1b48 commit 65d3c05

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/compile.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@ optimize_code(PyObject *code, PyObject* consts, PyObject *names, PyObject *linen
557557
"a and b or c"
558558
"a and b and c"
559559
x:JUMP_IF_FALSE y y:JUMP_IF_FALSE z --> x:JUMP_IF_FALSE z
560-
x:JUMP_IF_FALSE y y:JUMP_IF_FALSE z --> x:JUMP_IF_FALSE y+3
560+
x:JUMP_IF_FALSE y y:JUMP_IF_TRUE z --> x:JUMP_IF_FALSE y+3
561+
where y+3 is the instruction following the second test.
561562
*/
562563
case JUMP_IF_FALSE:
563564
case JUMP_IF_TRUE:

0 commit comments

Comments
 (0)