[issue39090] Document various options for getting the absolute path from pathlib.Path objects
Paul Moore
report at bugs.python.org
Mon Feb 10 09:32:10 EST 2020
Paul Moore <p.f.moore at gmail.com> added the comment:
> In short -- I understand that this is a complex issue, but making an absolute path is a pretty common use case, and we've had os.path.abspath() for decades, so there should be one obvious way to do it, and it should be easily discoverable.
+1 on this.
Given that (as far as I can tell from the various discussions) `resolve` works fine as long as the file exists, maybe the key distinction to make is whether you have an existing file or not.
(More subtle questions like UNC path vs drive letter, mentioned on the Discourse thread, are probably things that we can defer to a "more advanced cases" discussion in the docs).
----------
nosy: +paul.moore
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39090>
_______________________________________
More information about the Python-bugs-list
mailing list