GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add method for getting the exact version of the Tcl library as a named tuple · Issue #91827 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
#91829
Closed
Add method for getting the exact version of the Tcl library as a named tuple#91827
#91829
Copy link
Labels
topic-tkintertype-featureA feature request or enhancementA feature request or enhancement

Description

@serhiy-storchaka
serhiy-storchaka
opened on Apr 22, 2022
Issue body actions

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.

Reacted by Zachary Ware, E-Paine and Demian Volkov

Activity

  1. serhiy-storchaka
    added
    type-featureA feature request or enhancementA feature request or enhancement
    topic-tkinter
    on Apr 22, 2022
  2. serhiy-storchaka
    added a commit that references this issue on Apr 22, 2022

    pythongh-91827: Add method info_pathlevel() in tkinter

    8f6460f
  3. serhiy-storchaka
    closed this as completedin #91829on May 6, 2022
  4. serhiy-storchaka
    added a commit that references this issue on May 6, 2022

    gh-91827: Add method info_pathlevel() in tkinter (GH-91829)

    15dbe85
  5. python
    deleted a comment from nobuoy on Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-tkintertype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.