[Python-ideas] PEP 3151: Reworking the OS and IO exception hierarchy (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Sat Jul 24 12:12:31 CEST 2010


On Sat, Jul 24, 2010 at 5:16 PM, Ivan Pozdeev <vano at mail.mipt.ru> wrote:

Adding errno-specific subexceptions 1) makes some errnos privileged at the expense of others

Why is that a problem? Some errnos are more important than others - they're the ones the regularly appear on the right hand side of "errno == " checks.

2) introduces a list that isn't bound to any objective characteristic and is just an arbitrary "favorites" list

Why would you consider new classes that would be based on a survey of the errnos that developers actually check for in published code to be "arbitrary"?

3) adds types that characterize single errors rather than error classes which is an unnecessary level of complexity.

Any new IOError subclasses would likely still characterise classes of errors rather than single errno values.

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list