Andrew Svetlov <andrew.svet...@gmail.com> added the comment:

asyncio exception handler is supposed to catch *unhandled* exceptions only, not 
all raised ones.

The first two cases from your example propagate raised exceptions to the 
caller, these exceptions are unwound in a regular manner.
So, no need to call the exception handler.

The third case is different, an exception from a spawned task is not propagated 
to the parent task implicitly. That's why the exception is *unhandled* and 
passed to the registered exception handler.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39256>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to