[pypy-svn] r14695 - pypy/dist/pypy/objspace/std

ac at codespeak.net ac at codespeak.net
Fri Jul 15 14:20:53 CEST 2005


Author: ac
Date: Fri Jul 15 14:20:53 2005
New Revision: 14695

Modified:
   pypy/dist/pypy/objspace/std/objspace.py
Log:
Do not iterate over a tuple.

Modified: pypy/dist/pypy/objspace/std/objspace.py
==============================================================================
--- pypy/dist/pypy/objspace/std/objspace.py	(original)
+++ pypy/dist/pypy/objspace/std/objspace.py	Fri Jul 15 14:20:53 2005
@@ -205,7 +205,7 @@
         if isinstance(x, float):
             return W_FloatObject(self, x)
         if isinstance(x, tuple):
-            wrappeditems = [self.wrap(item) for item in x]
+            wrappeditems = [self.wrap(item) for item in list(x)]
             return W_TupleObject(self, wrappeditems)
         if isinstance(x, list):
             wrappeditems = [self.wrap(item) for item in x]



More information about the Pypy-commit mailing list