forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.12] pythongh-103194: Fix Tkinter’s Tcl value type handling for Tcl…
… 8.7/9.0 (pythonGH-103846) (pythonGH-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>
- Loading branch information
1 parent
bd0d97c
commit d4680b9
Showing
2 changed files
with
36 additions
and
22 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Library/2023-04-24-05-34-23.gh-issue-103194.GwBwWL.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Prepare Tkinter for C API changes in Tcl 8.7/9.0 to avoid | ||
:class:`_tkinter.Tcl_Obj` being unexpectedly returned | ||
instead of :class:`bool`, :class:`str`, | ||
:class:`bytearray`, or :class:`int`. |
This file contains 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