Where and when does Python say this to you?

gracemia gracemia gracemia at gmail.com
Tue Feb 8 14:26:33 CET 2011


 File "prueba.py", line 4, in <module>
    sock = socket(AF_UNIX, SOCK_STREAM)
NameError: name 'AF_UNIX' is not defined

code:

import socket
sock = socket(AF_UNIX, SOCK_STREAM)

Thank you !


Submitted via EggHeadCafe 
Statistics, Probability, Lotteries and Dumb Programmers
http://www.eggheadcafe.com/tutorials/aspnet/041de19a-e704-468f-bd3c-79164fc739f5/statistics-probability-lotteries-and-dumb-programmers.aspx



More information about the Python-list mailing list