[docs] [issue24692] types.coroutines() idempotence documentation

Stefan Behnel report at bugs.python.org
Wed Jul 29 19:30:15 CEST 2015


Stefan Behnel added the comment:

Note that the expected usage is not as a function but as a decorator. That should be stated in the docs as well. IMHO, users should only do two things with whatever the result is: either use it as a Generator (as before), or pass it as an argument to "await". Everything else is best considered implementation details. Well, except for the case of passing a coroutine, which will obviously just be passed through (and that answers the original question).

----------
nosy: +scoder

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24692>
_______________________________________


More information about the docs mailing list