AttributeError: 'module' object has no attribute 'setdefaulttimeout'

infidel saint.infidel at gmail.com
Thu Mar 31 11:56:17 EST 2005


That just means the urllib.socket module doesn't have any function
named setdefaulttimeout in it.

It appears there might be something wrong with your socket module as
mine has it:

py> import urllib
py> f = urllib.socket.setdefaulttimeout
py> f
<built-in function setdefaulttimeout>




More information about the Python-list mailing list