[Python-Dev] Problems with GeneratorExit deriving from Exception

Antoine Pitrou solipsis at pitrou.net
Sun Dec 2 21:41:43 CET 2007

Le dimanche 02 décembre 2007 à 11:29 -0800, Chad Austin a écrit :
> If socket.error, xmlrpclib.Fault, httplib.HTTPException, etc. all extended 
> StandardError, then we would probably be fine with that approach.  But I think 
> the majority of exceptions, both in the standard library and our code, extend 
> Exception directly.

Ok, understood. :)

To me it's a shame people don't try to make their exceptions inherit
from a proper base class (be it IOError, ValueError, etc.), but



More information about the Python-Dev mailing list