[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/is

[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