A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/073623.html below:

Error with string.strip

Error with string.strip Error with string.stripStephen 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4