What's wrong with me/Python ?

Remco Gerlich scarblac at pino.selwerd.nl
Tue Mar 13 09:21:35 EST 2001


Alexander Stirzel wrote in comp.lang.python:
> Hi!
> 
> I just wrote a small script for killing some hanging netscape processes,
> the source is listed below.
> Now if I run this script I get this error message:
> 
> 8<----------- error message -----------------------------
> Traceback (most recent call last):
>   File "/usr/sbin/netscape-killer.py", line 11, in ?
>     splitted = string.split(line)
> NameError: There is no variable named 'string'
> 8<----------- error message -----------------------------

You forgot to import string. Have a nice day.

-- 
Remco Gerlich



More information about the Python-list mailing list