mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
Issue #24400: Remove inspect.isawaitable().
isawaitable() was added before collections.abc.Awaitable; now, with Awaitable, it is no longer needed (we don't have ishashable() or isiterable() methods in the inspect module either).
This commit is contained in:
parent
86cd7d6b75
commit
a74b5e59af
4 changed files with 2 additions and 42 deletions
|
|
@ -303,16 +303,6 @@ attributes:
|
|||
.. versionadded:: 3.5
|
||||
|
||||
|
||||
.. function:: isawaitable(object)
|
||||
|
||||
Return true if the object can be used in :keyword:`await`
|
||||
expression.
|
||||
|
||||
See also :class:`collections.abc.Awaitable`.
|
||||
|
||||
.. versionadded:: 3.5
|
||||
|
||||
|
||||
.. function:: istraceback(object)
|
||||
|
||||
Return true if the object is a traceback.
|
||||
|
|
|
|||
|
|
@ -527,9 +527,8 @@ inspect
|
|||
* New argument ``follow_wrapped`` for :func:`inspect.signature`.
|
||||
(Contributed by Yury Selivanov in :issue:`20691`.)
|
||||
|
||||
* New :func:`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`,
|
||||
and :func:`~inspect.isawaitable` functions. (Contributed by Yury Selivanov
|
||||
in :issue:`24017`.)
|
||||
* New :func:`~inspect.iscoroutine` and :func:`~inspect.iscoroutinefunction`
|
||||
functions. (Contributed by Yury Selivanov in :issue:`24017`.)
|
||||
|
||||
* New :func:`~inspect.getcoroutinelocals` and :func:`~inspect.getcoroutinestate`
|
||||
functions. (Contributed by Yury Selivanov in :issue:`24400`.)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue