Title: socket.getaddrinfo Py3.10 docs say "AddressFamily.SOCK_STREAM" · Issue #98026 · python/cpython · GitHub
Open Graph Title: socket.getaddrinfo Py3.10 docs say "AddressFamily.SOCK_STREAM" · Issue #98026 · python/cpython
X Title: socket.getaddrinfo Py3.10 docs say "AddressFamily.SOCK_STREAM" · Issue #98026 · python/cpython
Description: Documentation The socket.getaddrinfo example in the Py3.10 docs is given as the following: >>> socket.getaddrinfo("example.org", 80, proto=socket.IPPROTO_TCP) [(
Open Graph Description: Documentation The socket.getaddrinfo example in the Py3.10 docs is given as the following: >>> socket.getaddrinfo("example.org", 80, proto=socket.IPPROTO_TCP) [( X Description: Documentation The socket.getaddrinfo example in the Py3.10 docs is given as the following: >>> socket.getaddrinfo("example.org", 80, proto=socket.IPPROTO_TCP) [(<AddressFamily...
Opengraph URL: https://github.com/python/cpython/issues/98026
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"socket.getaddrinfo Py3.10 docs say \"AddressFamily.SOCK_STREAM\"","articleBody":"# Documentation\r\n\r\nThe [socket.getaddrinfo example](https://github.com/python/cpython/blob/11945f2cf6ae4aeb8202f481e8881ec0fbfabe89/Doc/library/socket.rst) in the Py3.10 docs is given as the following:\r\n\r\n```python\r\n\u003e\u003e\u003e socket.getaddrinfo(\"example.org\", 80, proto=socket.IPPROTO_TCP)\r\n[(\u003cAddressFamily.AF_INET6: 10\u003e, \u003cAddressFamily.SOCK_STREAM: 1\u003e,\r\n 6, '', ('2606:2800:220:1:248:1893:25c8:1946', 80, 0, 0)),\r\n (\u003cAddressFamily.AF_INET: 2\u003e, \u003cAddressFamily.SOCK_STREAM: 1\u003e,\r\n 6, '', ('93.184.216.34', 80))]\r\n```\r\n\r\nThis should have `SocketKind` instead of the second `AddressFamily`:\r\n\r\n```python\r\n\u003e\u003e\u003e socket.getaddrinfo(\"example.org\", 80, proto=socket.IPPROTO_TCP)\r\n[(\u003cAddressFamily.AF_INET6: 10\u003e, \u003cSocketKind.SOCK_STREAM: 1\u003e,\r\n 6, '', ('2606:2800:220:1:248:1893:25c8:1946', 80, 0, 0)),\r\n (\u003cAddressFamily.AF_INET: 2\u003e, \u003cSocketKind.SOCK_STREAM: 1\u003e,\r\n 6, '', ('93.184.216.34', 80))]\r\n```\r\n\r\nI'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.","author":{"url":"https://github.com/alexdutton","@type":"Person","name":"alexdutton"},"datePublished":"2022-10-07T12:25:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/98026/cpython/issues/98026"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:6375243d-cd79-3dc9-dd88-323ec9372cfb current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id E882:174FB1:1F9B352:29DB344:696B049F html-safe-nonce f183eaa6dd6b85b8a3738d5cf3332701877d042f9ba7322d71b7c888bb0a51ba visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODgyOjE3NEZCMToxRjlCMzUyOjI5REIzNDQ6Njk2QjA0OUYiLCJ2aXNpdG9yX2lkIjoiMjAyMTQ0MTYyMzk0NDc5MTE5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 5f648bd7f229cff250b54222aef3401bdb2d75e9ebd35a92bf97b1410fc741a5 hovercard-subject-tag issue:1401094279 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/98026/issue_layout twitter:image https://opengraph.githubassets.com/52995719bf9b313d03ee48e7db313aac5942703790f5e58d4fe00f17aecafa94/python/cpython/issues/98026 twitter:card summary_large_image og:image https://opengraph.githubassets.com/52995719bf9b313d03ee48e7db313aac5942703790f5e58d4fe00f17aecafa94/python/cpython/issues/98026 og:image:alt Documentation The socket.getaddrinfo example in the Py3.10 docs is given as the following: >>> socket.getaddrinfo("example.org", 80, proto=socket.IPPROTO_TCP) [( og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username alexdutton hostname github.com expected-hostname github.com None 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d turbo-cache-control no-preview go-import github.com/python/cpython git https://github.com/python/cpython.git octolytics-dimension-user_id 1525981 octolytics-dimension-user_login python octolytics-dimension-repository_id 81598961 octolytics-dimension-repository_nwo python/cpython octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 81598961 octolytics-dimension-repository_network_root_nwo python/cpython turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 82560a55c6b2054555076f46e683151ee28a19bc ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.