Author martin.panter
Recipients docs@python, kgashok, martin.panter, serhiy.storchaka
Date 2017-09-18.09:11:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505725886.29.0.216986411056.issue31504@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-09-18 09:11:26martin.pantersetrecipients: + martin.panter, docs@python, serhiy.storchaka, kgashok
2017-09-18 09:11:26martin.pantersetmessageid: <1505725886.29.0.216986411056.issue31504@psf.upfronthosting.co.za>
2017-09-18 09:11:26martin.panterlinkissue31504 messages
2017-09-18 09:11:26martin.pantercreate