[pypy-svn] r28663 - pypy/dist/pypy/interpreter

pedronis at codespeak.net pedronis at codespeak.net
Sun Jun 11 12:22:27 CEST 2006


Author: pedronis
Date: Sun Jun 11 12:22:25 2006
New Revision: 28663

Modified:
   pypy/dist/pypy/interpreter/function.py
Log:
fix annotation



Modified: pypy/dist/pypy/interpreter/function.py
==============================================================================
--- pypy/dist/pypy/interpreter/function.py	(original)
+++ pypy/dist/pypy/interpreter/function.py	Sun Jun 11 12:22:25 2006
@@ -206,7 +206,9 @@
         self.code = space.interp_w(PyCode, w_code)
         self.w_func_globals = w_func_globals
         if w_closure is not space.w_None:
-            self.closure = space.unpackiterable(w_closure)
+            from pypy.interpreter.nestedscope import Cell
+            closure_w = space.unpackiterable(w_closure)
+            self.closure = [space.interp_w(Cell, w_cell) for w_cell in closure_w]
         else:
             self.closure = None
         self.defs_w    = space.unpackiterable(w_defs_w)



More information about the Pypy-commit mailing list