Skip to content

Commit bbf722d

Browse files
authored
gh-101100: Fix reference to asynchronous methods (#106172)
1 parent 6b52a58 commit bbf722d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Doc/glossary.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ Glossary
8383

8484
asynchronous context manager
8585
An object which controls the environment seen in an
86-
:keyword:`async with` statement by defining :meth:`__aenter__` and
87-
:meth:`__aexit__` methods. Introduced by :pep:`492`.
86+
:keyword:`async with` statement by defining :meth:`~object.__aenter__` and
87+
:meth:`~object.__aexit__` methods. Introduced by :pep:`492`.
8888

8989
asynchronous generator
9090
A function which returns an :term:`asynchronous generator iterator`. It
@@ -104,26 +104,26 @@ Glossary
104104
An object created by a :term:`asynchronous generator` function.
105105

106106
This is an :term:`asynchronous iterator` which when called using the
107-
:meth:`__anext__` method returns an awaitable object which will execute
107+
:meth:`~object.__anext__` method returns an awaitable object which will execute
108108
the body of the asynchronous generator function until the next
109109
:keyword:`yield` expression.
110110

111111
Each :keyword:`yield` temporarily suspends processing, remembering the
112112
location execution state (including local variables and pending
113113
try-statements). When the *asynchronous generator iterator* effectively
114-
resumes with another awaitable returned by :meth:`__anext__`, it
114+
resumes with another awaitable returned by :meth:`~object.__anext__`, it
115115
picks up where it left off. See :pep:`492` and :pep:`525`.
116116

117117
asynchronous iterable
118118
An object, that can be used in an :keyword:`async for` statement.
119119
Must return an :term:`asynchronous iterator` from its
120-
:meth:`__aiter__` method. Introduced by :pep:`492`.
120+
:meth:`~object.__aiter__` method. Introduced by :pep:`492`.
121121

122122
asynchronous iterator
123-
An object that implements the :meth:`__aiter__` and :meth:`__anext__`
124-
methods. ``__anext__`` must return an :term:`awaitable` object.
123+
An object that implements the :meth:`~object.__aiter__` and :meth:`~object.__anext__`
124+
methods. :meth:`~object.__anext__` must return an :term:`awaitable` object.
125125
:keyword:`async for` resolves the awaitables returned by an asynchronous
126-
iterator's :meth:`__anext__` method until it raises a
126+
iterator's :meth:`~object.__anext__` method until it raises a
127127
:exc:`StopAsyncIteration` exception. Introduced by :pep:`492`.
128128

129129
attribute
@@ -140,7 +140,7 @@ Glossary
140140

141141
awaitable
142142
An object that can be used in an :keyword:`await` expression. Can be
143-
a :term:`coroutine` or an object with an :meth:`__await__` method.
143+
a :term:`coroutine` or an object with an :meth:`~object.__await__` method.
144144
See also :pep:`492`.
145145

146146
BDFL

Doc/library/exceptions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ The following exceptions are the exceptions that are usually raised.
450450

451451
.. exception:: StopAsyncIteration
452452

453-
Must be raised by :meth:`__anext__` method of an
453+
Must be raised by :meth:`~object.__anext__` method of an
454454
:term:`asynchronous iterator` object to stop the iteration.
455455

456456
.. versionadded:: 3.5

0 commit comments

Comments
 (0)