[issue29366] os.listdir has inconsistent behavior when run on a non-directory
raylu
report at bugs.python.org
Wed Jan 25 15:06:22 EST 2017
raylu added the comment:
os.listdir should always return NotADirectoryError when run on a regular file. Users shouldn't have to special-case win32/FileNotFoundError.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29366>
_______________________________________
More information about the Python-bugs-list
mailing list