Author: fijal
Branch: cpyext-ext
Changeset: r81386:911a6c69a1c9
Date: 2015-12-18 22:05 +0200
http://bitbucket.org/pypy/pypy/changeset/911a6c69a1c9/

Log:    do the same thing, but more in line with what cpython does

diff --git a/pypy/module/cpyext/sequence.py b/pypy/module/cpyext/sequence.py
--- a/pypy/module/cpyext/sequence.py
+++ b/pypy/module/cpyext/sequence.py
@@ -178,7 +178,8 @@
     iteration ends when the sequence raises IndexError for the subscripting
     operation.
     """
-    return space.iter(w_seq)
+    # XXX check for bad internal call
+    return space.newseqiter(w_seq)
 
 @cpython_api([PyObject, Py_ssize_t, PyObject], rffi.INT_real, error=-1)
 def PySequence_SetItem(space, w_o, i, w_v):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to