summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-10-13 17:46:10 (GMT)
committerGitHub <noreply@github.com>2024-10-13 17:46:10 (GMT)
commitcb8e5995d89d9b90e83cf43310ec50e177484e70 (patch)
tree0a986d234ad90462a8a239431606a69511bc312b /Misc/NEWS.d
parentc6d7b644c2425b397cfb641f336bea70eb8a329a (diff)
downloadcpython-cb8e5995d89d9b90e83cf43310ec50e177484e70.zip
cpython-cb8e5995d89d9b90e83cf43310ec50e177484e70.tar.gz
cpython-cb8e5995d89d9b90e83cf43310ec50e177484e70.tar.bz2
GH-125069: Fix inconsistent joining in `WindowsPath(PosixPath(...))` (#125156)
`PurePath.__init__()` incorrectly uses the `_raw_paths` of a given `PurePath` object with a different flavour, even though the procedure to join path segments can differ between flavours. This change makes the `_raw_paths`-enabled deferred joining apply _only_ when the path flavours match. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2024-10-08-21-17-16.gh-issue-125069.0RP0Mx.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-10-08-21-17-16.gh-issue-125069.0RP0Mx.rst b/Misc/NEWS.d/next/Library/2024-10-08-21-17-16.gh-issue-125069.0RP0Mx.rst
new file mode 100644
index 0000000..9f1fd87
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-10-08-21-17-16.gh-issue-125069.0RP0Mx.rst
@@ -0,0 +1,4 @@
+Fix an issue where providing a :class:`pathlib.PurePath` object as an
+initializer argument to a second :class:`~pathlib.PurePath` object with a
+different :attr:`~pathlib.PurePath.parser` resulted in arguments to the
+former object's initializer being joined by the latter object's parser.