[issue24445] rstrip strips what it doesn't have to

Patrick Maupin report at bugs.python.org
Sat Jun 13 15:47:55 CEST 2015


Patrick Maupin added the comment:

Example

>>> text = 'test1/1.jp2'
>>> text.rstrip('.2jp')
'test1/1'

----------

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


More information about the Python-bugs-list mailing list