pep-0492: Minor edits

This commit is contained in:
Yury Selivanov 2015-05-04 19:10:57 -04:00
parent 0ee58b260f
commit 25637395f8
1 changed files with 2 additions and 3 deletions

View File

@ -25,8 +25,7 @@ is to help establish a common, easily approachable, mental
model of asynchronous programming in Python and make it as close to
synchronous programming as possible.
This PEP improves upon PEP 342, and, in a sense, supercedes it. We
believe that the changes proposed here will help keep Python
We believe that the changes proposed here will help keep Python
relevant and competitive in a quickly growing area of asynchronous
programming, as many other languages have adopted, or are planning to
adopt, similar features: [2]_, [5]_, [6]_, [7]_, [8]_, [10]_.
@ -691,7 +690,7 @@ New Standard Library Functions
* ``inspect.isawaitable(obj)`` returns ``True`` if ``obj`` can be used
in ``await`` expression. See `Await Expression`_ for details.
* ``sys.set_coroutine_wrapper(wraper)`` allows to intercept creation of
* ``sys.set_coroutine_wrapper(wrapper)`` allows to intercept creation of
*coroutine objects*. ``wraper`` must be a callable that accepts one
argument: a *coroutine object* or ``None``. ``None`` resets the
wrapper. If called twice, the new wrapper replaces the previous one.