MCPcopy Create free account
hub / github.com/numpy/numpy / rindex

Method rindex

numpy/core/defchararray.py:2536–2546  ·  view source on GitHub ↗

Like `rfind`, but raises `ValueError` when the substring `sub` is not found. See Also -------- char.rindex

(self, sub, start=0, end=None)

Source from the content-addressed store, hash-verified

2534 return rfind(self, sub, start, end)
2535
2536 def rindex(self, sub, start=0, end=None):
2537 """
2538 Like `rfind`, but raises `ValueError` when the substring `sub` is
2539 not found.
2540
2541 See Also
2542 --------
2543 char.rindex
2544
2545 """
2546 return rindex(self, sub, start, end)
2547
2548 def rjust(self, width, fillchar=' '):
2549 """

Callers 2

failMethod · 0.80
test_rindexMethod · 0.80

Calls 1

rindexFunction · 0.85

Tested by 2

failMethod · 0.64
test_rindexMethod · 0.64