STINNER Victor <[email protected]> added the comment:
> 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?
----------
nosy: +vstinner
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32847>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com