[go: nahoru, domu]

Skip to content
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

Add method for getting the exact version of the Tcl library as a named tuple #91827

Closed
serhiy-storchaka opened this issue Apr 22, 2022 · 0 comments · Fixed by #91829
Closed
Labels
topic-tkinter type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

Global variables TkVersion and TclVersion contain the version as a float, e.g. 8.6. There are several issues with this:

  1. It is a float. Therefore it cannot work with minor version larger than 9.
  2. It does not contain important information about serial (bugfix) number and release level (alpha/beta/final). New features were added in Tcl/Tk with changing the third version number. The bugfix number can also affect workaround for bugs.
  3. It gives the version of the Tcl headers with which tkinter was built. But if Tcl versions are binary compatible, the real dynamic version can be different.

More detailed info can be retrieved by Tcl command info patchlevel. But the interface of calling raw Tcl commands is not official, and the result is a string, which is hard to compare as version.

I propose to add new method info_patchlevel() which returns the exact version of the Tcl library as a named tuple similar to sys.version_info.

The question is whether we need a global variable representing the static version as a named tuple (it is known at compile time) and what should be its name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-tkinter type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant