mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix typo in comment and add clarification.
This commit is contained in:
parent
e3a1b4888c
commit
65d3c0537a
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue