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 giampaolo.rodola, gvanrossum, martin.panter, ncoghlan, pitrou, srkunze, vstinner, yselivanov
Date 2015-07-06.23:41:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436226074.4.0.00650562036167.issue24578@psf.upfronthosting.co.za>
In-reply-to
Content
I don’t think you need the __await__() call. Just do loop.run_until_complete(awaitable).

I understand “asyncio” doesn’t support recursive calls into the same event loop on purpose; see Issue 22239. So this code would only be useful from outside of the event loop, or if more than one event loop was in use.
History
Date User Action Args
2015-07-06 23:41:14martin.pantersetrecipients: + martin.panter, gvanrossum, ncoghlan, pitrou, vstinner, giampaolo.rodola, yselivanov, srkunze
2015-07-06 23:41:14martin.pantersetmessageid: <1436226074.4.0.00650562036167.issue24578@psf.upfronthosting.co.za>
2015-07-06 23:41:14martin.panterlinkissue24578 messages
2015-07-06 23:41:14martin.pantercreate