Title: gh-76007: Deprecate `__version__` attribute in `http.server` by hugovk · Pull Request #142658 · python/cpython · GitHub
Open Graph Title: gh-76007: Deprecate `__version__` attribute in `http.server` by hugovk · Pull Request #142658 · python/cpython
X Title: gh-76007: Deprecate `__version__` attribute in `http.server` by hugovk · Pull Request #142658 · python/cpython
Description: In the issue @vstinner said: IMO it's a good idea to use the Python version as the HTTP server version. However, the Python version is already part of the combined version string: "BaseHTTP/0.6 Python/3.15.0". This is made up of: def version_string(self): """Return the server software version string.""" return self.server_version + ' ' + self.sys_version And the comments say server_version can be a name without a version: # The Python system version, truncated to its first component. sys_version = "Python/" + sys.version.split()[0] # The server software version. You may want to override this. # The format is multiple whitespace-separated strings, # where each string is of the form name[/version]. server_version = "BaseHTTP/" + __version__ So better to have something like "BaseHTTP Python/3.15.0" rather than "BaseHTTP/3.15.0 Python/3.15.0". 📚 Documentation preview 📚: https://cpython-previews--142658.org.readthedocs.build/ Issue: gh-76007
Open Graph Description: In the issue @vstinner said: IMO it's a good idea to use the Python version as the HTTP server version. However, the Python version is already part of the combined version string: "BaseH...
X Description: In the issue @vstinner said: IMO it's a good idea to use the Python version as the HTTP server version. However, the Python version is already part of the combined version string: &qu...
Opengraph URL: https://github.com/python/cpython/pull/142658
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:70dc823e-4b1e-f9d1-ded1-de9d388993ca |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D720:D0A70:29BB1B9:3BA6589:6A510A46 |
| html-safe-nonce | 99a8e9c346922e58e07b4d48ed189fedcb34957e157369540f66afced348aad1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzIwOkQwQTcwOjI5QkIxQjk6M0JBNjU4OTo2QTUxMEE0NiIsInZpc2l0b3JfaWQiOiIxNjg2MTQ1NDIzMDkzOTUwMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a59fdf2b446383f5cda58dd34b9874e6f8bf3a09c822847ae67d0d8ac78e426a |
| hovercard-subject-tag | pull_request:3098534594 |
| 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/142658/files |
| 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 | In the issue @vstinner said: IMO it's a good idea to use the Python version as the HTTP server version. However, the Python version is already part of the combined version string: "BaseH... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b076e100febaa00374cd89239f915d00dd3187f7c68b12bc2b7688181305344d |
| 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 | 2d129404fc45ea64edb1b98567c53e55b395536f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width