mirror of
https://github.com/python/cpython.git
synced 2026-06-28 03:41:13 +00:00
gh-86726: Fix the documented return type of tkinter info_patchlevel() (GH-151655)
It returns a sys.version_info-like named tuple, not a string. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ad1513a263
commit
3cd02a1c2d
1 changed files with 7 additions and 1 deletions
|
|
@ -2333,7 +2333,13 @@ Base and mixin classes
|
|||
|
||||
.. method:: info_patchlevel()
|
||||
|
||||
Return the Tcl/Tk patch level as a string, for example ``'9.1.0'``.
|
||||
Return the Tcl/Tk patch level as a named tuple with the same five fields
|
||||
as :data:`sys.version_info`: *major*, *minor*, *micro*, *releaselevel*
|
||||
and *serial*.
|
||||
*releaselevel* is ``'alpha'``, ``'beta'`` or ``'final'``.
|
||||
Converting it to a string gives the version in the usual Tcl/Tk notation,
|
||||
for example ``'9.0.3'`` for a final release or ``'9.1b2'`` for a
|
||||
pre-release.
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue