summaryrefslogtreecommitdiffstats
path: root/Doc/reference/expressions.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-07-03 20:28:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-07-03 20:28:26 (GMT)
commite7c78b26c63728c0ebe081e2b9a1d9c543d2cc1d (patch)
treeb5bf1915d5bcec9b9a893bce5cfc3a74f737203c /Doc/reference/expressions.rst
parent69164c77ef963abea3022b3bc03c839cca860d71 (diff)
downloadcpython-e7c78b26c63728c0ebe081e2b9a1d9c543d2cc1d.zip
cpython-e7c78b26c63728c0ebe081e2b9a1d9c543d2cc1d.tar.gz
cpython-e7c78b26c63728c0ebe081e2b9a1d9c543d2cc1d.tar.bz2
remove traces of .next
Diffstat (limited to 'Doc/reference/expressions.rst')
-rw-r--r--Doc/reference/expressions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index e205e42..43b0bf4 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -375,8 +375,8 @@ generator function:
Starts the execution of a generator function or resumes it at the last
executed :keyword:`yield` expression. When a generator function is resumed
- with a :meth:`next` method, the current :keyword:`yield` expression always
- evaluates to :const:`None`. The execution then continues to the next
+ with a :meth:`__next__` method, the current :keyword:`yield` expression
+ always evaluates to :const:`None`. The execution then continues to the next
:keyword:`yield` expression, where the generator is suspended again, and the
value of the :token:`expression_list` is returned to :meth:`next`'s caller.
If the generator exits without yielding another value, a :exc:`StopIteration`