Skip to content

gh-158234: Fixed tracemalloc._compare_grouped_stas mutating old group… - #158371

Closed
Joekrry wants to merge 1 commit into
python:mainfrom
Joekrry:gh-158234-tracemalloc-fix
Closed

Joekrry wants to merge 1 commit into
python:mainfrom
Joekrry:gh-158234-tracemalloc-fix

Conversation

@Joekrry

@Joekrry Joekrry commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #158234

_compare_grouped_stats called old_group.pop() in a loop, modifying the caller's dict in place.

… group. _compare_grouped_stats called old_group.pop() in a loop which modified the callers dict in place.
@ZeroIntensity

Copy link
Copy Markdown
Member

This issue already has an open PR with the same fix (#158233), so I have to close this in favor of that one. You're free to help review that one, though :)

@Joekrry
Joekrry deleted the gh-158234-tracemalloc-fix branch September 28, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tracemalloc: _compare_grouped_stats mutates old_group, and a typo in _group_by

2 participants