]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-142763: Fix race in ZoneInfo cache eviction (gh-144978) (#145782)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Mar 2026 19:12:34 +0000 (20:12 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2026 19:12:34 +0000 (19:12 +0000)
commitaf1ad531638cb8ef44efc83321e36a98fc55f7e5
tree2811c12e894bf66487c5731bd4c44f6dfd54bcd6
parent37e9d846ff55c20f5751af039f5151481e5c7e8e
[3.13] gh-142763: Fix race in ZoneInfo cache eviction (gh-144978) (#145782)

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]