strip question

eight02645999 at yahoo.com eight02645999 at yahoo.com
Sat Jan 27 06:33:47 CET 2007


hi
can someone explain strip() for these :
[code]
>>> x='www.example.com'
>>> x.strip('cmowz.')
'example'
[/code]

when i did this:
[code]
>>> x = 'abcd,words.words'
>>> x.strip(',.')
'abcd,words.words'
[/code]

it does not strip off "," and "." .Why is this so?
thanks




More information about the Python-list mailing list