Like `find`, but raises `ValueError` when the substring is not found. See Also -------- char.index
(self, sub, start=0, end=None)
| 2351 | return find(self, sub, start, end) |
| 2352 | |
| 2353 | def index(self, sub, start=0, end=None): |
| 2354 | """ |
| 2355 | Like `find`, but raises `ValueError` when the substring is not found. |
| 2356 | |
| 2357 | See Also |
| 2358 | -------- |
| 2359 | char.index |
| 2360 | |
| 2361 | """ |
| 2362 | return index(self, sub, start, end) |
| 2363 | |
| 2364 | def isalnum(self): |
| 2365 | """ |