[New-bugs-announce] [issue39090] Document various options for getting the absolute path from pathlib.Path objects

Brett Cannon 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
components: Documentation
messages: 358638
nosy: brett.cannon, docs at python
priority: normal
severity: normal
stage: needs patch
status: open
title: Document various options for getting the absolute path from pathlib.Path objects
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39090>
_______________________________________


More information about the New-bugs-announce mailing list