From: Benjamin Peterson Date: Mon, 25 May 2009 20:12:57 +0000 (+0000) Subject: take into account the fact that SETUP_WITH pushes a finally block X-Git-Tag: v2.7a1~1101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49a6b0ef7086b59ac9fd039bebaedef952ae907d;p=python take into account the fact that SETUP_WITH pushes a finally block --- diff --git a/Python/compile.c b/Python/compile.c index e263d76342..df12bde440 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -779,7 +779,7 @@ opcode_stack_effect(int opcode, int oparg) case BREAK_LOOP: return 0; case SETUP_WITH: - return 1; + return 4; case WITH_CLEANUP: return -1; /* XXX Sometimes more */ case LOAD_LOCALS: