Ezio Melotti <ezio.melo...@gmail.com> added the comment: Yes, it is expected. When you call .strip() without args it strips the whitespaces, when you call with an arg it strips only what you specified. In this example: >>> s.strip('"') ' "Peter' the left " is not removed because there's a space in between, in this example: >>> s.strip().strip('"') 'Peter' you first remove the space and then the two ".
---------- nosy: +ezio.melotti _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6049> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com