Re: Socket Error

2005-04-14 Thread kingofearth . com
Thanks everybody, it works now. I thought I needed to do something like that but it didn't show it in the tutorial so I decided to ask here. -- http://mail.python.org/mailman/listinfo/python-list

Socket Error

2005-04-14 Thread kingofearth . com
When I try to open a socket with python i get the following error: Traceback (most recent call last): File "./mailer", line 3, in ? sock = socket.socket(socket.PF_INET, socket.SOCK_STREAM) NameError: name 'socket' is not defined the code is: #!/usr/bin/python sock = socket.socket(socket.P