eryksun added the comment:

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.

----------
nosy: +eryksun
versions: +Python 3.4 -Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25012>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to