From: Jeremy Hylton Date: Wed, 19 Dec 2001 20:40:54 +0000 (+0000) Subject: Add stack depth info for FOR_LOOP opcode X-Git-Tag: v2.1.2c1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89320a538bce7b28d5e78990abdfe41b3a6ad4c4;p=thirdparty%2FPython%2Fcpython.git Add stack depth info for FOR_LOOP opcode --- diff --git a/Tools/compiler/compiler/pyassem.py b/Tools/compiler/compiler/pyassem.py index 7b4176365ab0..9afae7c87fcf 100644 --- a/Tools/compiler/compiler/pyassem.py +++ b/Tools/compiler/compiler/pyassem.py @@ -786,6 +786,7 @@ class StackDepthTracker: 'IMPORT_NAME': 0, 'IMPORT_FROM': 1, 'LOAD_ATTR': 0, # unlike other loads + 'FOR_LOOP': 1, # close enough... 'SETUP_EXCEPT': 3, 'SETUP_FINALLY': 3,