]> granicus.if.org Git - python/commit
Issue #24400: Resurrect inspect.isawaitable()
authorYury Selivanov <yselivanov@sprymix.com>
Fri, 3 Jul 2015 17:11:35 +0000 (13:11 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Fri, 3 Jul 2015 17:11:35 +0000 (13:11 -0400)
commitfdbeb2b4b67e1e44c96127a06cf1bdf878f4f7ca
tree249f7190feeef1e18f5c88b5987f6e632193df33
parent2ab5b092e5a82390c236708b7c163a32dfc928a1
Issue #24400: Resurrect inspect.isawaitable()

collections.abc.Awaitable and collections.abc.Coroutine no longer
use __instancecheck__ hook to detect generator-based coroutines.

inspect.isawaitable() can be used to detect generator-based coroutines
and to distinguish them from regular generator objects.
Doc/library/collections.abc.rst
Doc/library/inspect.rst
Doc/whatsnew/3.5.rst
Lib/_collections_abc.py
Lib/inspect.py
Lib/test/test_collections.py
Lib/test/test_inspect.py
Lib/test/test_types.py
Lib/types.py
Misc/NEWS