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 <rep...@bugs.python.org> <http://bugs.python.org/issue22774> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com