Sockets: code works locally but fails over LAN

Peter Hansen peter at engcorp.com
Sat Sep 3 16:42:35 EDT 2005


n00m wrote:
> Bryan wrote:
> PS Yes! Your last version works like a champ. It easily handles up
> to 5 instances of my.vbs! Except of this thing:
> 
>>AttributeError: 'module' object has no attribute 'SHUT_WR'
> 
> Seems it's a pure Unix constant.

Definitely not.  Are you sure you've got a proper Python install?

c:\>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on 
win32
 >>> import socket
 >>> dir(socket)
['AF_APPLETALK', 'AF_DECnet', ... 'SHUT_RD', 'SHUT_RDWR', 'SHUT_WR',
'SOCK_DGRAM', ... 'sys', 'timeout']

 >>> socket.SHUT_WR
1

If you're really getting this error it would seem something is very 
wrong on your machine.

-Peter



More information about the Python-list mailing list