[issue5318] strip, rstrip & lstrip bug

alexlc report at bugs.python.org
Thu Feb 19 18:42:08 CET 2009


alexlc <alc at niebla.co.uk> added the comment:

Oh, thanks for letting me know and sorry for the trouble.
I should had read the docs more carefully. I have actually been using for a
long while the strip methods as I had described in the bug report. I was so
completely convinced about this that I didn't even thought about checking
again the docs.
I have to fix my code but I am happy nonetheless as I was kind of 'losing my
faith' in python after finding this.

Regards,
Alejandro

2009/2/19 Ezio Melotti <report at bugs.python.org>

>
> Ezio Melotti <ezio.melotti at gmail.com> added the comment:
>
> This is not a bug:
> str.strip([chars])
>  ... The chars argument is not a prefix or suffix; rather, all
> combinations of its values are stripped: ...
>
> http://docs.python.org/library/stdtypes.html#str.strip
>
> ----------
> nosy: +ezio.melotti
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue5318>
> _______________________________________
>

Added file: http://bugs.python.org/file13139/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5318>
_______________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
URL: <http://mail.python.org/pipermail/python-bugs-list/attachments/20090219/71812c05/attachment.txt>


More information about the Python-bugs-list mailing list