[Python-Dev] IO module precisions and exception hierarchy

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 29 07:20:13 CEST 2009


Michael Foord wrote:

> You said that having an exception hierarchy was impossible because the 
> only information we have is the error number.

No, I said that having an exception hierarchy wouldn't
help you to sort out the different meanings of a single
error code.

If you have some *other* way of sorting them out, then
obviously you can represent them using different
exceptions if you want.

-- 
Greg


More information about the Python-Dev mailing list