[pypy-commit] pypy virtual-arguments: backout 331a52aa6f9e
fijal
noreply at buildbot.pypy.org
Fri Jul 20 10:48:20 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
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)
More information about the pypy-commit
mailing list