[Python-checkins] peps: Fix typo
andrew.svetlov
python-checkins at python.org
Fri Oct 9 13:12:09 EDT 2015
https://hg.python.org/peps/rev/7a3cf8cd02ab
changeset: 6109:7a3cf8cd02ab
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Fri Oct 09 20:10:51 2015 +0300
summary:
Fix typo
files:
pep-0492.txt | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -125,7 +125,7 @@
* Internally, two new code object flags were introduced:
- ``CO_COROUTINE`` is used to mark *native coroutines*
- (defined with new syntax.)
+ (defined with new syntax).
- ``CO_ITERABLE_COROUTINE`` is used to make *generator-based
coroutines* compatible with *native coroutines* (set by
@@ -139,7 +139,7 @@
such behavior requires a future import (see PEP 479).
* When a *coroutine* is garbage collected, a ``RuntimeWarning`` is
- raised if it was never awaited on (see also `Debugging Features`_.)
+ raised if it was never awaited on (see also `Debugging Features`_).
* See also `Coroutine objects`_ section.
@@ -199,7 +199,7 @@
internally, coroutines are a special kind of generators, every
``await`` is suspended by a ``yield`` somewhere down the chain of
``await`` calls (please refer to PEP 3156 for a detailed
- explanation.)
+ explanation).
To enable this behavior for coroutines, a new magic method called
``__await__`` is added. In asyncio, for instance, to enable *Future*
@@ -222,7 +222,7 @@
It is a ``SyntaxError`` to use ``await`` outside of an ``async def``
function (like it is a ``SyntaxError`` to use ``yield`` outside of
-``def`` function.)
+``def`` function).
It is a ``TypeError`` to pass anything other than an *awaitable* object
to an ``await`` expression.
@@ -918,7 +918,7 @@
``async`` is mostly used by asyncio. We are addressing this by
renaming ``async()`` function to ``ensure_future()`` (see `asyncio`_
-section for details.)
+section for details).
Another use of ``async`` keyword is in ``Lib/xml/dom/xmlbuilder.py``,
to define an ``async = False`` attribute for ``DocumentLS`` class.
@@ -970,7 +970,7 @@
2. A new keyword ``cocall`` to call a *cofunction*. Can only be used
inside a *cofunction*. Maps to ``await`` in this proposal (with
- some differences, see below.)
+ some differences, see below).
3. It is not possible to call a *cofunction* without a ``cocall``
keyword.
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list