[issue10414] socket.gethostbyname doesn't return an ipv6 address

Martin v. Löwis report at bugs.python.org
Sun Nov 14 11:30:53 CET 2010

Martin v. Löwis <martin at v.loewis.de> added the comment:

Python has a policy of exposing low-level APIs as-is, i.e. the way the operating system implements them. gethostbyname is an old BSD socket API function that is limited to IPv4, and Python exposes it as such.

If you want another convenience function, I recommend to write it yourself, and then use it in your code.

nosy: +loewis
resolution:  -> wont fix
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list