Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: py3.5
Changeset: r96039:227b54cdf79b
Date: 2019-02-17 13:35 +0100
http://bitbucket.org/pypy/pypy/changeset/227b54cdf79b/
Log: doesn't need the hack on py3.5
diff --git a/pypy/objspace/std/objspace.py b/pypy/objspace/std/objspace.py
--- a/pypy/objspace/std/objspace.py
+++ b/pypy/objspace/std/objspace.py
@@ -366,8 +366,6 @@
return W_SliceObject(w_start, w_end, w_step)
def newseqiter(self, w_obj):
- if type(w_obj) is W_UnicodeObject:
- return W_FastUnicodeIterObject(w_obj)
return W_SeqIterObject(w_obj)
def newmemoryview(self, w_obj):
diff --git a/pypy/objspace/std/unicodeobject.py
b/pypy/objspace/std/unicodeobject.py
--- a/pypy/objspace/std/unicodeobject.py
+++ b/pypy/objspace/std/unicodeobject.py
@@ -93,6 +93,10 @@
def listview_utf8(self):
return _create_list_from_unicode(self._utf8)
+ def descr_iter(self, space):
+ from pypy.objspace.std.iterobject import W_FastUnicodeIterObject
+ return W_FastUnicodeIterObject(self)
+
def ord(self, space):
if self._len() != 1:
raise oefmt(space.w_TypeError,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit