[docs] [issue13724] socket.create_connection and multiple IP addresses

Antoine Pitrou report at bugs.python.org
Sat Jan 7 01:28:31 CET 2012

Antoine Pitrou <pitrou at free.fr> added the comment:

> http://docs.python.org/release/2.7.2/library/socket#socket.create_connection doesn't describe how it loops over all IP addresses. That seems to be the functions main advantage (and a gotcha) compared to creating the socket and connecting directly.

Well the main advantage is that it makes it much easier to write clients
supporting both IPv4 and IPv6.


Python tracker <report at bugs.python.org>

More information about the docs mailing list