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.

Author petr.viktorin
Recipients georg.brandl, petr.viktorin
Date 2009-01-18.22:55:10
SpamBayes Score 0.0034185457
Marked as misclassified No
Message-id <1232319312.46.0.667626052793.issue4992@psf.upfronthosting.co.za>
In-reply-to
Content
In the yield statement documentation
(http://docs.python.org/3.0/reference/simple_stmts.html#the-yield-statement),
the old way of calling generators is used:

"The body of the generator function is executed by calling the
generator’s next() method repeatedly until it raises an exception."

This should be changed to something like:

"The body of the generator function is executed by calling the next()
function on the generator repeatedly until it raises an exception."

Or just replace next() with __next__(), and fix the next paragraph as well.
History
Date User Action Args
2009-01-18 22:55:12petr.viktorinsetrecipients: + petr.viktorin, georg.brandl
2009-01-18 22:55:12petr.viktorinsetmessageid: <1232319312.46.0.667626052793.issue4992@psf.upfronthosting.co.za>
2009-01-18 22:55:11petr.viktorinlinkissue4992 messages
2009-01-18 22:55:10petr.viktorincreate