Error with string.strip

Stephen Boulet stepheb at comm.mot.com
Fri Apr 20 11:39:32 EDT 2001


Can someone tell me why this doesn't work? Thanks.

>>> import string
>>> string.strip("all's well as ends well     ")
"all's well as ends well"
>>> string.strip(" 15157 ?         0:01 ttsession\012")
  File "<stdin>", line 1
    string.strip(' 15157 ?         0:01 ttsession\012')
                                                       ^
SyntaxError: invalid syntax







More information about the Python-list mailing list