Issue 3271: iter.next() or iter.next() ? (original) (raw)

Issue3271

Created on 2008-07-03 15:09 by vizcayno, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg69205 - (view) Author: vizcayno (vizcayno) Date: 2008-07-03 15:09
For Win XP SP3 I do next in py30.b1: a=[9,8,1,2] it=iter(a) it.next() Traceback (most recent call last): File "", line 1, in AttributeError: 'list_iterator' object has no attribute 'next' but doing: it.__next__() 9 it.__next__() 8 it is ok. However, manual of Py3.0 indicates iter.next() as valid. Python 25 does not accept "it.__next__()" but "it.next()" Regards.
msg69226 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-07-03 18:59
Where in the 3.0 docs do you see it.next() used? It should be changed.
msg69228 - (view) Author: vizcayno (vizcayno) Date: 2008-07-03 20:05
Please, go to python 3.0 -> python manuals and search with word: iter then select first line of found titles, i.e. Functional Programming HOWTO. Into this title you will find some samples. Regards,
msg69229 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-07-03 20:29
fixed in r64696.
History
Date User Action Args
2022-04-11 14:56:36 admin set github: 47521
2008-07-03 20:29:29 benjamin.peterson set status: open -> closedresolution: fixed
2008-07-03 20:29:01 benjamin.peterson set messages: +
2008-07-03 20:05:32 vizcayno set messages: +
2008-07-03 18:59:30 benjamin.peterson set nosy: + benjamin.petersonmessages: +
2008-07-03 15:10:00 vizcayno create