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.
Documentation
Currently,
socket.getaddrinfo
is documented as follows:But it seems that it can also return a
(int, bytes)
tuple if Python is compiled with--disable-ipv6
and the family isAF_INET6
. This should be documented.Cf. python/typeshed#13344, cc @MaicoTimmerman
Linked PRs
The text was updated successfully, but these errors were encountered: