]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-139001: Fix thread-safety issue in `pathlib.Path` (gh-139066)
authorSam Gross <colesbury@gmail.com>
Fri, 10 Oct 2025 21:20:18 +0000 (17:20 -0400)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 21:20:18 +0000 (17:20 -0400)
commitd9b4eef71e7904fbe3a3786a908e493be7debbff
treea0a292e730123a432f930fd77a64a3b2a3e440ac
parentaa840f500ca901deea29669df68992193a273a62
gh-139001: Fix thread-safety issue in `pathlib.Path` (gh-139066)

Don't cache the joined path in `_raw_path` because the caching isn't thread safe.
Lib/pathlib/__init__.py
Lib/test/test_pathlib/test_join.py
Misc/NEWS.d/next/Library/2025-09-17-12-07-21.gh-issue-139001.O6tseN.rst [new file with mode: 0644]