[pypy-svn] r9290 - pypy/branch/dist-interpapp/pypy/interpreter

pedronis at codespeak.net pedronis at codespeak.net
Thu Feb 17 19:24:39 CET 2005


Author: pedronis
Date: Thu Feb 17 19:24:39 2005
New Revision: 9290

Modified:
   pypy/branch/dist-interpapp/pypy/interpreter/pycode.py
Log:
we need proper tuple-making accessors, for now remove the list conversion



Modified: pypy/branch/dist-interpapp/pypy/interpreter/pycode.py
==============================================================================
--- pypy/branch/dist-interpapp/pypy/interpreter/pycode.py	(original)
+++ pypy/branch/dist-interpapp/pypy/interpreter/pycode.py	Thu Feb 17 19:24:39 2005
@@ -90,11 +90,11 @@
         x = code.co_names; assert isinstance(x, tuple)
         self.co_names = list(x)
         x = code.co_varnames; assert isinstance(x, tuple)
-        self.co_varnames = list(x)
+        self.co_varnames = x
         x = code.co_freevars; assert isinstance(x, tuple)
-        self.co_freevars = list(x)
+        self.co_freevars = x
         x = code.co_cellvars; assert isinstance(x, tuple)
-        self.co_cellvars = list(x)
+        self.co_cellvars = x
         x = code.co_filename; assert isinstance(x, str)
         self.co_filename = x
         x = code.co_name; assert isinstance(x, str)



More information about the Pypy-commit mailing list