This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author godaygo
Recipients docs@python, godaygo
Date 2019-07-26.07:23:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564125837.91.0.494799678642.issue37688@roundup.psfhosted.org>
In-reply-to
Content
In the documentation it is said that os.path.isdir(...) an Path(...).is_dir()are equivalent substitutes.
https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module

But they give different result for empty path strings:
>>> import os
>>> from pathlib import Path
>>> dummy = "" 
>>> os.path.isdir(dummy)
 False

Obviously it's not an equivalence, so either this should be noted in the documentation or corrected in the code.
History
Date User Action Args
2019-07-26 07:23:57godaygosetrecipients: + godaygo, docs@python
2019-07-26 07:23:57godaygosetmessageid: <1564125837.91.0.494799678642.issue37688@roundup.psfhosted.org>
2019-07-26 07:23:57godaygolinkissue37688 messages
2019-07-26 07:23:57godaygocreate