Message87999
Hey guys,
is the following behaviour expected? I don't really think so...
$ python
Python 3.0.1 (r301:69597, Feb 14 2009, 19:03:52)
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
>>>
>>> s = ' "Peter"'
>>> s
' "Peter"'
>>> s.strip()
'"Peter"'
>>> s.strip('"')
' "Peter'
>>> s.strip('\"')
' "Peter'
>>> s.strip('\"\"')
' "Peter'
>>>
>>>
>>>
>>> s.strip()
'"Peter"'
>>> s.strip().strip('"')
'Peter'
>>> s.strip('"').strip()
'"Peter' |
|
Date |
User |
Action |
Args |
2009-05-17 18:48:56 | sholvar | set | recipients:
+ sholvar |
2009-05-17 18:48:56 | sholvar | set | messageid: <1242586136.29.0.143891828835.issue6049@psf.upfronthosting.co.za> |
2009-05-17 18:48:54 | sholvar | link | issue6049 messages |
2009-05-17 18:48:53 | sholvar | create | |
|