This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iciocirlan
Recipients brett.cannon, iciocirlan, pitrou, serhiy.storchaka, veky, xtreak
Date 2019-12-02.18:03:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1575309802.19.0.609554521213.issue38924@roundup.psfhosted.org>
In-reply-to
Content
Brett and Serhiy, you do realise there are no symlinks to resolve on PurePaths, right?


> os.path.normpath() is broken by design.

Why don't you deprecate it then? Sounds like the reasonable thing to do, no? So many innocent souls endangered by this evil function...

It's broken by design if you use it to shoot yourself in the foot. If you want however to normalize an abstract path, an absolutely reasonable thing to do, it does the right and very useful thing. Because, well, the filesystem isn't the only thing that has paths and other things don't have symlinks. Also, this lib is called pathlib, not fspathlib, *and* someone had the foresight of separating filesystem paths from abstract paths. Quite a strange series of coincidences, no?

Let me quote the initial comment for this issue, which apparently noone read:

> On `PurePath` its usefulness is obvious, but it's debatable for `Path`, as it would yield different results from `.resolve()` in case of symlinks (which resolves them before normalizing).
History
Date User Action Args
2019-12-02 18:03:22iciocirlansetrecipients: + iciocirlan, brett.cannon, pitrou, serhiy.storchaka, veky, xtreak
2019-12-02 18:03:22iciocirlansetmessageid: <1575309802.19.0.609554521213.issue38924@roundup.psfhosted.org>
2019-12-02 18:03:22iciocirlanlinkissue38924 messages
2019-12-02 18:03:21iciocirlancreate