[pypy-commit] pypy default: (cfbolz, tanzim, arigo)
arigo
noreply at buildbot.pypy.org
Wed Dec 10 17:43:39 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r74884:a3b346cf3412
Date: 2014-12-10 16:43 +0000
http://bitbucket.org/pypy/pypy/changeset/a3b346cf3412/
Log: (cfbolz, tanzim, arigo)
meh.
diff --git a/pypy/interpreter/pyframe.py b/pypy/interpreter/pyframe.py
--- a/pypy/interpreter/pyframe.py
+++ b/pypy/interpreter/pyframe.py
@@ -125,6 +125,8 @@
else:
return self.space.builtin
+ _NO_CELLS = []
+
@jit.unroll_safe
def initialize_frame_scopes(self, outer_func, code):
# regular functions always have CO_OPTIMIZED and CO_NEWLOCALS.
@@ -143,7 +145,7 @@
nfreevars = len(code.co_freevars)
if not nfreevars:
if not ncellvars:
- self.cells = []
+ self.cells = self._NO_CELLS
return # no self.cells needed - fast path
elif outer_func is None:
space = self.space
More information about the pypy-commit
mailing list