Issue 24180: Fixes by Berker Peksag.
This commit is contained in:
parent
b560158622
commit
a18cad543f
@ -227,9 +227,7 @@ type objects) *must* have the :attr:`ob_size` field.
|
|||||||
protocols at the C-level. See :ref:`async-structs` for details.
|
protocols at the C-level. See :ref:`async-structs` for details.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
.. versionadded:: 3.5
|
||||||
|
Formerly known as ``tp_compare`` and ``tp_reserved``.
|
||||||
.. note::
|
|
||||||
Formerly known as tp_compare and tp_reserved.
|
|
||||||
|
|
||||||
|
|
||||||
.. c:member:: reprfunc PyTypeObject.tp_repr
|
.. c:member:: reprfunc PyTypeObject.tp_repr
|
||||||
@ -1349,6 +1347,7 @@ Async Object Structures
|
|||||||
|
|
||||||
.. sectionauthor:: Yury Selivanov <yselivanov@sprymix.com>
|
.. sectionauthor:: Yury Selivanov <yselivanov@sprymix.com>
|
||||||
|
|
||||||
|
.. versionadded:: 3.5
|
||||||
|
|
||||||
.. c:type:: PyAsyncMethods
|
.. c:type:: PyAsyncMethods
|
||||||
|
|
||||||
|
@ -74,16 +74,12 @@ Glossary
|
|||||||
:keyword:`async with` statement by defining :meth:`__aenter__` and
|
:keyword:`async with` statement by defining :meth:`__aenter__` and
|
||||||
:meth:`__aexit__` methods. Introduced by :pep:`492`.
|
:meth:`__aexit__` methods. Introduced by :pep:`492`.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
|
||||||
|
|
||||||
asynchronous iterable
|
asynchronous iterable
|
||||||
An object, that can be used in an :keyword:`async for` statement.
|
An object, that can be used in an :keyword:`async for` statement.
|
||||||
Must return an :term:`awaitable` from its :meth:`__aiter__` method,
|
Must return an :term:`awaitable` from its :meth:`__aiter__` method,
|
||||||
which should in turn be resolved in an :term:`asynchronous iterator`
|
which should in turn be resolved in an :term:`asynchronous iterator`
|
||||||
object. Introduced by :pep:`492`.
|
object. Introduced by :pep:`492`.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
|
||||||
|
|
||||||
asynchronous iterator
|
asynchronous iterator
|
||||||
An object that implements :meth:`__aiter__` and :meth:`__anext__`
|
An object that implements :meth:`__aiter__` and :meth:`__anext__`
|
||||||
methods, that must return :term:`awaitable` objects.
|
methods, that must return :term:`awaitable` objects.
|
||||||
@ -91,8 +87,6 @@ Glossary
|
|||||||
iterator's :meth:`__anext__` method until it raises
|
iterator's :meth:`__anext__` method until it raises
|
||||||
:exc:`StopAsyncIteration` exception. Introduced by :pep:`492`.
|
:exc:`StopAsyncIteration` exception. Introduced by :pep:`492`.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
|
||||||
|
|
||||||
attribute
|
attribute
|
||||||
A value associated with an object which is referenced by name using
|
A value associated with an object which is referenced by name using
|
||||||
dotted expressions. For example, if an object *o* has an attribute
|
dotted expressions. For example, if an object *o* has an attribute
|
||||||
@ -103,8 +97,6 @@ Glossary
|
|||||||
a :term:`coroutine` or an object with an :meth:`__await__` method.
|
a :term:`coroutine` or an object with an :meth:`__await__` method.
|
||||||
See also :pep:`492`.
|
See also :pep:`492`.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
|
||||||
|
|
||||||
BDFL
|
BDFL
|
||||||
Benevolent Dictator For Life, a.k.a. `Guido van Rossum
|
Benevolent Dictator For Life, a.k.a. `Guido van Rossum
|
||||||
<https://www.python.org/~guido/>`_, Python's creator.
|
<https://www.python.org/~guido/>`_, Python's creator.
|
||||||
@ -183,8 +175,6 @@ Glossary
|
|||||||
:keyword:`async for`, and :keyword:`async with` keywords. Introduced
|
:keyword:`async for`, and :keyword:`async with` keywords. Introduced
|
||||||
by :pep:`492`.
|
by :pep:`492`.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
|
||||||
|
|
||||||
coroutine
|
coroutine
|
||||||
Coroutines is a more generalized form of subroutines. Subroutines are
|
Coroutines is a more generalized form of subroutines. Subroutines are
|
||||||
entered at one point and exited at another point. Coroutines, can be
|
entered at one point and exited at another point. Coroutines, can be
|
||||||
@ -192,8 +182,6 @@ Glossary
|
|||||||
:keyword:`await` expressions, and :keyword:`async for` and
|
:keyword:`await` expressions, and :keyword:`async for` and
|
||||||
:keyword:`async with` statements. See also :pep:`492`.
|
:keyword:`async with` statements. See also :pep:`492`.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
|
||||||
|
|
||||||
CPython
|
CPython
|
||||||
The canonical implementation of the Python programming language, as
|
The canonical implementation of the Python programming language, as
|
||||||
distributed on `python.org <https://www.python.org>`_. The term "CPython"
|
distributed on `python.org <https://www.python.org>`_. The term "CPython"
|
||||||
|
@ -328,7 +328,6 @@ The following exceptions are the exceptions that are usually raised.
|
|||||||
:term:`asynchronous iterator` object to stop the iteration.
|
:term:`asynchronous iterator` object to stop the iteration.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
.. versionadded:: 3.5
|
||||||
See also :pep:`492`.
|
|
||||||
|
|
||||||
.. exception:: SyntaxError
|
.. exception:: SyntaxError
|
||||||
|
|
||||||
|
@ -268,23 +268,21 @@ attributes:
|
|||||||
|
|
||||||
.. function:: iscoroutinefunction(object)
|
.. function:: iscoroutinefunction(object)
|
||||||
|
|
||||||
Return true if the object is a coroutine function.
|
Return true if the object is a :term:`coroutine function`.
|
||||||
|
|
||||||
Coroutine functions are defined with an ``async def`` syntax,
|
Coroutine functions are defined with an ``async def`` syntax,
|
||||||
or are generators decorated with :func:`types.coroutine`
|
or are generators decorated with :func:`types.coroutine`
|
||||||
or :func:`asyncio.coroutine`.
|
or :func:`asyncio.coroutine`.
|
||||||
|
|
||||||
The function will return false for plain python generator
|
The function will return false for plain Python generator
|
||||||
functions.
|
functions.
|
||||||
|
|
||||||
See also :pep:`492`.
|
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
.. versionadded:: 3.5
|
||||||
|
|
||||||
|
|
||||||
.. function:: iscoroutine(object)
|
.. function:: iscoroutine(object)
|
||||||
|
|
||||||
Return true if the object is a coroutine.
|
Return true if the object is a :term:`coroutine`.
|
||||||
|
|
||||||
Coroutines are results of calls of coroutine functions or
|
Coroutines are results of calls of coroutine functions or
|
||||||
generator functions decorated with :func:`types.coroutine`
|
generator functions decorated with :func:`types.coroutine`
|
||||||
@ -292,7 +290,7 @@ attributes:
|
|||||||
|
|
||||||
The function will return false for plain python generators.
|
The function will return false for plain python generators.
|
||||||
|
|
||||||
See also :class:`collections.abc.Coroutine` and :pep:`492`.
|
See also :class:`collections.abc.Coroutine`.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
.. versionadded:: 3.5
|
||||||
|
|
||||||
@ -302,7 +300,7 @@ attributes:
|
|||||||
Return true if the object can be used in :keyword:`await`
|
Return true if the object can be used in :keyword:`await`
|
||||||
expression.
|
expression.
|
||||||
|
|
||||||
See also :class:`collections.abc.Awaitable` and :pep:`492`.
|
See also :class:`collections.abc.Awaitable`.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
.. versionadded:: 3.5
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user