Like `rfind`, but raises :exc:`ValueError` when the substring `sub` is not found. See Also -------- char.rindex
(self, sub, start=0, end=None)
| 1024 | return rfind(self, sub, start, end) |
| 1025 | |
| 1026 | def rindex(self, sub, start=0, end=None): |
| 1027 | """ |
| 1028 | Like `rfind`, but raises :exc:`ValueError` when the substring `sub` is |
| 1029 | not found. |
| 1030 | |
| 1031 | See Also |
| 1032 | -------- |
| 1033 | char.rindex |
| 1034 | |
| 1035 | """ |
| 1036 | return rindex(self, sub, start, end) |
| 1037 | |
| 1038 | def rjust(self, width, fillchar=' '): |
| 1039 | """ |