Error using string.strip

Eric Hausig codeslave at worldnet.att.net
Sat Jan 8 10:05:11 EST 2000


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