By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,245 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

where is str.itersplit() ?

P: n/a
Don't you think an iterator version of str.split() could be handy
in some cases?
You may have to split() quite a long string, but really need only
one chunk at a time, not entire list at once (looks like a typical
use case for iterator/generator).

I am well aware of re.finditer(), but that means pulling out regex
bigguns, which may be undesirable.

Has there been any discussion of this topic that i missed?
Do you think introduction of string methods isplit()
and isplitlines() would be worth it? With v2.3 itertools and
v2.4 generator expressions the "lazy" trend is obvious.

- kv
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.