mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
![]() 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. |
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
colorchooser.py | ||
commondialog.py | ||
constants.py | ||
dialog.py | ||
dnd.py | ||
filedialog.py | ||
font.py | ||
messagebox.py | ||
scrolledtext.py | ||
simpledialog.py | ||
ttk.py |