[issue6705] '''3, 5'''.strip(r''', ''') does not strip comma, returns '3, 5'
Eric Smith
report at bugs.python.org
Fri Aug 14 23:57:41 CEST 2009
Eric Smith <eric at trueblade.com> added the comment:
Good advice from R. David. In addition, you'll find the help command useful:
>>> help(''.strip)
Help on built-in function strip:
strip(...)
S.strip([chars]) -> string or unicode
Return a copy of the string S with leading and trailing
whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is unicode, S will be converted to unicode before stripping
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6705>
_______________________________________
More information about the Python-bugs-list
mailing list