[issue38793] pathlib.Path.resolve(strict=False) strips final path components

Steve Dower report at bugs.python.org
Thu Nov 14 11:44:47 EST 2019


Steve Dower <steve.dower at python.org> added the comment:

I'm not sure - I try the same thing (on 3.6, 3.7 and 3.8) and get different results:

>>> import pathlib
>>> p = pathlib.Path(".", "a", "b", "c")
>>> p.resolve(strict=False)
WindowsPath('a/b/c')

Are you sure that it's not successfully resolving a link of some kind?

----------

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


More information about the Python-bugs-list mailing list