diff options
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r-- | Doc/library/sys.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 9d62835..144c986 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1075,7 +1075,10 @@ always available. .. function:: set_coroutine_wrapper(wrapper) - Allows to intercept creation of :term:`coroutine` objects. + Allows intercepting creation of :term:`coroutine` objects (only ones that + are created by an :keyword:`async def` function; generators decorated with + :func:`types.coroutine` or :func:`asyncio.coroutine` will not be + intercepted). *wrapper* must be either: |