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: 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
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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:44a9a423-b407-b102-9b8d-fc8f5fef652a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D758:229C6A:1D032EA:270E1CD:6A5372A4 |
| html-safe-nonce | 5093df3979bc7c28b1fee96b7ba2585d07ef003283b1a560f586d3bf4f5441ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzU4OjIyOUM2QToxRDAzMkVBOjI3MEUxQ0Q6NkE1MzcyQTQiLCJ2aXNpdG9yX2lkIjoiMzMzNzk0MzkyNDQ3MTk4NDgwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1e7fc114f87b13ad8bddb36fff62239db13c8ab161dbfb262a60e8b0adc294d8 |
| 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/files |
| twitter:image | https://avatars.githubusercontent.com/u/247856?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/247856?s=400&v=4 |
| 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:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| 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