Like `find`, but raises `ValueError` when the substring is not found. See also -------- char.index
(self, sub, start=0, end=None)
| 2255 | return find(self, sub, start, end) |
| 2256 | |
| 2257 | def index(self, sub, start=0, end=None): |
| 2258 | """ |
| 2259 | Like `find`, but raises `ValueError` when the substring is not found. |
| 2260 | |
| 2261 | See also |
| 2262 | -------- |
| 2263 | char.index |
| 2264 | |
| 2265 | """ |
| 2266 | return index(self, sub, start, end) |
| 2267 | |
| 2268 | def isalnum(self): |
| 2269 | """ |
no test coverage detected