| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@markshannon: Please replace # with GH- in the commit message next time. Thanks! |
Sorry, something went wrong.
…ython#23251) * Compiler: eliminate jumps to short exit blocks by copying.
| Back | FazBrowse Home | New Git URL |
More yak-shaving for PEP 626.
This PR:
The net effect of this is that:
now compiles to:
2 0 LOAD_FAST 0 (c) 2 POP_JUMP_IF_FALSE 12 3 4 LOAD_GLOBAL 0 (A) 6 POP_TOP 8 LOAD_CONST 0 (None) 10 RETURN_VALUE 5 >> 12 LOAD_GLOBAL 1 (B) 14 POP_TOP 16 LOAD_CONST 0 (None) 18 RETURN_VALUEinstead of
2 0 LOAD_FAST 0 (c) 2 POP_JUMP_IF_FALSE 10 3 4 LOAD_GLOBAL 0 (A) 6 POP_TOP 8 JUMP_FORWARD 4 (to 14) 5 >> 10 LOAD_GLOBAL 1 (B) 12 POP_TOP >> 14 LOAD_CONST 0 (None) 16 RETURN_VALUEThis has two effects
https://bugs.python.org/issue42246