FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.14] gh-123193: Document tkinter Variable lifetime (GH-152625) by miss-islington · Pull Request #153099 · python/cpython · GitHub

Repository navigation

[3.14] gh-123193: Document tkinter Variable lifetime (GH-152625) - #153099

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-820b6ca-3.14
Jul 5, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-820b6ca-3.14

Conversation

miss-islington commented Jul 5, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

A Tk variable wrapper unsets its Tcl variable when garbage collected, so a
reference must be kept while a widget uses it. Otherwise Tk recreates the Tcl
variable but never unsets it again, leaking it.
(cherry picked from commit 820b6ca)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

A Tk variable wrapper unsets its Tcl variable when garbage collected, so a
reference must be kept while a widget uses it.  Otherwise Tk recreates the Tcl
variable but never unsets it again, leaking it.
(cherry picked from commit 820b6ca)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jul 5, 2026
github-project-automation Bot moved this to Todo in Docs PRs Jul 5, 2026
serhiy-storchaka enabled auto-merge (squash) July 5, 2026 11:08
serhiy-storchaka merged commit c804789 into python:3.14 Jul 5, 2026
35 of 36 checks passed
github-project-automation Bot moved this from Todo to Done in Docs PRs Jul 5, 2026
miss-islington deleted the backport-820b6ca-3.14 branch July 5, 2026 11:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL