MCPcopy Index your code
hub / github.com/python/cpython / _findall

Function _findall

Lib/_strptime.py:33–43  ·  view source on GitHub ↗
(haystack, needle)

Source from the content-addressed store, hash-verified

31 return locale.getlocale(locale.LC_TIME)
32
33def _findall(haystack, needle):
34 # Find all positions of needle in haystack.
35 if not needle:
36 return
37 i = 0
38 while True:
39 i = haystack.find(needle, i)
40 if i < 0:
41 break
42 yield i
43 i += len(needle)
44
45def _fixmonths(months):
46 yield from months

Callers 2

__find_month_formatMethod · 0.85
__find_weekday_formatMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…