summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-10-24 09:59:19 (GMT)
committerGitHub <noreply@github.com>2023-10-24 09:59:19 (GMT)
commitb8c20f90492f9ef2c4600e2739f8e871a31b93c3 (patch)
tree7e0fb6e73a73903d62a347039806fb9f1eb42919 /Misc/NEWS.d
parent81eba7645082a192c027e739b8eb99a94b4c0eec (diff)
downloadcpython-b8c20f90492f9ef2c4600e2739f8e871a31b93c3.zip
cpython-b8c20f90492f9ef2c4600e2739f8e871a31b93c3.tar.gz
cpython-b8c20f90492f9ef2c4600e2739f8e871a31b93c3.tar.bz2
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.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2022-10-14-21-11-10.gh-issue-97928.Pdxh1G.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-10-14-21-11-10.gh-issue-97928.Pdxh1G.rst b/Misc/NEWS.d/next/Library/2022-10-14-21-11-10.gh-issue-97928.Pdxh1G.rst
new file mode 100644
index 0000000..4acf396
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-10-14-21-11-10.gh-issue-97928.Pdxh1G.rst
@@ -0,0 +1,6 @@
+Change the behavior of :meth:`tkinter.Text.count`. 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``.
+