Looping [was Re: Python and the need for speed]

Paul Rubin no.email at nospam.invalid
Mon Apr 17 21:09:10 EDT 2017


Ben Bacarisse <ben.usenet at bsb.me.uk> writes:
> ?  I get "AttributeError: 'itertools.dropwhile' object has no attribute
> 'next'" from your example.

Hmm, .next() worked ok for me in Python 2.7.5.  Not sure what happened.
Maybe something went wrong with my paste.  Oh well.

> Coming from the lazy language Haskell, I find your example natural...

Yep ;)



More information about the Python-list mailing list