Antoine Pitrou <pit...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue13724> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com