-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-103194: Fix Tkinter’s Tcl value type handling for Tcl 8.7/9.0 #103846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
chrstphrchvz
commented
Apr 25, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Tkinter: C API changes are needed for Tcl 8.7 and 9.0 value types #103194
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
….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 <[email protected]>
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.