[issue24204] string.strip() documentation is misleading

R. David Murray report at bugs.python.org
Sat May 16 02:14:36 CEST 2015


R. David Murray added the comment:

Indeed, the sentence that confused you was added because people were continually confused by the fact that doing:

   'foo.boo'.strip('.boo')

would result in 'f' rather than 'foo'.

We would welcome an improvement, but apparently this is very hard to make clear.

Repeating the mississippi example is probably a good idea.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24204>
_______________________________________


More information about the Python-bugs-list mailing list