]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-142763: Fix race in ZoneInfo cache eviction (gh-144978) (#145781)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Mar 2026 19:39:40 +0000 (20:39 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2026 19:39:40 +0000 (19:39 +0000)
commit79051f8a07c69b620bd6087134104c92d8beb696
tree5f1ca9858a0cc697c5852d0ad5d9a363a09f5431
parente7bc1526ca3268f1835abd85a1064dcb7727d736
[3.14] gh-142763: Fix race in ZoneInfo cache eviction (gh-144978) (#145781)

The cache may be cleared between the evaluation of the if statement and the
call to popitem.

(cherry picked from commit 665c1db94f46f8e1a18a8c2f89adb3bc72cb83dc)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Lib/zoneinfo/_zoneinfo.py
Misc/NEWS.d/next/Library/2025-12-18-00-00-00.gh-issue-142763.AJpZPVG5.rst [new file with mode: 0644]