◐ Shell
clean mode source ↗

Message 256539 - Python tracker

Message256539

Author yselivanov
Recipients asvetlov, gvanrossum, ncoghlan, vstinner, yselivanov
Date 2015-12-16.21:51:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450302672.61.0.939075659371.issue25888@psf.upfronthosting.co.za>
In-reply-to
Content
This problem was discussed in one of the asyncio issues here: https://github.com/python/asyncio/issues/288

I propose to raise a RuntimeError if an 'await' expression is used for a coroutine object that's being awaited on already.  This change shouldn't impact performance in any way.  It will prevent users from writing code that behaves in a very weird ways (see the github link for an example).
History
Date User Action Args
2015-12-16 21:51:12yselivanovsetrecipients: + yselivanov, gvanrossum, ncoghlan, vstinner, asvetlov
2015-12-16 21:51:12yselivanovsetmessageid: <1450302672.61.0.939075659371.issue25888@psf.upfronthosting.co.za>
2015-12-16 21:51:12yselivanovlinkissue25888 messages
2015-12-16 21:51:12yselivanovcreate