[New-bugs-announce] [issue6346] Rstrip Incorrectly Strips Some Strings

Matt Kubilus report at bugs.python.org
Fri Jun 26 20:58:20 CEST 2009


New submission from Matt Kubilus <kubilus1 at yahoo.com>:

Rstrip has unexpected behavior with some strings.  Example:

-----

>>> "proxa.py".rstrip(".py")
'proxa'
>>> "proxy.py".rstrip(".py")
'prox'

-----

Tested with Python 2.6.1

----------
components: Library (Lib)
messages: 89736
nosy: mkubilus
severity: normal
status: open
title: Rstrip Incorrectly Strips Some Strings
type: behavior
versions: Python 2.6

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


More information about the New-bugs-announce mailing list