This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients antoine.pietri, docs@python, martin.panter, python-dev, scoder
Date 2015-08-01.08:18:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438417132.9.0.0165772024062.issue24692@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-08-01 08:18:52martin.pantersetrecipients: + martin.panter, scoder, docs@python, python-dev, antoine.pietri
2015-08-01 08:18:52martin.pantersetmessageid: <1438417132.9.0.0165772024062.issue24692@psf.upfronthosting.co.za>
2015-08-01 08:18:52martin.panterlinkissue24692 messages
2015-08-01 08:18:52martin.pantercreate