PEP 492: Resolve dangling hyphens (#3356)

This commit is contained in:
Adam Turner 2023-09-01 19:44:08 +01:00 committed by GitHub
parent 1e6221e7fe
commit 20b605caf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -173,8 +173,8 @@ in asyncio and *native coroutines* introduced by this PEP::
data = yield from read_data(db)
...
The function applies ``CO_ITERABLE_COROUTINE`` flag to generator-
function's code object, making it return a *coroutine* object.
The function applies ``CO_ITERABLE_COROUTINE`` flag to
generator-function's code object, making it return a *coroutine* object.
If ``fn`` is not a *generator function*, it is wrapped. If it returns
a *generator*, it will be wrapped in an *awaitable* proxy object
@ -996,8 +996,8 @@ Differences from this proposal:
coroutines with ``yield`` or ``async yield`` expressions -- we
wouldn't need a ``cocall`` keyword to call them. So we'll end up
having ``__cocall__`` and no ``__call__`` for regular coroutines,
and having ``__call__`` and no ``__cocall__`` for coroutine-
generators.
and having ``__call__`` and no ``__cocall__`` for
coroutine-generators.
6. Requiring parentheses grammatically also introduces a whole lot
of new problems.
@ -1316,8 +1316,8 @@ List of high-level changes and new protocols
associated protocol with ``__aenter__`` and ``__aexit__`` methods.
4. New syntax for asynchronous iteration: ``async for``. And
associated protocol with ``__aiter__``, ``__aexit__`` and new built-
in exception ``StopAsyncIteration``. New ``tp_as_async.am_aiter``
associated protocol with ``__aiter__``, ``__aexit__`` and new built-in
exception ``StopAsyncIteration``. New ``tp_as_async.am_aiter``
and ``tp_as_async.am_anext`` slots in ``PyTypeObject``.
5. New AST nodes: ``AsyncFunctionDef``, ``AsyncFor``, ``AsyncWith``,