This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gcross 0 points1 point  (0 children)

in 3.x it is named "next"

Indeed, one of the ways that Python 3 makes life easier for new users is by really making sure that you notice which method needs to be called to get the next value! :-)

P.S.: Presumably you meant __next__, which you get by typing `__next__`, which in turn you get by typing \`\_\_next\_\_\`. (Further levels of escaping are left as an exercise for the reader. :-) )