AF_INET error

Fredrik Lundh effbot at telia.com
Tue Apr 11 11:39:52 EDT 2000


Soundwave <maybe at lucky.com> wrote:
> I want to learne some things about socket programming, so I started the
> socet programming tutorial on www.python.org
>
> but when I copy te code from some sample programm's and run it, it doesn't
> work, it don't recognize the AF_INET thing, is this because I am using
> Windows ??
>
> can somebody please explain this to me ?
>
> Or what am I doeing wrong ?

well, since you forgot to tell us what example you tried to
run, how you typed it in, and what error you got, I can only
guess.

-- make sure to import the socket module

-- make sure to use the "socket." prefix, so Python
   knows where to look for the AF_INET "thing" (it's
   a variable).

</F>





More information about the Python-list mailing list