From 57faf348872d1d0af1808c82f535cf220d64b028 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 25 Apr 2018 22:04:06 +0300 Subject: bpo-33334: Support NOP and EXTENDED_ARG in dis.stack_effect(). (#6566) Added tests to ensure that all defined opcodes are supported. --- Python/compile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 5f5e65383f..cc0988f68e 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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; -- cgit v1.2.1