]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add stack depth info for FOR_LOOP opcode
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 19 Dec 2001 20:40:54 +0000 (20:40 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 19 Dec 2001 20:40:54 +0000 (20:40 +0000)
Tools/compiler/compiler/pyassem.py

index 7b4176365ab06811b94a7f4f1b514c041b629258..9afae7c87fcfc188d73841767f8879858740d144 100644 (file)
@@ -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,