AttributeError

Andy Worthington andy at rockcity.com
Mon Mar 20 16:23:03 EST 2000


I am getting the following error:

Traceback (innermost last):
  File "/u/web/rockc1/cgi-local/rockcityeurope1.py", line 46, in ?
    reason1=string.replace(reason1,"a","b")
AttributeError: replace

The replace seems to work like this on another machine from the command line
but this doesn't work on the webserver I am trying to run it from.  Is this
because of an older version of python?  If so, is there another way that I
can replace all occurences of a character with another in a string (replace
\n with a space).

Thanks
Andy Worthington





More information about the Python-list mailing list