[Python-Dev] thoughts on having EOFError inherit from EnvironmentError?

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 16 05:40:39 CEST 2008

Guido van Rossum wrote:
>>  Often I raise EnvironmentErrors of my own to signal
>>  parsing errors. 
> Well, that's your problem. That's not what EnvironmentErrors are for.

But it seems like it's what it *should* be for.

I'd be happy to use some other standard exception
type if one existed at the right point in the hierarchy
to catch what I want to catch, but there isn't one.


More information about the Python-Dev mailing list