[New-bugs-announce] [issue38793] pathlib.Path.resolve(strict=False) strips final path components
lutecki
report at bugs.python.org
Thu Nov 14 05:16:42 EST 2019
New submission from lutecki <lukasz.matecki at gmail.com>:
When a directory doesn't exist, the resolve() method trims everything except the first component (a doesn't exist here):
import pathlib
p = pathlib.Path(".", "a", "b", "c")
p
WindowsPath('a/b/c')
p.resolve(strict=False)
WindowsPath('C:/Python36/Scripts/a')
I would expect C:/Python36/Scripts/a/b/c
Am I missing something?
----------
components: Windows
messages: 356589
nosy: lutecki, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: pathlib.Path.resolve(strict=False) strips final path components
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38793>
_______________________________________
More information about the New-bugs-announce
mailing list