[New-bugs-announce] [issue4992] yield's documentation not updated
report at bugs.python.org
Sun Jan 18 23:55:12 CET 2009
New submission from Petr Viktorin <encukou at gmail.com>:
In the yield statement documentation
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.
nosy: En-Cu-Kou, georg.brandl
title: yield's documentation not updated
versions: Python 3.0
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce