[Python-Dev] Exception Reorg PEP checked in
Wilfredo Sánchez Vega
wsanchez at wsanchez.net
Sat Aug 13 18:02:00 CEST 2005
I'm curious about why Python lacks FileNotFoundError,
PermissionError and the like as subclasses of IOError.
Catching IOError and looking at errno to figure out what went
wrong seems pretty unpythonic, and I've often wished for built-in
subclasses of IOError.
I sometimes subclass them myself, but a lot of the time, I'm
catching such exceptions as thrown by the standard library.
More information about the Python-Dev