mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-33334: Support NOP and EXTENDED_ARG in dis.stack_effect(). (#6566)
Added tests to ensure that all defined opcodes are supported.
This commit is contained in:
parent
e9d9494d6b
commit
57faf34887
3 changed files with 21 additions and 0 deletions
|
@ -859,6 +859,10 @@ static int
|
|||
stack_effect(int opcode, int oparg, int jump)
|
||||
{
|
||||
switch (opcode) {
|
||||
case NOP:
|
||||
case EXTENDED_ARG:
|
||||
return 0;
|
||||
|
||||
/* Stack manipulation */
|
||||
case POP_TOP:
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue