Skip to content

Commit a18cad5

Browse files
committed
Issue 24180: Fixes by Berker Peksag.
1 parent b560158 commit a18cad5

File tree

4 files changed

+7
-23
lines changed

4 files changed

+7
-23
lines changed

Doc/c-api/typeobj.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@ type objects) *must* have the :attr:`ob_size` field.
227227
protocols at the C-level. See :ref:`async-structs` for details.
228228

229229
.. versionadded:: 3.5
230-
231-
.. note::
232-
Formerly known as tp_compare and tp_reserved.
230+
Formerly known as ``tp_compare`` and ``tp_reserved``.
233231

234232

235233
.. c:member:: reprfunc PyTypeObject.tp_repr
@@ -1349,6 +1347,7 @@ Async Object Structures
13491347

13501348
.. sectionauthor:: Yury Selivanov <yselivanov@sprymix.com>
13511349

1350+
.. versionadded:: 3.5
13521351

13531352
.. c:type:: PyAsyncMethods
13541353

Doc/glossary.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,19 @@ Glossary
7474
:keyword:`async with` statement by defining :meth:`__aenter__` and
7575
:meth:`__aexit__` methods. Introduced by :pep:`492`.
7676

77-
.. versionadded:: 3.5
78-
7977
asynchronous iterable
8078
An object, that can be used in an :keyword:`async for` statement.
8179
Must return an :term:`awaitable` from its :meth:`__aiter__` method,
8280
which should in turn be resolved in an :term:`asynchronous iterator`
8381
object. Introduced by :pep:`492`.
8482

85-
.. versionadded:: 3.5
86-
8783
asynchronous iterator
8884
An object that implements :meth:`__aiter__` and :meth:`__anext__`
8985
methods, that must return :term:`awaitable` objects.
9086
:keyword:`async for` resolves awaitable returned from asynchronous
9187
iterator's :meth:`__anext__` method until it raises
9288
:exc:`StopAsyncIteration` exception. Introduced by :pep:`492`.
9389

94-
.. versionadded:: 3.5
95-
9690
attribute
9791
A value associated with an object which is referenced by name using
9892
dotted expressions. For example, if an object *o* has an attribute
@@ -103,8 +97,6 @@ Glossary
10397
a :term:`coroutine` or an object with an :meth:`__await__` method.
10498
See also :pep:`492`.
10599

106-
.. versionadded:: 3.5
107-
108100
BDFL
109101
Benevolent Dictator For Life, a.k.a. `Guido van Rossum
110102
<https://www.python.org/~guido/>`_, Python's creator.
@@ -183,17 +175,13 @@ Glossary
183175
:keyword:`async for`, and :keyword:`async with` keywords. Introduced
184176
by :pep:`492`.
185177

186-
.. versionadded:: 3.5
187-
188178
coroutine
189179
Coroutines is a more generalized form of subroutines. Subroutines are
190180
entered at one point and exited at another point. Coroutines, can be
191181
entered, exited, and resumed at many different points. See
192182
:keyword:`await` expressions, and :keyword:`async for` and
193183
:keyword:`async with` statements. See also :pep:`492`.
194184

195-
.. versionadded:: 3.5
196-
197185
CPython
198186
The canonical implementation of the Python programming language, as
199187
distributed on `python.org <https://www.python.org>`_. The term "CPython"

Doc/library/exceptions.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ The following exceptions are the exceptions that are usually raised.
328328
:term:`asynchronous iterator` object to stop the iteration.
329329

330330
.. versionadded:: 3.5
331-
See also :pep:`492`.
332331

333332
.. exception:: SyntaxError
334333

Doc/library/inspect.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,31 +268,29 @@ attributes:
268268

269269
.. function:: iscoroutinefunction(object)
270270

271-
Return true if the object is a coroutine function.
271+
Return true if the object is a :term:`coroutine function`.
272272

273273
Coroutine functions are defined with an ``async def`` syntax,
274274
or are generators decorated with :func:`types.coroutine`
275275
or :func:`asyncio.coroutine`.
276276

277-
The function will return false for plain python generator
277+
The function will return false for plain Python generator
278278
functions.
279279

280-
See also :pep:`492`.
281-
282280
.. versionadded:: 3.5
283281

284282

285283
.. function:: iscoroutine(object)
286284

287-
Return true if the object is a coroutine.
285+
Return true if the object is a :term:`coroutine`.
288286

289287
Coroutines are results of calls of coroutine functions or
290288
generator functions decorated with :func:`types.coroutine`
291289
or :func:`asyncio.coroutine`.
292290

293291
The function will return false for plain python generators.
294292

295-
See also :class:`collections.abc.Coroutine` and :pep:`492`.
293+
See also :class:`collections.abc.Coroutine`.
296294

297295
.. versionadded:: 3.5
298296

@@ -302,7 +300,7 @@ attributes:
302300
Return true if the object can be used in :keyword:`await`
303301
expression.
304302

305-
See also :class:`collections.abc.Awaitable` and :pep:`492`.
303+
See also :class:`collections.abc.Awaitable`.
306304

307305
.. versionadded:: 3.5
308306

0 commit comments

Comments
 (0)