Add structured version info for tkinter
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Xem xét các API _tkinter.TCL_VERSION/TK_VERSION và tkinter.TclVersion/TkVersion hiện có, sau đó so sánh tkinter.Misc.info_patchlevel() về hình dạng của tuple. Hoàn tất khi phơi bày hai hằng số cấp bản vá và hai named tuple có các trường major, minor, micro, releaselevel và serial; gh-157516 đã được liên kết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- desktop
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100