KEMBAR78
[3.14] gh-132617: Fix `dict.update()` mutation check (gh-134815) by miss-islington · Pull Request #135581 · python/cpython · GitHub
Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 16, 2025

Use ma_used instead of ma_keys->dk_nentries for modification check
so that we only check if the dictionary is modified, not if new keys are
added to a different dictionary that shared the same keys object.
(cherry picked from commit d8994b0)

Co-authored-by: Sam Gross colesbury@gmail.com

Use `ma_used` instead of `ma_keys->dk_nentries` for modification check
so that we only check if the dictionary is modified, not if new keys are
added to a different dictionary that shared the same keys object.
(cherry picked from commit d8994b0)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@colesbury colesbury enabled auto-merge (squash) June 16, 2025 16:57
@colesbury colesbury merged commit 15f7bd4 into python:3.14 Jun 16, 2025
43 checks passed
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