Antoine Pitrou <[email protected]> added the comment:

This is by design.  The "parent" attribute is a *lexical operation*.  If you 
want to walk the actual filesystem, first call resolve().

It's even documented:
https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.parent

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <[email protected]>
<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