Repository navigation
gh-161388: [tkinter] Fix crash on raising __str__ method passed to setvar - #161397
Conversation
…ed to `setvar`
|
The fix LGTM, I have comments for tests and NEWS. |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
If tk.setvar("name1", value) was set a Tcl variable, tk.getvar("name1", "name2") will fail for other reason. It is safer to use different names in all four cases, and check read immediately after an attempted write.
|
Thank you for the reviews! 👍 |
|
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
Sorry, @sobolevn, I could not cleanly backport this to Please backport manually with cherry_picker, see the devguide for more information. |
|
Sorry, @sobolevn, I could not cleanly backport this to Please backport manually with cherry_picker, see the devguide for more information. |
|
GH-161550 is a backport of this pull request to the 3.15 branch. |
|
GH-161551 is a backport of this pull request to the 3.14 branch. |
setvar()passesAsObj's NULL to Tcl when the value's__str__raises #161388