Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Labels
@serhiy-storchaka

Description

@serhiy-storchaka

Global variablesTkVersion andTclVersion 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 whichtkinter was built. But if Tcl versions are binary compatible, the real dynamic version can be different.

More detailed info can be retrieved by Tcl commandinfo 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 methodinfo_patchlevel() which returns the exact version of the Tcl library as a named tuple similar tosys.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp