[issue22020] tutorial 9.10. Generators statement error

2014-07-20 Thread Ezio Melotti
Ezio Melotti added the comment: The "reverse" function is defined just above the example that uses it. -- assignee: -> docs@python components: +Documentation nosy: +docs@python, ezio.melotti resolution: -> not a bug stage: -> resolved status: open -> closed type: compile error -> beha

[issue22020] tutorial 9.10. Generators statement error

2014-07-20 Thread Albert Ho
New submission from Albert Ho: https://docs.python.org/3/tutorial/classes.html >>> for char in reverse('golf'): I found that reverse didnt work and i check the doc https://docs.python.org/3.4/library/functions.html#reversed >>> reversed(seq)ΒΆ I guess it just forget to change the statement