Title: bpo-42060: Remove `assert` from http/client.py by fbidu · Pull Request #22737 · python/cpython · GitHub
Open Graph Title: bpo-42060: Remove `assert` from http/client.py by fbidu · Pull Request #22737 · python/cpython
X Title: bpo-42060: Remove `assert` from http/client.py by fbidu · Pull Request #22737 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: This PR removes assert statement from the stdlib's HTTP client.py and switches by an if...raise approach that won't be removed if optimization is requested https://bugs.python.org/issue42060
X Description: This PR removes assert statement from the stdlib's HTTP client.py and switches by an if...raise approach that won't be removed if optimization is requested https://bugs.python.org/issue42060
Opengraph URL: https://github.com/python/cpython/pull/22737
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:5eae3f3a-bc64-e40a-30fe-3973cd8b92d5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 97EC:2D523B:3D91C:52468:6A52DD19 |
| html-safe-nonce | ecb8734df9a8ae913409bf54610b6997e714c7abaca1d4c17b6884a2a5c67713 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0VDOjJENTIzQjozRDkxQzo1MjQ2ODo2QTUyREQxOSIsInZpc2l0b3JfaWQiOiIzNTM4NjY4MjIwMzIzMTI2NTUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 94f79a34defe10526f7ab573b282ab92c2c6fe5d71f83724e158412098d2a0db |
| hovercard-subject-tag | pull_request:505277774 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/22737/commits |
| twitter:image | https://opengraph.githubassets.com/192f7466155eec7db24aae672c994732b393d3ec3b801828bc6af1a1e9b52932/python/cpython/pull/22737 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/192f7466155eec7db24aae672c994732b393d3ec3b801828bc6af1a1e9b52932/python/cpython/pull/22737 |
| og:image:alt | This PR removes assert statement from the stdlib's HTTP client.py and switches by an if...raise approach that won't be removed if optimization is requested https://bugs.python.org/issue42060 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fbidu |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width