Skip to content

gh-116946: fully implement GC protocol for _tkinter.Tk{app,tt}Object#138331

Merged
picnixz merged 11 commits intopython:mainfrom
picnixz:fix/gc/tkinter-heap-types-116946
Sep 11, 2025
Merged

gh-116946: fully implement GC protocol for _tkinter.Tk{app,tt}Object#138331
picnixz merged 11 commits intopython:mainfrom
picnixz:fix/gc/tkinter-heap-types-116946

Conversation

@picnixz
Copy link
Member

@picnixz picnixz commented Sep 1, 2025

  • tkinter.Tcl_Obj is empty but not immutable so we make it immutable to avoid the needs of GC protocol.
  • _tkinter.tktimertoken and _tkinter.tkapp are not immutable but they are not empty either as they have a strong reference to a callable, so we should still make them support the full GC protocol.

Loading
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.

5 participants