Created originally on Bitbucket by peterjc (Peter Cock)
Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.
Use same ValueError as CPython for string index/rindex
Spotted due to a failing doctest.
unicodeobject.py edited online with Bitbucket