[issue22429] asyncio: pending call to loop.stop() if a coroutine raises a BaseException

2015-12-19 Thread Guido van Rossum
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

[issue22429] asyncio: pending call to loop.stop() if a coroutine raises a BaseException

2014-12-04 Thread Roundup Robot
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:

[issue22429] asyncio: pending call to loop.stop() if a coroutine raises a BaseException

2014-11-28 Thread STINNER Victor
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

[issue22429] asyncio: pending call to loop.stop() if a coroutine raises a BaseException

2014-09-17 Thread STINNER Victor
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