This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients docs@python, kiilerix, pitrou
Date 2012-01-07.00:28:31
SpamBayes Score 0.0005101367
Marked as misclassified No
Message-id <1325896033.3341.18.camel@localhost.localdomain>
In-reply-to <1325888030.3.0.0416342115288.issue13724@psf.upfronthosting.co.za>
Content
> 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.
History
Date User Action Args
2012-01-07 00:28:31pitrousetrecipients: + pitrou, kiilerix, docs@python
2012-01-07 00:28:31pitroulinkissue13724 messages
2012-01-07 00:28:31pitroucreate