Gregory P. Smith added the comment:

It'd perhaps have been better if things like memoryview were never exposed to 
the user at all as a distinct type and became an internal implementation detail 
behind PyBytes and PyUnicode objects (they could hold a reference to something 
else or collapse that down to their own copy on their own terms, up to the 
particulars of the Python VM).

Anyways, the above is getting off topic for this issue.  I retract my 
memoryview suggestion; that belongs in its own issue.

An iterating version of str.split is indeed hard to add today IFF we are 
against a str.itersplit() method name or against an optional keyword only 
argument that'd cause split(iterator=True)'s return type to potentially be 
different.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17343>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to