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

pedronis at codespeak.net pedronis at codespeak.net
Tue Apr 19 22:19:40 CEST 2005


Author: pedronis
Date: Tue Apr 19 22:19:40 2005
New Revision: 10876

Modified:
   pypy/dist/pypy/interpreter/pycode.py
Log:
names were swapped (?)



Modified: pypy/dist/pypy/interpreter/pycode.py
==============================================================================
--- pypy/dist/pypy/interpreter/pycode.py	(original)
+++ pypy/dist/pypy/interpreter/pycode.py	Tue Apr 19 22:19:40 2005
@@ -196,10 +196,10 @@
         return space.newtuple([space.wrap(name) for name in self.co_varnames])
 
     def fget_co_cellvars(space, self):
-        return space.newtuple([space.wrap(name) for name in self.co_freevars])
+        return space.newtuple([space.wrap(name) for name in self.co_cellvars])
 
     def fget_co_freevars(space, self):
-        return space.newtuple([space.wrap(name) for name in self.co_cellvars])    
+        return space.newtuple([space.wrap(name) for name in self.co_freevars])    
 
     def descr_code__eq__(self, w_other):
         space = self.space



More information about the Pypy-commit mailing list