A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-April/078663.html below:

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

[Python-Dev] thoughts on having EOFError inherit from EnvironmentError? [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.

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4