R. David Murray added the comment:
That sounds reasonable. However, on my box that has an IPv6 address configured
on lo, I get the same result with or without that flag:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:48000 errors:0 dropped:0 overruns:0 frame:0
TX packets:48000 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3991442 (3.8 MiB) TX bytes:3991442 (3.8 MiB)
Python 2.7.3 (default, Jun 19 2012, 16:12:47)
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getaddrinfo('localhost', 80, 0, socket.SOCK_STREAM, 0)
[(2, 1, 6, '', ('127.0.0.1', 80))]
>>> socket.getaddrinfo('localhost', 80, 0, socket.SOCK_STREAM, 0,
>>> socket.AI_ADDRCONFIG)
[(2, 1, 6, '', ('127.0.0.1', 80))]
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15617>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com