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 eryksun
Recipients eryksun, mu_mind, pitrou, serhiy.storchaka
Date 2015-09-06.05:57:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441519025.28.0.886164858542.issue25012@psf.upfronthosting.co.za>
In-reply-to
Content
There's a public method that's almost what you want:

    >>> print(pathlib.Path.absolute.__doc__)
    Return an absolute version of this path.  This function works
            even if the path doesn't point to anything.

            No normalization is done, i.e. all '.' and '..' will be kept along.
            Use resolve() to get the canonical path to a file.

However, it appears to be only accidentally public. It isn't tested; it isn't mentioned in the docs; and it doesn't do the [expected] path normalization. Currently it's used as a default in resolve() if self._flavour.resolve(self) returns None.
History
Date User Action Args
2015-09-06 05:57:05eryksunsetrecipients: + eryksun, pitrou, mu_mind, serhiy.storchaka
2015-09-06 05:57:05eryksunsetmessageid: <1441519025.28.0.886164858542.issue25012@psf.upfronthosting.co.za>
2015-09-06 05:57:05eryksunlinkissue25012 messages
2015-09-06 05:57:05eryksuncreate