This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author o1da
Recipients o1da
Date 2015-06-13.13:29:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434202193.55.0.291762155512.issue24445@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> text = 'test1/1.jp2'
>>> text.rstrip('.jp2')
'test1/1'
>>> text = 'test1.jp2'
>>> text.rstrip('.jp2')
'test1'
>>> text = 'test1/2.jp2'
>>> text.rstrip('.jp2')
'test1/'
>>> 

Why the rstrip function stripped '2' from the last example? I think that it is a bug.
History
Date User Action Args
2015-06-13 13:29:53o1dasetrecipients: + o1da
2015-06-13 13:29:53o1dasetmessageid: <1434202193.55.0.291762155512.issue24445@psf.upfronthosting.co.za>
2015-06-13 13:29:53o1dalinkissue24445 messages
2015-06-13 13:29:53o1dacreate