[issue22774] Weird S.rstrip() result
Szieberth Ádám
report at bugs.python.org
Fri Oct 31 15:25:09 CET 2014
New submission from Szieberth Ádám:
I just faced the following bug (v3.4.2):
>>> t1 = '#5 amarg (Concession)'
>>> t2 = '#6 ironman (Concession)'
>>> s = ' (Concession)'
>>> t1.rstrip(s)
'#5 amarg'
>>> t2.rstrip(s)
'#6 ironma'
>>> t1[:-len(s)]
'#5 amarg'
>>> t2[:-len(s)]
'#6 ironman'
----------
messages: 230343
nosy: SzieberthAdam
priority: normal
severity: normal
status: open
title: Weird S.rstrip() result
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22774>
_______________________________________
More information about the Python-bugs-list
mailing list