KeyboardInterrupt is generally not handled properly by asyncio, the normal behavior here is that the code just exits with a traceback.
On Tue, Jun 7, 2022 at 11:00 AM Yves Duprat <[email protected]> wrote: > Hi, > > regarding this [issue93122](https://github.com/python/cpython/issues/93122), > I am wondering what is the normal behavior of `asyncio.gather` when one of > the submitted tasks raises a `KeyboardInterrupt` exception ? -- regardless > of the value of the `return_exception` parameter. > It seems that this primitive does not behave the same way with > `KeyboardInterrupt` and `ZeroDivisionError` exceptions. But may be it is > normal ? > I have searched in the documentation [here]( > https://docs.python.org/3/library/asyncio-task.html#asyncio.gather) but I > did not find anything. > Thanks for your help. > > Yves > _______________________________________________ > Python-Dev mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/5KVY7SSDTYWOAOCXVSXNBHCSDEJ5JPP7/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/HTWTWS3M2PKQILSKN3V7UM73ZKOOQ33K/ Code of Conduct: http://python.org/psf/codeofconduct/
