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 skrah
Recipients exarkun, giampaolo.rodola, loewis, mark.dickinson, pitrou, skrah
Date 2010-06-17.08:43:49
SpamBayes Score 0.06576432
Marked as misclassified No
Message-id <1276764230.95.0.804423178214.issue8857@psf.upfronthosting.co.za>
In-reply-to
Content
> But why is that an attribute of a socket object?

Please pretend I did not write this. ;)


Anyway, getaddrinfo() on FreeBSD/Qemu gives this:

 >>> socket.getaddrinfo('localhost', 21)
[(2, 2, 17, '', ('127.0.0.1', 21)), (2, 1, 6, '', ('127.0.0.1', 21)), (2, 5, 132, '', ('127.0.0.1', 21)), (28, 2, 17, '', ('::1', 21, 0, 0)), (28, 1, 6, '', ('::1', 21, 0, 0)), (28, 5, 132, '', ('::1', 21, 0, 0))]
>>> socket.getaddrinfo('localhost', 22)
[(2, 2, 17, '', ('127.0.0.1', 22)), (2, 1, 6, '', ('127.0.0.1', 22)), (2, 5, 132, '', ('127.0.0.1', 22)), (28, 2, 17, '', ('::1', 22, 0, 0)), (28, 1, 6, '', ('::1', 22, 0, 0)), (28, 5, 132, '', ('::1', 22, 0, 0))]
>>> socket.getaddrinfo('localhost', 80)
[(2, 2, 17, '', ('127.0.0.1', 80)), (2, 1, 6, '', ('127.0.0.1', 80)), (2, 5, 132, '', ('127.0.0.1', 80)), (28, 2, 17, '', ('::1', 80, 0, 0)), (28, 1, 6, '', ('::1', 80, 0, 0)), (28, 5, 132, '', ('::1', 80, 0, 0))]
History
Date User Action Args
2010-06-17 08:43:51skrahsetrecipients: + skrah, loewis, exarkun, mark.dickinson, pitrou, giampaolo.rodola
2010-06-17 08:43:50skrahsetmessageid: <1276764230.95.0.804423178214.issue8857@psf.upfronthosting.co.za>
2010-06-17 08:43:49skrahlinkissue8857 messages
2010-06-17 08:43:49skrahcreate