add an asynchronous exception class

Fredrik Lundh fredrik at
Sat Mar 4 08:41:48 CET 2006

Paul Rubin wrote:

> I'd like to suggest adding a builtin abstract class to Python called
> AsynchronousException, which would be a subclass of Exception.  The
> only asynchronous exception I can think of right now is
> KeyboardInterrupt, so KeyboardInterrupt would become a subclass of
> AsynchronousException instead of being a direct subclass of Exception.

PEP 348 addresses this by moving special exceptions out of the
Exception hierarchy:


More information about the Python-list mailing list