SilentGhost added the comment:
Documentation [0] has a very clear explanation of how str.strip works.
[0] https://docs.python.org/2/library/stdtypes.html#str.strip
--
nosy: +SilentGhost
resolution: -> not a bug
stage: -> resolved
status: open -> closed
Changes by dileep k :
--
title: listname.strip does not work right if the name ends with an 'o' ->
listname.strip() does not work right if the name ends with an 'o'
___
Python tracker
New submission from dileep k:
12:54:38 | ~ | #1 $ python -V
Python 2.7.6
12:54:41 | ~ | #2 $ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 'media.log'.strip('.log')
'media'
>>>