Title: asyncio "loop argument must agree with future" error message could be improved
Type: Stage: resolved
Components: asyncio Versions: Python 3.8
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ZackerySpytz, asvetlov, r.david.murray, xtreak, yselivanov
Priority: normal Keywords: patch

Created on 2015-07-15 13:39 by r.david.murray, last changed 2019-05-03 15:35 by asvetlov. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 12848 merged ZackerySpytz, 2019-04-15 19:23
Messages (4)
msg246763 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-07-15 13:39
I just got the titular error message and had no idea what it meant until I looked at the source.  It seems to mean "the specified loop is different from the _loop attribute of the future-or-coroutine".  Since _loop is nominally private, perhaps the message could be "the future or coroutine belongs to a different loop than the one specified as the loop argument".
msg246765 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-07-15 13:41
This error message is in
msg340304 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2019-04-15 19:25
I've created a PR for this issue.
msg341344 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2019-05-03 15:35
New changeset 4737b923df6fbdb9e2bf3fdccea2112270556e0a by Andrew Svetlov (Zackery Spytz) in branch 'master':
bpo-24638: Improve the error message in asyncio.ensure_future() (#12848)
Date User Action Args
2019-05-03 15:35:41asvetlovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-05-03 15:35:30asvetlovsetmessages: + msg341344
2019-04-15 19:25:24ZackerySpytzsetversions: + Python 3.8
nosy: + ZackerySpytz, yselivanov, asvetlov

messages: + msg340304

components: + asyncio
2019-04-15 19:23:46ZackerySpytzsetkeywords: + patch
stage: patch review
pull_requests: + pull_request12773
2018-09-22 18:14:31xtreaksetnosy: + xtreak
2015-07-15 13:41:12r.david.murraysetmessages: + msg246765
2015-07-15 13:39:50r.david.murraycreate