[pypy-svn] r73118 - pypy/branch/cpython-extension/pypy/module/cpyext
fijal at codespeak.net
fijal at codespeak.net
Mon Mar 29 20:13:22 CEST 2010
Author: fijal
Date: Mon Mar 29 20:13:21 2010
New Revision: 73118
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/sequence.py
Log:
Use better interface here
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/sequence.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/sequence.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/sequence.py Mon Mar 29 20:13:21 2010
@@ -15,7 +15,7 @@
space.is_true(space.isinstance(w_obj, space.w_tuple))):
return w_obj
try:
- return space.newtuple(space.unpackiterable(w_obj))
+ return space.newtuple(space.fixedview(w_obj))
except OperationError:
raise OperationError(space.w_TypeError, space.wrap(rffi.charp2str(m)))
More information about the Pypy-commit
mailing list