EAFP vs LBYL (was Re: A little disappointed so far)
Alex Martelli
aleax at aleax.it
Mon May 19 15:32:46 EDT 2003
Donn Cave wrote:
...
> It's a shame that IOError and OSError (and socket.error, etc.) were
> never integrated in some way. I was going to suggest that you could
IOError and OSError subclass EnvironmentError. socket.error doesn't,
I think, but I believe a patch (to _socket.c) to make it do so would
probably stand a good chance to be accepted -- it sounds good to me,
at least.
Alex
More information about the Python-list
mailing list