Skip to content

gh-142782: compare zoneinfo strong cache keys by string contents - #161463

Merged
StanFromIreland merged 3 commits into
python:mainfrom
tonghuaroot:zoneinfo-strong-cache-unicode-equal
Nov 6, 2026
Merged

StanFromIreland merged 3 commits into
python:mainfrom
tonghuaroot:zoneinfo-strong-cache-unicode-equal

Conversation

@tonghuaroot

@tonghuaroot tonghuaroot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

compare zoneinfo strong cache keys by their unicode contents. this avoids calling custom equality methods that can mutate the cache during lookup.

the original reproducer and the full zoneinfo test suite pass with this change.

@StanFromIreland
StanFromIreland enabled auto-merge (squash) November 6, 2026 16:25
@StanFromIreland StanFromIreland added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Nov 6, 2026
@StanFromIreland

Copy link
Copy Markdown
Member

Backporting, as discussed in #159441.

@StanFromIreland
StanFromIreland merged commit 0e885d9 into python:main Nov 6, 2026
65 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @tonghuaroot for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Nov 6, 2026

Copy link
Copy Markdown

GH-161505 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 6, 2026
@bedevere-app

bedevere-app Bot commented Nov 6, 2026

Copy link
Copy Markdown

GH-161506 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 6, 2026
StanFromIreland added a commit that referenced this pull request Nov 6, 2026
…ents (GH-161463) (#161506)

(cherry picked from commit 0e885d9)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
StanFromIreland added a commit that referenced this pull request Nov 6, 2026
…ents (GH-161463) (#161505)

(cherry picked from commit 0e885d9)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants