mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)
This commit is contained in:
parent
994269ccee
commit
59ee5b1293
1 changed files with 1 additions and 2 deletions
|
@ -924,8 +924,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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue