add an asynchronous exception class

Steven D'Aprano steve at REMOVETHIScyber.com.au
Sat Mar 4 03:29:58 EST 2006


On Sat, 04 Mar 2006 08:41:48 +0100, Fredrik Lundh wrote:

> 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

The PEP has been summarily rejected, perhaps because it was too broad in
the changes it suggested. 



-- 
Steven.




More information about the Python-list mailing list