Author asvetlov
Recipients asvetlov, jmg, yselivanov
Date 2020-01-20.18:02:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579543333.72.0.597011253134.issue39386@roundup.psfhosted.org>
In-reply-to
Content
Thanks for the report.

Your example could be boiled down to the following:

coro = asynciter()
await coro
await coro

The second call incorrectly returns None but should raise an exception, double awaiting is a programming error.

For regular async functions it raises "RuntimeError: cannot reuse already awaited coroutine"
History
Date User Action Args
2020-01-20 18:02:13asvetlovsetrecipients: + asvetlov, jmg, yselivanov
2020-01-20 18:02:13asvetlovsetmessageid: <1579543333.72.0.597011253134.issue39386@roundup.psfhosted.org>
2020-01-20 18:02:13asvetlovlinkissue39386 messages
2020-01-20 18:02:13asvetlovcreate