[issue45390] asyncio.Task doesn't propagate CancelledError() exception correctly.
Ben
report at bugs.python.org
Wed Oct 6 07:36:52 EDT 2021
Ben <benjsimner at gmail.com> added the comment:
This seems to be present in both the Python implementation as well as the accelerated C _asyncio module.
It looks like that when a Task awaits a cancelled future,
the task itself is cancelled but the cancellation message is not propagated to the task.
https://github.com/python/cpython/blob/main/Lib/asyncio/tasks.py#L242
----------
nosy: +bjs
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45390>
_______________________________________
More information about the Python-bugs-list
mailing list