Socket error problem

Martin v. Loewis martin at
Sun Jun 9 17:03:02 EDT 2002

"David LeBlanc" <whisper at> writes:

> I've put print statements around all this before I first tryed the ml, but
> here they are again:

This is still not the right place.

>         print 'poplib._init__: = %s ' %, 'self.port =
> %s' % self.port

Notice that host and port are not passed directly to socket. Instead,
getaddrinfo is used

>         for res in socket.getaddrinfo(, self.port, 0,
> socket.SOCK_STREAM):
>             af, socktype, proto, canonname, sa = res
>             try:

Please add a line printing res inside of this try statement. Also add
a print statement between the socket call and the connect call, so
that we know which call it is that fails.


More information about the Python-list mailing list