[issue26738] listname.strip() does not work right if the name ends with an 'o'

2016-04-11 Thread SilentGhost

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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26738] listname.strip() does not work right if the name ends with an 'o'

2016-04-11 Thread dileep k

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26738] listname.strip does not work right if the name ends with an 'o'

2016-04-11 Thread dileep k

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'

>>> 'video.log'.strip('.log')
'vide'

>>> 

The output should have been 'video' instead of 'vide' !

--
components: Library (Lib)
messages: 263203
nosy: dileep k
priority: normal
severity: normal
status: open
title: listname.strip does not work right if the name ends with an 'o'
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com