[pypy-svn] r58023 - pypy/branch/tuple-nonresizable-395/pypy/annotation
fijal at codespeak.net
fijal at codespeak.net
Tue Sep 9 21:52:18 CEST 2008
Author: fijal
Date: Tue Sep 9 21:52:15 2008
New Revision: 58023
Modified:
pypy/branch/tuple-nonresizable-395/pypy/annotation/bookkeeper.py
Log:
unpackiterable should always return a list
Modified: pypy/branch/tuple-nonresizable-395/pypy/annotation/bookkeeper.py
==============================================================================
--- pypy/branch/tuple-nonresizable-395/pypy/annotation/bookkeeper.py (original)
+++ pypy/branch/tuple-nonresizable-395/pypy/annotation/bookkeeper.py Tue Sep 9 21:52:15 2008
@@ -737,7 +737,7 @@
if (expected_length is not None and
expected_length != len(s_obj.items)):
raise ValueError
- return s_obj.items
+ return list(s_obj.items)
if (s_obj.__class__ is SomeObject and
getattr(s_obj, 'from_ellipsis', False)): # see newtuple()
return [Ellipsis]
More information about the Pypy-commit
mailing list