[issue32868] python 3 docs' iterator example has python 2 code

2018-02-18 Thread robotwizard
robotwizard added the comment: I'm so sorry... I tried doing it.next() instead of next(it). I'm sincerely sorry. I promise not to be so frivolous about opening an issue on the bug tracker next time. -- resolution: -> not a bug stage: -> resolved status:

[issue32868] python 3 docs' iterator example has python 2 code

2018-02-18 Thread robotwizard
New submission from robotwizard : 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