[New-bugs-announce] [issue5416] str.replace does strange things when given a negative count

David Majnemer report at bugs.python.org
Wed Mar 4 11:52:11 CET 2009


New submission from David Majnemer <david.majnemer at gmail.com>:

str.replace("", "", "asdf", -1) returns "asdf", I believe this is not
correct and strictly speaking not up to the documentation posted. I am
of the opinion that it should function like str.replace("", "", "asdf",
0) which returns ""

----------
components: Interpreter Core
messages: 83119
nosy: dmajnemer
severity: normal
status: open
title: str.replace does strange things when given a negative count
versions: Python 2.5

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


More information about the New-bugs-announce mailing list