[issue31960] Protection against using a Future with another loop only works with await

Antoine Pitrou report at bugs.python.org
Tue Nov 7 10:33:46 EST 2017


Antoine Pitrou <pitrou at free.fr> added the comment:

My underlying question is why the Future has to set its loop in its constructor, instead of simply using get_event_loop() inside _schedule_callbacks().  This would always work.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31960>
_______________________________________


More information about the Python-bugs-list mailing list