[New-bugs-announce] [issue37486] pathlib.Path('.').parent is itself rather than parent
adrien.pierre.horgnies@gmail.com
report at bugs.python.org
Tue Jul 2 10:35:48 EDT 2019
New submission from adrien.pierre.horgnies at gmail.com <adrien.pierre.horgnies at gmail.com>:
Tested with CPython 3.7.3
```
from pathlib import Path
p = Path('.')
assert p == p.parent # should fail but it does not
```
I expect Path('.').parent to be Path('..')
I searched issues and did not find any similar issue but maybe I didn't search well enough because I would be surprised that I'd be the first one to be bugged by this issue.
I didn't test newer version of Python as I couldn't find a package or wasn't comfortable enough to build it myself.
----------
components: Library (Lib)
messages: 347143
nosy: adrien.pierre.horgnies at gmail.com
priority: normal
severity: normal
status: open
title: pathlib.Path('.').parent is itself rather than parent
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37486>
_______________________________________
More information about the New-bugs-announce
mailing list