Error using string.strip
Aahz Maruch
aahz at netcom.com
Sat Jan 8 10:18:07 EST 2000
In article <38775227.2CC0D685 at worldnet.att.net>,
Eric Hausig <codeslave at worldnet.att.net> wrote:
>
>I'm very new to Python. (In fact, I'm walking through the tuturial
>right now!)
Congratulations!
>I'm getting the following message:
>
>>>> string.strip('str') + 'ing'
>Traceback (innermost last):
> File "<stdin>", line 1, in ?
>NameError: string
>>>>
Try "import string"; you have to import modules before you can use
them.
--
--- Aahz (@netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
The problem with an ever-changing .sig is that you have to keep changing it.
More information about the Python-list
mailing list