aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/tkinter/filedialog.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-02-11 12:43:14 +0200
committerGitHub <noreply@github.com>2024-02-11 12:43:14 +0200
commitd2c4baa41ff93cd5695c201d40e20a88458ecc26 (patch)
tree9cd066f17f0aabe268312d469f94447a4063d592 /Lib/tkinter/filedialog.py
parent5d2794a16bc1639e6053300c08a78d60526aadf2 (diff)
downloadcpython-d2c4baa41ff93cd5695c201d40e20a88458ecc26.tar.gz
cpython-d2c4baa41ff93cd5695c201d40e20a88458ecc26.zip
gh-97928: Partially restore the behavior of tkinter.Text.count() by default (GH-115031)
By default, it preserves an inconsistent behavior of older Python versions: packs the count into a 1-tuple if only one or none options are specified (including 'update'), returns None instead of 0. Except that setting wantobjects to 0 no longer affects the result. Add a new parameter return_ints: specifying return_ints=True makes Text.count() always returning the single count as an integer instead of a 1-tuple or None.
Diffstat (limited to 'Lib/tkinter/filedialog.py')
0 files changed, 0 insertions, 0 deletions