Message88000
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 ". |
|
Date |
User |
Action |
Args |
2009-05-17 19:12:51 | ezio.melotti | set | recipients:
+ ezio.melotti, sholvar |
2009-05-17 19:12:51 | ezio.melotti | set | messageid: <1242587571.24.0.537131989985.issue6049@psf.upfronthosting.co.za> |
2009-05-17 19:12:50 | ezio.melotti | link | issue6049 messages |
2009-05-17 19:12:49 | ezio.melotti | create | |
|