You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, socket.getaddrinfois documented as follows:
[...] sockaddr is a tuple describing a socket address, whose format depends on the returned family (a (address, port) 2-tuple for AF_INET, a (address, port, flowinfo, scope_id) 4-tuple for AF_INET6), [...]
But it seems that it can also return a (int, bytes) tuple if Python is compiled with --disable-ipv6 and the family is AF_INET6. This should be documented.