Like `rfind`, but raises `ValueError` when the substring `sub` is not found. See Also -------- char.rindex
(self, sub, start=0, end=None)
| 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 | """ |