This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients barry, pitrou, vstinner
Date 2019-08-29.13:35:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567085749.64.0.937624095648.issue32847@roundup.psfhosted.org>
In-reply-to
Content
> Maybe we should add one?

I don't think that we need to add an *builtin* exception for every single possible errno. On Linux with Python 3.7, I count 133 different error numbers:

>>> len([name for name in dir(errno) if name.startswith("E")])
133

PEP 3151 explains the rationale for added OSError subclasses.

I think that we should focus on the most common ones, especially the ones which are available on all platforms.

I have no opinion about "errno 39 (Directory not empty)". Is it a "common" error?
History
Date User Action Args
2019-08-29 13:35:49vstinnersetrecipients: + vstinner, barry, pitrou
2019-08-29 13:35:49vstinnersetmessageid: <1567085749.64.0.937624095648.issue32847@roundup.psfhosted.org>
2019-08-29 13:35:49vstinnerlinkissue32847 messages
2019-08-29 13:35:49vstinnercreate