Like `find`, but raises :exc:`ValueError` when the substring is not found. See Also -------- char.index
(self, sub, start=0, end=None)
| 840 | return find(self, sub, start, end) |
| 841 | |
| 842 | def index(self, sub, start=0, end=None): |
| 843 | """ |
| 844 | Like `find`, but raises :exc:`ValueError` when the substring is not |
| 845 | found. |
| 846 | |
| 847 | See Also |
| 848 | -------- |
| 849 | char.index |
| 850 | |
| 851 | """ |
| 852 | return index(self, sub, start, end) |
| 853 | |
| 854 | def isalnum(self): |
| 855 | """ |