MCPcopy Index your code
hub / github.com/RustPython/RustPython / rindex

Method rindex

Lib/collections/__init__.py:1568–1571  ·  view source on GitHub ↗
(self, sub, start=0, end=_sys.maxsize)

Source from the content-addressed store, hash-verified

1566 return self.data.rfind(sub, start, end)
1567
1568 def rindex(self, sub, start=0, end=_sys.maxsize):
1569 if isinstance(sub, UserString):
1570 sub = sub.data
1571 return self.data.rindex(sub, start, end)
1572
1573 def rjust(self, width, *args):
1574 return self.__class__(self.data.rjust(width, *args))

Callers 13

updateposMethod · 0.45
realpathFunction · 0.45
test_str_operationsMethod · 0.45
test_rindexMethod · 0.45
test_none_argumentsMethod · 0.45
test_rindexMethod · 0.45
test_huge_str_32bMethod · 0.45
test_huge_str_64bMethod · 0.45
test_inheritanceMethod · 0.45
__init__Method · 0.45
builtin_str.pyFile · 0.45

Calls 1

isinstanceFunction · 0.85

Tested by 7

test_str_operationsMethod · 0.36
test_rindexMethod · 0.36
test_none_argumentsMethod · 0.36
test_rindexMethod · 0.36
test_huge_str_32bMethod · 0.36
test_huge_str_64bMethod · 0.36
test_inheritanceMethod · 0.36