httplib does not use "hosts" file (Windows)
Fredrik Lundh
effbot at telia.com
Tue Sep 12 16:12:58 EDT 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:
%SystemRoot%\system32\drivers\etc\HOSTS
(at least for NT 3.51 and NT 4.0; on my Win95 box, it's in
the \WINDOWS directory)
</F>
<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->
More information about the Python-list
mailing list