Guido van Rossum added the comment:
FWIW I think this is now fixed differently, because we reimplemented stop() to
use a flag on the loop that's checked by _run_once(), rather than raising an
exception. _run_until_complete_cb() can be reduced to simply call
fut._loop.stop(). (At least, all
Roundup Robot added the comment:
New changeset 83bddbfbd3a4 by Victor Stinner in branch '3.4':
Closes #22429, asyncio: Fix EventLoop.run_until_complete(), don't stop the
https://hg.python.org/cpython/rev/83bddbfbd3a4
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status:
STINNER Victor added the comment:
Here is a simple patch which fixes this specific issue.
--
keywords: +patch
Added file:
http://bugs.python.org/file37312/run_until_complete_baseexception.patch
___
Python tracker rep...@bugs.python.org
New submission from STINNER Victor:
Attached script stops immediatly whereas I would expect that the second call to
run_forever() keeps running. If you execute the script, you will see:
deque([Handle _raise_stop_error() at
/home/haypo/prog/python/default/Lib/asyncio/base_events.py:94])
The