]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-97928: Change the behavior of tkinter.Text.count() (GH-98484)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 24 Oct 2023 09:59:19 +0000 (12:59 +0300)
committerGitHub <noreply@github.com>
Tue, 24 Oct 2023 09:59:19 +0000 (12:59 +0300)
commitb8c20f90492f9ef2c4600e2739f8e871a31b93c3
tree7e0fb6e73a73903d62a347039806fb9f1eb42919
parent81eba7645082a192c027e739b8eb99a94b4c0eec
gh-97928: Change the behavior of tkinter.Text.count() (GH-98484)

It now always returns an integer if one or less counting options are specified.
Previously it could return a single count as a 1-tuple, an integer (only if
option "update" was specified) or None if no items found.
The result is now the same if wantobjects is set to 0.
Doc/whatsnew/3.13.rst
Lib/idlelib/sidebar.py
Lib/test/test_tkinter/test_text.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2022-10-14-21-11-10.gh-issue-97928.Pdxh1G.rst [new file with mode: 0644]