diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-24 15:04:15 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-24 15:04:15 (GMT) |
commit | 66f8828bfce4a05cb5e27ed89bba46cdfc64f995 (patch) | |
tree | 1ad1dac376e1af397092b1acd5cd0f82732d31d0 /Doc/library/sys.rst | |
parent | fcba97242b5ff446849e704926f51ce61355ee0b (diff) | |
download | cpython-66f8828bfce4a05cb5e27ed89bba46cdfc64f995.zip cpython-66f8828bfce4a05cb5e27ed89bba46cdfc64f995.tar.gz cpython-66f8828bfce4a05cb5e27ed89bba46cdfc64f995.tar.bz2 |
Issue #24439: Improve PEP 492 related docs.
Patch by Martin Panter.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r-- | Doc/library/sys.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 144c986..545e674 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1080,7 +1080,7 @@ always available. :func:`types.coroutine` or :func:`asyncio.coroutine` will not be intercepted). - *wrapper* must be either: + The *wrapper* argument must be either: * a callable that accepts one argument (a coroutine object); * ``None``, to reset the wrapper. @@ -1096,7 +1096,8 @@ always available. return wrap(coro) sys.set_coroutine_wrapper(wrapper) - async def foo(): pass + async def foo(): + pass # The following line will fail with a RuntimeError, because # `wrapper` creates a `wrap(coro)` coroutine: |