How to iterate the input over a particular size?

Ben Finney ben+python at benfinney.id.au
Tue Dec 29 01:34:39 EST 2009


"John Posner" <jjposner at optimum.net> writes:

> I haven't found a generator version of the string function split(). Am
> I missing something?

To my knowledge there isn't one. Both Python 2 and Python 3 document
‘str.split’ as returning a list.

-- 
 \       “An idea isn't responsible for the people who believe in it.” |
  `\                                      —Donald Robert Perry Marquis |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list