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

Reply via email to