]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-139001: Fix thread-safety issue in `pathlib.Path` (gh-139066) (gh-139926)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 10 Oct 2025 21:47:47 +0000 (23:47 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 21:47:47 +0000 (21:47 +0000)
commit2660e98b30f83cdba6b52a89e74dfe7de17c1a85
tree4dba877c177c89d5af9b664bcabf96b71356a144
parent7ea79f6342db5851a9e734130ffec003e7045dea
[3.14] gh-139001: Fix thread-safety issue in `pathlib.Path` (gh-139066) (gh-139926)

Don't cache the joined path in `_raw_path` because the caching isn't thread safe.
(cherry picked from commit d9b4eef71e7904fbe3a3786a908e493be7debbff)

Co-authored-by: Sam Gross <colesbury@gmail.com>
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]