summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-21 15:50:30 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-21 15:50:30 (GMT)
commitf3e40fac10fa240b98a709191c6648fdd585b55f (patch)
treee5f27a9f6b15c73d46e42dec738a2a8fb44f39d8 /Doc/glossary.rst
parent548de2b210d60e4619c69269685ca66a59b29b6b (diff)
downloadcpython-f3e40fac10fa240b98a709191c6648fdd585b55f.zip
cpython-f3e40fac10fa240b98a709191c6648fdd585b55f.tar.gz
cpython-f3e40fac10fa240b98a709191c6648fdd585b55f.tar.bz2
Issue 24180: Documentation for PEP 492 changes.
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r--Doc/glossary.rst48
1 files changed, 48 insertions, 0 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 57c6ddd..6158a57 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -69,11 +69,42 @@ Glossary
:ref:`the difference between arguments and parameters
<faq-argument-vs-parameter>`, and :pep:`362`.
+ asynchronous context manager
+ An object which controls the environment seen in an
+ :keyword:`async with` statement by defining :meth:`__aenter__` and
+ :meth:`__aexit__` methods. Introduced by :pep:`492`.
+
+ .. versionadded:: 3.5
+
+ asynchronous iterable
+ An object, that can be used in an :keyword:`async for` statement.
+ Must return an :term:`awaitable` from its :meth:`__aiter__` method,
+ which should in turn be resolved in an :term:`asynchronous iterator`
+ object. Introduced by :pep:`492`.
+
+ .. versionadded:: 3.5
+
+ asynchronous iterator
+ An object that implements :meth:`__aiter__` and :meth:`__anext__`
+ methods, that must return :term:`awaitable` objects.
+ :keyword:`async for` resolves awaitable returned from asynchronous
+ iterator's :meth:`__anext__` method until it raises
+ :exc:`StopAsyncIteration` exception. Introduced by :pep:`492`.
+
+ .. versionadded:: 3.5
+
attribute
A value associated with an object which is referenced by name using
dotted expressions. For example, if an object *o* has an attribute
*a* it would be referenced as *o.a*.
+ awaitable
+ An object that can be used in an :keyword:`await` expression. Can be
+ a :term:`coroutine` or an object with an :meth:`__await__` method.
+ See also :pep:`492`.
+
+ .. versionadded:: 3.5
+
BDFL
Benevolent Dictator For Life, a.k.a. `Guido van Rossum
<https://www.python.org/~guido/>`_, Python's creator.
@@ -146,6 +177,23 @@ Glossary
statement by defining :meth:`__enter__` and :meth:`__exit__` methods.
See :pep:`343`.
+ coroutine function
+ A function which returns a :term:`coroutine` object. It is defined
+ with an :keyword:`async def` keyword, and may contain :keyword:`await`,
+ :keyword:`async for`, and :keyword:`async with` keywords. Introduced
+ by :pep:`492`.
+
+ .. versionadded:: 3.5
+
+ coroutine
+ Coroutines is a more generalized form of subroutines. Subroutines are
+ entered at one point and exited at another point. Coroutines, can be
+ entered, exited, and resumed at many different points. See
+ :keyword:`await` expressions, and :keyword:`async for` and
+ :keyword:`async with` statements. See also :pep:`492`.
+
+ .. versionadded:: 3.5
+
CPython
The canonical implementation of the Python programming language, as
distributed on `python.org <https://www.python.org>`_. The term "CPython"