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

John J. Lee jjl at pobox.com
Fri Apr 1 14:51:33 EST 2005


Steve Holden <steve at holdenweb.com> writes:

> Peter Otten wrote:
> > adrian wrote:
> >
> >>urllib.socket.setdefaulttimeout(self.timeout)
> >>AttributeError: 'module' object has no attribute 'setdefaulttimeout'
> > socket.setdefaulttimeout() was added in Python 2.3. You need to
> > upgrade.
> > Peter
> >
> Alternatively you might still be ablet o get Tom O'Malley's
> tiemoutsocket module, which I used in several applications until 2.3
> integrated the functionality.

I seem to recall a bug related to sendall(), though, IIRC. I reported
it, but it didn't get fixed, again IIRC.


John



More information about the Python-list mailing list