Re: Where and when does Python say this to you?

2011-02-08 Thread gracemia gracemia
this is the simple code: -- import socket # Create an unbound and not-connected socket. sock = socket(AF_UNIX, SOCK_STREAM) --- Thank you ! Submitted via EggHeadCafe SharePoint Tip / Thought of the

Re: Where and when does Python say this to you?

2011-02-08 Thread gracemia gracemia
This is the simple code: import socket sock = socket(AF_UNIX, SOCK_STREAM) -- Thank you Submitted via EggHeadCafe SQL Server CLR Stored Procedures for External Access http://www.eggheadcafe.com/tutorials/aspnet/08

Re: Where and when does Python say this to you?

2011-02-08 Thread gracemia gracemia
File "prueba.py", line 4, in 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/tuto