Serhiy Storchaka added the comment:

> Indeed, a bytearray version would require the talked about but not 
> implemented due to complexity (in pep3118) support for locking a buffer from 
> other mutations.

I rather think that a bytearray version can't pre-scan the data. Note that an 
array for pre-scanned result can be larger than input data (if we split into a 
large number of small items). Also note that iterative split useful when we do 
not want to process all input, but only several first items.

Actually I think that in most common cases non-iterative split will be faster 
than iterative one.

----------

_______________________________________
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