[New-bugs-announce] [issue31504] Documentation for return value for string.rindex is missing when search string is empty

Ashok Bakthavathsalam report at bugs.python.org
Mon Sep 18 04:04:47 EDT 2017


New submission from Ashok Bakthavathsalam:

"abcde".rindex("") returns 5
"a".rindex("") returns 1 

This is not documented anywhere in the Python documentation.

----------
components: Library (Lib)
messages: 302418
nosy: kgashok
priority: normal
severity: normal
status: open
title: Documentation for return value for string.rindex is missing when search string is empty
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31504>
_______________________________________


More information about the New-bugs-announce mailing list