socket.gethostbyname() AttributeError

Ralph ralph at penguin.com
Tue Mar 19 08:12:58 EST 2002


Pythoners:

I assumed that for scoket.gethostbyname(host), I was to pass a host of the 
type "theodore.chipmunks.com" and that I would get back an IP address as a 
doted quad.  Obviously I am wrong about the form of the arguement I am to 
pass to the function, because I am getting an AttributeError message.

Can anyone offer some insight?

Thanks

Raplh



More information about the Python-list mailing list