[issue41737] Improper NotADirectoryError when opening a file in a fake directory

Danny Lin report at bugs.python.org
Fri Jul 30 14:13:20 EDT 2021


Danny Lin <danny0838 at gmail.com> added the comment:

It should be emphasized that it may happen on a **file operation**... So at least be something like: "On some platforms, it may also be raised if a file operation involves an attempt to open or traverse a non-directory file as if it were a directory."

----------

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


More information about the Python-bugs-list mailing list