Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56273:083d92053167
Date: 2012-07-20 10:44 +0200
http://bitbucket.org/pypy/pypy/changeset/083d92053167/
Log: backout 331a52aa6f9e
diff --git a/pypy/interpreter/pyframe.py b/pypy/interpreter/pyframe.py
--- a/pypy/interpreter/pyframe.py
+++ b/pypy/interpreter/pyframe.py
@@ -59,9 +59,7 @@
assert isinstance(code, pycode.PyCode)
self.pycode = code
eval.Frame.__init__(self, space, w_globals)
- size = (code.co_nlocals + code.co_stacksize)
- assert size >= 0
- self.locals_stack_w = [None] * size
+ self.locals_stack_w = [None] * (code.co_nlocals + code.co_stacksize)
self.valuestackdepth = code.co_nlocals
self.lastblock = None
make_sure_not_resized(self.locals_stack_w)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit