[docs] [issue24692] types.coroutines() idempotence documentation
Martin Panter
report at bugs.python.org
Sat Aug 1 10:18:53 CEST 2015
Martin Panter added the comment:
I think you are right that it would be typically used as a decorator. Patch v2 changes it to be defined as a decorator.
Not sure what the second part of your comment is referring to. The existing text about lack of __await__() maybe? You still have to have something (such as “asyncio”) drive the top-level coroutine. So that is a third thing users have to do with them. Passing a coroutine to “await” does not magically make it go, it just becomes a subordinate of the outer coroutine.
----------
Added file: http://bugs.python.org/file40092/coro-idempotent.v2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24692>
_______________________________________
More information about the docs
mailing list