mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.12] GH-94438: Restore ability to jump over None tests (GH-111243)
(cherry picked from commit 6640f1d8d2)
Co-authored-by: Savannah Ostrowski <sostrowski@microsoft.com>
This commit is contained in:
parent
b622c2dcbe
commit
0bbdfe611a
4 changed files with 38 additions and 0 deletions
|
|
@ -328,6 +328,8 @@ mark_stacks(PyCodeObject *code_obj, int len)
|
|||
switch (opcode) {
|
||||
case POP_JUMP_IF_FALSE:
|
||||
case POP_JUMP_IF_TRUE:
|
||||
case POP_JUMP_IF_NONE:
|
||||
case POP_JUMP_IF_NOT_NONE:
|
||||
{
|
||||
int64_t target_stack;
|
||||
int j = next_i + oparg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue