Details on exceptions

Derek Fountain nomail at
Fri Nov 21 03:16:33 CET 2003

Are the details of the builtin exceptions laid out anywhere? I was looking
though the O'Reilly Nutshell book, which informs me that errors with file
objects raise the builtin exception IOError. However, it doesn't describe
this exception in the same way it describes, for example, the OSError
exception. How do I get the actual error code from IOError of what went

I did a search on the Python docs, and couldn't find the information either.
So either the information is well hidden for some reason, or I've missed
some very important information on the standardisation of exception
handling techniques.

More information about the Python-list mailing list