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
{{ message }}
Repository navigation
socket.getaddrinfo Py3.10 docs say "AddressFamily.SOCK_STREAM" #98026
I've checked the main, 3.10 and 3.11 branches, and this is only apparent in the 3.10 documentation. The main and 3.11 branches have older lines here and use the module-level constants. I wouldn't know where to direct a PR, sorry.
Actually, displaying the module name (socket.SOCK_STREAM) instead of the enumeration name (SocketKind.SOCK_STREAM) seem to be the newly (3.11?) expected behavior, see #84247 and #22392.
Docs have been updated in b775106.
Activity
mmmarcos commentedon Oct 21, 2022
Actually, displaying the module name (
socket.SOCK_STREAM) instead of the enumeration name (SocketKind.SOCK_STREAM) seem to be the newly (3.11?) expected behavior, see #84247 and #22392.Docs have been updated in b775106.
mmmarcos commentedon Oct 21, 2022
However both 3.10.7 and 3.11.0rc2 return:
If this is the expected behavior, I guess both 3.10 and 3.11 will need a fix in the docs (maybe @ethanfurman can confirm?)