[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 17:24:58 EDT 2019
Kirill Balunov <kirill.balunov at gmail.com> added the comment:
I am reading "equivalence" too strictly (like "as a substitute"), because this is part of the documentation :) and I agree that in ordinary speech I would use it rather in the sense of “similar”.
In order to make sure, that everyone agrees only on that this requires only a documentation change? Because as for me, I think that it will better for `os.path.isdir` to raise `ValueError` or `DeprecationWarning` - `False` on empty string is not well defined behavior. But I'm fine to be alone with the last one.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37688>
_______________________________________
More information about the docs
mailing list