[issue24898] Documentation for str.find() is confusing

2015-08-20 Thread Ted Lemon
Ted Lemon added the comment: Hm, okay, that explains it. I was previously mystified. How about this as a refinement on your proposal, though: Return the lowest index in the string where substring sub is found within the string. Optional arguments start and end restrict the search

[issue24898] Documentation for str.find() is confusing

2015-08-19 Thread Ted Lemon
New submission from Ted Lemon: The documentation for str.find() on python.org, for all current versions, says: Return the lowest index in the string where substring sub is found, such that sub is contained in the slice s[start:end]. Optional arguments start and end are interpreted as in slice