This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti, sholvar
Date 2009-05-17.19:12:49
SpamBayes Score 0.0009141552
Marked as misclassified No
Message-id <1242587571.24.0.537131989985.issue6049@psf.upfronthosting.co.za>
In-reply-to
Content
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 ".
History
Date User Action Args
2009-05-17 19:12:51ezio.melottisetrecipients: + ezio.melotti, sholvar
2009-05-17 19:12:51ezio.melottisetmessageid: <1242587571.24.0.537131989985.issue6049@psf.upfronthosting.co.za>
2009-05-17 19:12:50ezio.melottilinkissue6049 messages
2009-05-17 19:12:49ezio.melotticreate