[New-bugs-announce] [issue42816] Add str.split_iter function
Martin Winks
report at bugs.python.org
Sun Jan 3 08:09:42 EST 2021
New submission from Martin Winks <cat at snejugal.ru>:
Split string by given separator and return iterator as a result.
The naive and not very efficient solution would be using current str.split:
def split_iter(self: str, sep: str) -> 'Iterator[str]':
return iter(self.split(sep))
Probably, need we'll some better solution without allocating new list.
----------
components: Unicode
messages: 384270
nosy: ezio.melotti, uwinx, vstinner
priority: normal
severity: normal
status: open
title: Add str.split_iter function
type: enhancement
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42816>
_______________________________________
More information about the New-bugs-announce
mailing list