Looping [was Re: Python and the need for speed]
breamoreboy at gmail.com
breamoreboy at gmail.com
Mon Apr 17 21:58:57 EDT 2017
On Tuesday, April 18, 2017 at 2:09:19 AM UTC+1, Paul Rubin wrote:
> Ben Bacarisse 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.
>
PEP 3114 -- Renaming iterator.next() to iterator.__next__() https://www.python.org/dev/peps/pep-3114/
Kindest regards.
Mark Lawrence.
More information about the Python-list
mailing list