Error using string.strip

Eric Hausig codeslave at worldnet.att.net
Sat Jan 8 10:46:53 EST 2000


Thanks to all for the response!  import string did it!

I'm going through the online tutorial at www.python.org.  Unfortunately,
they didn't make mention of import prior to the String section of the
tutorial.  Hehe....this is a really neat language so far.

Blushing a little,

Eric

Eric Hausig wrote:

> Hello there,
>
> I'm very new to Python.  (In fact, I'm walking through the tuturial
> right now!)
>
> I'm getting the following message:
>
> >>> string.strip('str') + 'ing'
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> NameError: string
> >>>
>
> I'm running Redhat 6.1 and have installed all of the dev rpms off the
> CD.   Is there some library I have to manually include?  If someone
> could give me a little insight, I would be thankful.  (PS - I'm
> currently a VB/SQL programmer trying to make the switch to Linux.  =)
>
> Sincerely,
>
> Eric Hausig
> aka Codeslave2k




More information about the Python-list mailing list