mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
GH-122155: Track local variables between pops and pushes in cases generator (GH-122286)
This commit is contained in:
parent
46f5a4f9e1
commit
a9d56e38a0
13 changed files with 463 additions and 159 deletions
2
Include/internal/pycore_opcode_metadata.h
generated
2
Include/internal/pycore_opcode_metadata.h
generated
|
@ -903,7 +903,7 @@ int _PyOpcode_num_pushed(int opcode, int oparg) {
|
|||
case UNARY_NOT:
|
||||
return 1;
|
||||
case UNPACK_EX:
|
||||
return 1 + (oparg >> 8) + (oparg & 0xFF);
|
||||
return 1 + (oparg & 0xFF) + (oparg >> 8);
|
||||
case UNPACK_SEQUENCE:
|
||||
return oparg;
|
||||
case UNPACK_SEQUENCE_LIST:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue