This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: tutorial 9.10. Generators statement error
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, ezio.melotti, rt135792005
Priority: normal Keywords:

Created on 2014-07-21 06:03 by rt135792005, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg223560 - (view) Author: Albert Ho (rt135792005) Date: 2014-07-21 06:03
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
msg223561 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2014-07-21 06:20
The "reverse" function is defined just above the example that uses it.
History
Date User Action Args
2022-04-11 14:58:06adminsetgithub: 66219
2014-07-21 06:20:27ezio.melottisetstatus: open -> closed

type: compile error -> behavior
assignee: docs@python
components: + Documentation

nosy: + docs@python, ezio.melotti
messages: + msg223561
resolution: not a bug
stage: resolved
2014-07-21 06:03:20rt135792005create