New submission from vizcayno <[EMAIL PROTECTED]>: 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 "<stdin>", line 1, in <module> 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. ---------- assignee: georg.brandl components: Documentation messages: 69205 nosy: georg.brandl, vizcayno severity: normal status: open title: iter.next() or iter.__next__() ? type: behavior versions: Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3271> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com