httplib does not use "hosts" file (Windows)

Fredrik Lundh effbot at
Tue Sep 12 22:12:58 CEST 2000

Gilles Lenfant wrote:
> Why not Python ??? Doesnt it look for address resolution by the usual
> windows services ?

It uses gethostbyname, as provided by the winsock layer.
Works on all boxes I've ever used.


On the other hand, as Tim pointed out, are you sure you're
editing the right file?  All docs I have says that HOSTS should
be under:


(at least for NT 3.51 and NT 4.0; on my Win95 box, it's in
the \WINDOWS directory)


<!-- (the eff-bot guide to) the standard python library:

More information about the Python-list mailing list