Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

There were reasons why something like PurePath.normalize() was not added at 
first place. os.path.normpath() is broken by design. It does not work as you 
expect in case when the .. component is preceeded by a symlink. Its behvior can 
lead to bugs and maybe even security issues. We did not want to add something 
so dubious in the pathlib module. Path.resolve() is the correct way.

So I suggest to close this issue.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38924>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to