[issue29549] Improve docstring for str.index

Ben Hoyt report at bugs.python.org
Fri Feb 17 12:18:24 EST 2017


Ben Hoyt added the comment:

Good call. Additionally, it's weird to me that the docstring for str.find() says "Return -1 on failure." because the string not being found is not a "failure". Like the docs (https://docs.python.org/3.5/library/stdtypes.html#str.find) say, the str.find() docstring should say "Return -1 if sub is not found."

----------
nosy: +benhoyt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29549>
_______________________________________


More information about the Python-bugs-list mailing list