peps: pep-0492: inspect.isawaitable is dead, long live abc.Awaitable.
https://hg.python.org/peps/rev/201dce690493 changeset: 5901:201dce690493 user: Yury Selivanov <yselivanov@sprymix.com> date: Tue Jun 30 18:30:43 2015 -0400 summary: pep-0492: inspect.isawaitable is dead, long live abc.Awaitable. files: pep-0492.txt | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pep-0492.txt b/pep-0492.txt --- a/pep-0492.txt +++ b/pep-0492.txt @@ -701,9 +701,6 @@ * ``inspect.iscoroutinefunction(obj)`` returns ``True`` if ``obj`` is a *native coroutine function*. -* ``inspect.isawaitable(obj)`` returns ``True`` if ``obj`` can be used - in ``await`` expression. See `Await Expression`_ for details. - * ``inspect.getcoroutinestate(coro)`` returns the current state of a *native coroutine object* (mirrors ``inspect.getfgeneratorstate(gen)``). @@ -1360,8 +1357,8 @@ 6. New functions: ``sys.set_coroutine_wrapper(callback)``, ``sys.get_coroutine_wrapper()``, ``types.coroutine(gen)``, ``inspect.iscoroutinefunction(func)``, ``inspect.iscoroutine(obj)``, - ``inspect.isawaitable(obj)``, ``inspect.getcoroutinestate(coro)``, - and ``inspect.getcoroutinelocals(coro)``. + ``inspect.getcoroutinestate(coro)``, and + ``inspect.getcoroutinelocals(coro)``. 7. New ``CO_COROUTINE`` and ``CO_ITERABLE_COROUTINE`` bit flags for code objects. -- Repository URL: https://hg.python.org/peps
participants (1)
-
yury.selivanov