On Aug 17, 8:40 pm, [EMAIL PROTECTED] wrote: > Eric Wertman: > > > So what exactly does that do? Returns a generator, instead of a list? > > Allows you to iterate on the parts in a lazy way, without creating the > whole list of the pieces. > The arguments are the same of str.split(). > If it was introduced into Python v3.x then wouldn't it have to be called str.split in order to be consistent with xrange -> range? :-) -- http://mail.python.org/mailman/listinfo/python-list
- Re: like a "for loop"... Mensanator
- Re: like a "for loop"... B
- Re: like a "for loop"... Paul McGuire
- Re: like a "for loop" for a s... Vlastimil Brom
- Re: like a "for loop" for a s... Grzegorz Staniak
- Re: like a "for loop" for a string Colin J. Williams
- Re: like a "for loop" for a string Wojtek Walczak
- Re: like a "for loop" for a string bearophileHUGS
- Re: like a "for loop" for a string Eric Wertman
- Re: like a "for loop" for a string bearophileHUGS
- Re: like a "for loop" for a strin... MRAB
- Re: like a "for loop" for a s... bearophileHUGS
- Re: like a "for loop" for a string Wojtek Walczak
- Re: like a "for loop" for a strin... Fredrik Lundh
- Re: like a "for loop" for a strin... bearophileHUGS
- Re: like a "for loop" for a string Paul Boddie