mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)
(cherry picked from commit 59ee5b1293)
Co-authored-by: Yury Selivanov <yury@magic.io>
This commit is contained in:
committed by
GitHub
parent
24cb7de15d
commit
85ccedc5b5
@@ -893,8 +893,7 @@ enforced.
|
||||
Return ``True`` if *obj* is a :ref:`coroutine object <coroutine>`.
|
||||
|
||||
This method is different from :func:`inspect.iscoroutine` because
|
||||
it returns ``True`` for generator-based coroutines decorated with
|
||||
:func:`@coroutine <coroutine>`.
|
||||
it returns ``True`` for generator-based coroutines.
|
||||
|
||||
.. function:: iscoroutinefunction(func)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user