[Python-Dev] urllib exception compatibility (original) (raw)
BJörn Lindqvist bjourne at gmail.com
Fri Sep 28 01:35:27 CEST 2007
- Previous message: [Python-Dev] urllib exception compatibility
- Next message: [Python-Dev] urllib exception compatibility
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 9/27/07, Guido van Rossum <guido at python.org> wrote:
How about making IOError, OSError and EnvironmentError all aliases for the same thing? The distinction is really worthless historical baggage.
Wouldn't it also be nice to have some subclasses of IOError like FileNotFoundError, IOPermissionError and EOFError? Often that would be easier than having to use the errno attribute to find out the exact cause.
-- mvh Björn
- Previous message: [Python-Dev] urllib exception compatibility
- Next message: [Python-Dev] urllib exception compatibility
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]