[New-bugs-announce] [issue39090] Document various options for getting the absolute path from pathlib.Path objects
report at bugs.python.org
Wed Dec 18 13:20:50 EST 2019
New submission from Brett Cannon <brett at python.org>:
The question on how best to get an absolute path from a pathlib.Path object keeps coming up (see https://bugs.python.org/issue29688, https://discuss.python.org/t/add-absolute-name-to-pathlib-path/2882/, and https://discuss.python.org/t/pathlib-absolute-vs-resolve/2573 as examples).
As pointed out across those posts, getting the absolute path is surprisingly subtle and varied depending on your needs. As such we should probably add a section somewhere in the pathlib docs explaining the various ways and why you would choose one over the other.
assignee: docs at python
nosy: brett.cannon, docs at python
stage: needs patch
title: Document various options for getting the absolute path from pathlib.Path objects
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce