-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Add structured version info for tkinter #157514
Copy link
Copy link
Closed
Labels
3.16new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-tkintertype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
Metadata
Metadata
Assignees
Labels
3.16new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-tkintertype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
The version of the Tcl and Tk libraries used for building
_tkinteris only available as_tkinter.TCL_VERSION/TK_VERSION(strings with only major and minor, like'8.6') andtkinter.TclVersion/TkVersion(the same as floats). The full patch level is not exposed, although the module uses it (TCL_PATCH_LEVEL), and there is no structured form. The runtime version is available asMisc.info_patchlevel(), which needs a Tcl interpreter.Add
_tkinter.TCL_PATCH_LEVELand_tkinter.TK_PATCH_LEVELfor the full build-time version strings, andtkinter.TCL_VERSION_INFOandtkinter.TK_VERSION_INFO, named tuples of the same type as returned byinfo_patchlevel(), with fields major, minor, micro, releaselevel and serial.Linked PRs