[docs] [issue37688] The results from os.path.isdir(...) an Path(...).is_dir() are not equivalent for empty path strings.
Kirill Balunov
report at bugs.python.org
Fri Jul 26 04:07:52 EDT 2019
Kirill Balunov <kirill.balunov at gmail.com> added the comment:
I understand the reasons, I only say that it does not correspond to my perception of their equivalence, because:
os.path.isdir('') != os.path.isdir('.')
while:
Path('').is_dir() == Path('.').is_dir()
and I can confirm that some libraries rely on os.path.isdir('') -> False behavior.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37688>
_______________________________________
More information about the docs
mailing list