[pypy-svn] r57261 - pypy/branch/2.5-features/pypy/interpreter/astcompiler
bgola at codespeak.net
bgola at codespeak.net
Fri Aug 15 05:34:29 CEST 2008
Author: bgola
Date: Fri Aug 15 05:34:27 2008
New Revision: 57261
Modified:
pypy/branch/2.5-features/pypy/interpreter/astcompiler/pyassem.py
Log:
fix the problem with lambda inside generator expressions (nestedscopes)
Modified: pypy/branch/2.5-features/pypy/interpreter/astcompiler/pyassem.py
==============================================================================
--- pypy/branch/2.5-features/pypy/interpreter/astcompiler/pyassem.py (original)
+++ pypy/branch/2.5-features/pypy/interpreter/astcompiler/pyassem.py Fri Aug 15 05:34:27 2008
@@ -265,7 +265,6 @@
co_code = self.co_code
self._stackdepths = [UNREACHABLE] * len(co_code)
self._stackdepths[0] = 0
- just_loaded_const = None
consts_w = self.getConsts()
finally_targets = {}
largestsize = 0
@@ -293,7 +292,6 @@
i += 1
if curstackdepth == UNREACHABLE:
- just_loaded_const = None
continue # ignore unreachable instructions
if opcode in DEPTH_OP_EFFECT_ALONG_JUMP:
@@ -467,6 +465,8 @@
def depth_MAKE_FUNCTION(argc):
return -argc
def depth_MAKE_CLOSURE(argc):
+ if argc == 0:
+ return -1
return -argc
def depth_BUILD_SLICE(argc):
if argc == 2:
More information about the Pypy-commit
mailing list