Uh oh!
There was an error while loading. Please reload this page.
gh-94909: fix joining of absolute and relative Windows paths in pathlib - #95450
Conversation
9c3730d to
643d20eComparebarneygale
commented
Aug 3, 2022
Hey @serhiy-storchaka, would you be willing to review? You fixed the same issue in |
Uh oh!
There was an error while loading. Please reload this page.
brettcannon
commented
Aug 5, 2022
@barneygale if @serhiy-storchaka doesn't review in a week I will go ahead and merge; feel free to ping me to do it if I forget (I'm also stalling because 3.11.0.rc1 is being cut today and I don't want to have to remember to merge into 3.11 once the branch opens again and then forget). 😅 |
Co-authored-by: Brett Cannon <brett@python.org>
serhiy-storchaka
commented
Aug 6, 2022
Wait a moment. This change goes against the initial approach. It can be slower and inconsistent with other pathlib code (the definition of "drive" was different in pathlib and os.path, and can still be different). |
barneygale
commented
Aug 6, 2022
Could you give an example where its inconsistent with other parts of pathlib? It might be slower (I haven't checked) but I don't think pathlib, as a high level path library, should care about beating the performance of |
barneygale
commented
Aug 8, 2022
We could de-risk this by skipping backporting. It's a niche bug, and I only need it solved in |
brettcannon
commented
Aug 12, 2022
To keep things simple I only did this to |
Have pathlib use
os.path.join()to join arguments to thePurePathinitialiser, which fixes a minor bug when handling relative paths with drives.Previously:
Now:
Automerge-Triggered-By: GH:brettcannon