Suggesting the use of StandardError as base of error Exceptions.

Kent Johnson kent at kentsjohnson.com
Mon Mar 6 07:42:49 EST 2006


Diez B. Roggisch wrote:
> Antoon Pardon schrieb:
>> Now I was wondering if it wouldn't be better that for exception
>> that indicate some error condition that these would inherit
>> from StandardError and that this would be indicated in the
>> documentation and reflected in the stdlib?
>>
>> Would it break much code to make this change? My first impression
>> would be no, but I could be missing something.
> 
> 
> There has been a discussion on this just a few days ago, have you read 
> that? There is even a PEP mentioned.

It's PEP 352, it's already done. This will be in Python 2.5. It's good 
to see that the time machine is stil working ;)
http://www.python.org/peps/pep-0352.html

Kent



More information about the Python-list mailing list