[issue26447] rstrip() is pilfering my 'p'

2016-02-26 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue26447] rstrip() is pilfering my 'p'

2016-02-26 Thread Ethan Furman
Ethan Furman added the comment: https://docs.python.org/3/library/stdtypes.html#str.strip - [...] The chars argument is not a prefix or suffix; rather, all combinations of its values are stripped: -- nosy: +ethan.furman resolution:

[issue26447] rstrip() is pilfering my 'p'

2016-02-26 Thread Jerod “j3rd” Gawne
New submission from Jerod “j3rd” Gawne: Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32 In[4]: str = 'aaap.py' In[5]: print(str.rstrip('.py')) aaa In[6]: str = 'aaap.pdf' In[7]: print(str.rstrip('.pdf')) aaa In[8]: str = 'aaab