[Python-Dev] thoughts on having EOFError inherit from EnvironmentError?
Guido van Rossum
guido at python.org
Wed Apr 16 06:39:02 CEST 2008
On Tue, Apr 15, 2008 at 8:40 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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.
You are unique in demanding this.
> 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.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev