[issue42872] Inconsistent exceptions thrown by pathlib.Path.mkdir on different OSes

Serhiy Storchaka report at bugs.python.org
Sat Jan 9 07:37:30 EST 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Yes, some operations can raise instances of different OSError subclasses on different platforms, because the corresponding C function sets different errno. It is so, and we cannot do anything with this. It is just a part of the difference between plaforms.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42872>
_______________________________________


More information about the Python-bugs-list mailing list