Good use for itertools.dropwhile and itertools.takewhile

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


2012/12/6 Neil Cerutti <neilc at norwich.edu>:
> On 2012-12-05, Vlastimil Brom <vlastimil.brom at gmail.com> 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.

regards,
   vbr



More information about the Python-list mailing list