python / python/cpython

Add structured version info for tkinter

オープン
#157,514 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

3.16 extension-modules topic-tkinter type-feature
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Feature or enhancement

The version of the Tcl and Tk libraries used for building _tkinter is only available as _tkinter.TCL_VERSION/TK_VERSION (strings with only major and minor, like '8.6') and tkinter.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 as Misc.info_patchlevel(), which needs a Tcl interpreter.

Add _tkinter.TCL_PATCH_LEVEL and _tkinter.TK_PATCH_LEVEL for the full build-time version strings, and tkinter.TCL_VERSION_INFO and tkinter.TK_VERSION_INFO, named tuples of the same type as returned by info_patchlevel(), with fields major, minor, micro, releaselevel and serial.

Linked PRs
  • gh-157516

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

既存の _tkinter.TCL_VERSION/TK_VERSION および tkinter.TclVersion/TkVersion API を確認し、次にタプルの形状について tkinter.Misc.info_patchlevel() と比較します。2 つのパッチレベル定数と、major、minor、micro、releaselevel、serial フィールドを持つ 2 つの名前付きタプルが公開されれば完了です。gh-157516 はすでにリンクされています。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
desktop
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。