pep-0492: inspect.isawaitable is dead, long live abc.Awaitable.
This commit is contained in:
parent
6847250c7a
commit
f0951bcf36
|
@ -701,9 +701,6 @@ New Standard Library Functions
|
|||
* ``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 @@ List of high-level changes and new protocols
|
|||
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.
|
||||
|
|
Loading…
Reference in New Issue