Code run from IDLE but not via double-clicking on its *.py

Richie Hindle richie at entrian.com
Wed Aug 31 04:39:21 EDT 2005


[n00m]
> WHY ON THE EARTH <'module' object has no attribute 'AF_INET'> ???

Because you have a socket.py in d:\python23\00 which is being picked up
instead of Python's own socket module.  You shouldn't give your modules
the same name as Python's own modules.

-- 
Richie Hindle
richie at entrian.com



More information about the Python-list mailing list