[pypy-svn] r58274 - pypy/branch/tuple-nonresizable-395/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Sat Sep 20 17:50:09 CEST 2008


Author: arigo
Date: Sat Sep 20 17:50:07 2008
New Revision: 58274

Modified:
   pypy/branch/tuple-nonresizable-395/pypy/rpython/callparse.py
Log:
Return a list from this method, not a tuple.


Modified: pypy/branch/tuple-nonresizable-395/pypy/rpython/callparse.py
==============================================================================
--- pypy/branch/tuple-nonresizable-395/pypy/rpython/callparse.py	(original)
+++ pypy/branch/tuple-nonresizable-395/pypy/rpython/callparse.py	Sat Sep 20 17:50:07 2008
@@ -176,7 +176,7 @@
             if (expected_length is not None and
                 expected_length != len(items)):
                 raise ValueError
-            return items
+            return list(items)
         raise CallPatternTooComplex, "'*' argument must be a tuple"
 
     def is_w(self, one, other):



More information about the Pypy-commit mailing list