Title: Docs: Fix getstatus() -> getcode() typos by hugovk · Pull Request #101296 · python/cpython · GitHub
Open Graph Title: Docs: Fix getstatus() -> getcode() typos by hugovk · Pull Request #101296 · python/cpython
X Title: Docs: Fix getstatus() -> getcode() typos by hugovk · Pull Request #101296 · python/cpython
Description: The docs say getstatus() for http.client.HTTPResponse and urllib.response.addinfourl: https://docs.python.org/3/library/http.client.html#http.client.HTTPResponse.getstatus https://docs.python.org/3/library/urllib.request.html#urllib.response.addinfourl.getstatus But they're really getcode(): cpython/Lib/http/client.py Lines 778 to 783 in f02fa64 def getcode(self): '''Return the HTTP status code that was sent with the response, or None if the URL is not an HTTP URL. ''' return self.status cpython/Lib/urllib/response.py Lines 80 to 81 in f02fa64 def getcode(self): return self.code The documentation (and typos) for these were added as part of #11447 for Python 3.9 in 2019, although the methods have been around much longer (2009 and 2008). Let's backport to at least 3.10.
Open Graph Description: The docs say getstatus() for http.client.HTTPResponse and urllib.response.addinfourl: https://docs.python.org/3/library/http.client.html#http.client.HTTPResponse.getstatus https://docs.python.org/...
X Description: The docs say getstatus() for http.client.HTTPResponse and urllib.response.addinfourl: https://docs.python.org/3/library/http.client.html#http.client.HTTPResponse.getstatus https://docs.python.org/...
Opengraph URL: https://github.com/python/cpython/pull/101296
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:a3fef0d4-2291-be0e-44ee-6914c6e077b2 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8E3E:26A866:18E3B1:23203E:696A0F5D |
| html-safe-nonce | f37c47a9eccf696e3c80b0b6b908278ddb07dae8def8ebca9e451dacbdd725e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTNFOjI2QTg2NjoxOEUzQjE6MjMyMDNFOjY5NkEwRjVEIiwidmlzaXRvcl9pZCI6Ijg1NTc4NTQzOTY0MDgwMDg1NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 190170f2b592b6f71b3cd105f613dab542f0a31fa90b2a2a9dda9ef1e918868f |
| hovercard-subject-tag | pull_request:1215769864 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/python/cpython/pull/101296/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1324225?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1324225?s=400&v=4 |
| og:image:alt | The docs say getstatus() for http.client.HTTPResponse and urllib.response.addinfourl: https://docs.python.org/3/library/http.client.html#http.client.HTTPResponse.getstatus https://docs.python.org/... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width