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

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury 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)

…134815)

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 17:08
@colesbury colesbury merged commit f33a5e8 into python:3.13 Jun 16, 2025
38 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.

1 participant