[issue37486] pathlib.Path('.').parent is itself rather than parent

2019-07-02 Thread adrien.pierre.horgn...@gmail.com


New submission from adrien.pierre.horgn...@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.horgn...@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 
<https://bugs.python.org/issue37486>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37486] pathlib.Path('.').parent is itself rather than parent

2019-07-02 Thread adrien.pierre.horgn...@gmail.com


adrien.pierre.horgn...@gmail.com  added the 
comment:

T-T Sorry. It didn't feel intuitive but I should have read the doc...

--

___
Python tracker 
<https://bugs.python.org/issue37486>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com