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 sholvar
Recipients sholvar
Date 2009-05-17.18:48:53
SpamBayes Score 1.1418995e-08
Marked as misclassified No
Message-id <1242586136.29.0.143891828835.issue6049@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2009-05-17 18:48:56sholvarsetrecipients: + sholvar
2009-05-17 18:48:56sholvarsetmessageid: <1242586136.29.0.143891828835.issue6049@psf.upfronthosting.co.za>
2009-05-17 18:48:54sholvarlinkissue6049 messages
2009-05-17 18:48:53sholvarcreate