MCPcopy Create free account
hub / github.com/python/cpython / search

Method search

Lib/idlelib/idle_test/test_searchengine.py:291–294  ·  view source on GitHub ↗
(pat, line, col, wrap, ok=0)

Source from the content-addressed store, hash-verified

289
290 def make_search(self, func):
291 def search(pat, line, col, wrap, ok=0):
292 res = func(self.text, pat, line, col, wrap, ok)
293 # res is (line, matchobject) or None
294 return (res[0], res[1].span()) if res else res
295 return search
296
297 def test_search_forward(self):

Callers 7

recallMethod · 0.45
file_line_helperFunction · 0.45
grep_itMethod · 0.45
search_forwardMethod · 0.45
search_reverseFunction · 0.45
test_progMethod · 0.45
test_tcl_indexesMethod · 0.45

Calls 1

funcFunction · 0.50

Tested by

no test coverage detected