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. -wsv _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com