Good use for itertools.dropwhile and itertools.takewhile

Vlastimil Brom vlastimil.brom at
Thu Dec 6 15:12:48 CET 2012

2012/12/6 Neil Cerutti <neilc at>:
> On 2012-12-05, Vlastimil Brom <vlastimil.brom at> wrote:
>> ... PARSNIP, certified organic
> I'm not sure on this one.
>> ('PARSNIP', ', certified organic')
> --
> Neil Cerutti
> --

Well, I wasn't either, when I noticed this item, but given the specification:
"2. Retain punctuation and parentheses"
in one of the previous OP's messages, I figured, the punctuation would
better be a part of the description rather than the name in this case.


More information about the Python-list mailing list