# Bug report ### Bug description: ```python # current tkinter/__init__.py class Text(...): [...] def search(self, pattern, index, stopindex=None, forwards=None, backwards=None, exact=None, regexp=None, nocase=None, count=None, elide=None): [...] ``` The current tkinter implementation of the `tkinter.Text.search` method misses use of <a href="https://www.tcl-lang.org/man/tcl8.6/TkCmd/text.htm#M147">tcl options</a>: -nolinestop -all -overlap -strictlimits Is there any reason on why it is not inside the CPython implementation? ### CPython versions tested on: 3.13 ### Operating systems tested on: Windows <!-- gh-linked-prs --> ### Linked PRs * gh-130848 * gh-141669 * gh-141670 <!-- /gh-linked-prs -->
Activity
sharktide commentedon Mar 4, 2025
I'll see if I can make a pr
sharktide commentedon Mar 4, 2025
Almost done, I have to write unittests.
sharktide commentedon Mar 4, 2025
is currently avalible at https://github.com/sharktide/cpython/tree/patch-130693
pythongh-130693 Remove wordiness; only title left
sharktide commentedon May 30, 2025
I am currently pinging this issue as I have not seen a review for nearly a month. Could someone please review soon?
PR: gh-130848
serhiy-storchaka commentedon Aug 10, 2025
For
-all, it would be more Pythonic to add a separate methodsearch_all()which returns a list or a tuple.sharktide commentedon Aug 10, 2025
on it
gh-130693: Support more options for search in tkinter.Text (GH-130848)
pythongh-130693: Add more tests for tkinter.Text.search() (pythonGH-1…
[3.14] gh-130693: Add more tests for tkinter.Text.search() (GH-130848) (
[3.14] pythongh-130693: Add more tests for tkinter.Text.search() (pyt…
[3.13] gh-130693: Add more tests for tkinter.Text.search() (GH-130848) (
pythongh-130693: Support more options for search in tkinter.Text (pyt…