Message357724
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). |
|
Date |
User |
Action |
Args |
2019-12-02 18:03:22 | iciocirlan | set | recipients:
+ iciocirlan, brett.cannon, pitrou, serhiy.storchaka, veky, xtreak |
2019-12-02 18:03:22 | iciocirlan | set | messageid: <1575309802.19.0.609554521213.issue38924@roundup.psfhosted.org> |
2019-12-02 18:03:22 | iciocirlan | link | issue38924 messages |
2019-12-02 18:03:21 | iciocirlan | create | |
|