Message302431
The behaviour for searching for empty strings in Python is inconsistent; see Issue 24243. IMO the behaviour for the (r)find/index methods is sensible, but it is worth making the documentation explicit.
The returned indexes you have given (5, 1, and 0) are valid for slicing. |
|
Date |
User |
Action |
Args |
2017-09-18 09:11:26 | martin.panter | set | recipients:
+ martin.panter, docs@python, serhiy.storchaka, kgashok |
2017-09-18 09:11:26 | martin.panter | set | messageid: <1505725886.29.0.216986411056.issue31504@psf.upfronthosting.co.za> |
2017-09-18 09:11:26 | martin.panter | link | issue31504 messages |
2017-09-18 09:11:26 | martin.panter | create | |
|