New submission from robotwizard <harikrishnan...@gmail.com>: Please note this is my first issue.
The documentation at https://docs.python.org/3/tutorial/classes.html#iterators on the second code block gives the example of iterating a string by creating an iterator out of it. However I tried it with python 3.5 and 3.6 and both give me a "str_iterator" which has no "next()" method. When I tried the code with python 2.7, it works. ---------- assignee: docs@python components: Documentation messages: 312312 nosy: docs@python, robotwizard, willingc priority: normal severity: normal status: open title: python 3 docs' iterator example has python 2 code versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32868> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com