add an asynchronous exception class

Fredrik Lundh fredrik at pythonware.com
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:

    http://www.python.org/peps/pep-0348.html

</F>






More information about the Python-list mailing list