Message348475
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. |
|
Date |
User |
Action |
Args |
2019-07-26 07:23:57 | godaygo | set | recipients:
+ godaygo, docs@python |
2019-07-26 07:23:57 | godaygo | set | messageid: <1564125837.91.0.494799678642.issue37688@roundup.psfhosted.org> |
2019-07-26 07:23:57 | godaygo | link | issue37688 messages |
2019-07-26 07:23:57 | godaygo | create | |
|