gh-103194: Fix Tkinter’s Tcl value type handling for Tcl 8.7/9.0#103846
gh-103194: Fix Tkinter’s Tcl value type handling for Tcl 8.7/9.0#103846serhiy-storchaka merged 21 commits intopython:mainfrom
Conversation
Continue using Tcl_GetObjType() to retrieve obsolete "int" type on 8.7 for platforms with 32-bit long. 9.0 only has 64-bit "int"; no unregistered "wideInt" type to retrieve.
|
I meant to add a test to exercise the boolean value case in |
Never mind, test.test_tcl.TclTest.test_booleans already has what I was looking for. |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
LGTM.
Thank you for your contribution. All these changes look correct.
|
Thanks @chrstphrchvz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
pythonGH-103846) Some of standard Tcl types were renamed, removed, or no longer registered in Tcl 8.7/9.0. This change fixes automatic conversion of Tcl values to Python values to avoid returning a Tcl_Obj where the primary Python types (int, bool, str, bytes) were returned in older Tcl. (cherry picked from commit 94e9585) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
|
Sorry, @chrstphrchvz and @serhiy-storchaka, I could not cleanly backport this to |
|
GH-119830 is a backport of this pull request to the 3.13 branch. |
… 8.7/9.0 (pythonGH-103846) Some of standard Tcl types were renamed, removed, or no longer registered in Tcl 8.7/9.0. This change fixes automatic conversion of Tcl values to Python values to avoid returning a Tcl_Obj where the primary Python types (int, bool, str, bytes) were returned in older Tcl. (cherry picked from commit 94e9585) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
|
GH-119831 is a backport of this pull request to the 3.12 branch. |
….0 (GH-103846) (GH-119831) Some of standard Tcl types were renamed, removed, or no longer registered in Tcl 8.7/9.0. This change fixes automatic conversion of Tcl values to Python values to avoid returning a Tcl_Obj where the primary Python types (int, bool, str, bytes) were returned in older Tcl. (cherry picked from commit 94e9585) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
….0 (GH-103846) (GH-119830) Some of standard Tcl types were renamed, removed, or no longer registered in Tcl 8.7/9.0. This change fixes automatic conversion of Tcl values to Python values to avoid returning a Tcl_Obj where the primary Python types (int, bool, str, bytes) were returned in older Tcl. (cherry picked from commit 94e9585) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
pythonGH-103846) Some of standard Tcl types were renamed, removed, or no longer registered in Tcl 8.7/9.0. This change fixes automatic conversion of Tcl values to Python values to avoid returning a Tcl_Obj where the primary Python types (int, bool, str, bytes) were returned in older Tcl.
pythonGH-103846) Some of standard Tcl types were renamed, removed, or no longer registered in Tcl 8.7/9.0. This change fixes automatic conversion of Tcl values to Python values to avoid returning a Tcl_Obj where the primary Python types (int, bool, str, bytes) were returned in older Tcl.
Uh oh!
There was an error while loading. Please reload this page.