Title: Be more purposeful in the Python version in `pyvenv.cfg` · Issue #102522 · python/cpython · GitHub
Open Graph Title: Be more purposeful in the Python version in `pyvenv.cfg` · Issue #102522 · python/cpython
X Title: Be more purposeful in the Python version in `pyvenv.cfg` · Issue #102522 · python/cpython
Description: In pyvenv.cfg, there's a version field that records ".".join(sys.version_info[:3]). The interesting thing about this is it isn't loose enough to reflect the version accurately if the Python interpreter is updated in-place (e.g. going fro...
Open Graph Description: In pyvenv.cfg, there's a version field that records ".".join(sys.version_info[:3]). The interesting thing about this is it isn't loose enough to reflect the version accurately if the Python interpr...
X Description: In pyvenv.cfg, there's a version field that records ".".join(sys.version_info[:3]). The interesting thing about this is it isn't loose enough to reflect the version accurately if ...
Opengraph URL: https://github.com/python/cpython/issues/102522
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Be more purposeful in the Python version in `pyvenv.cfg`","articleBody":"In `pyvenv.cfg`, there's a `version` field that records `\".\".join(sys.version_info[:3])`. The interesting thing about this is it isn't loose enough to reflect the version accurately if the Python interpreter is updated in-place (e.g. going from Python 3.11.1 to 3.11.2). But it's also not accurate enough to reflect the exact Python version (e.g. Python 3.12.0a6 is recorded as `3.12.0`).\r\n\r\nBecause of this I'm not sure what the number is meant to represent. If it's meant to record what the version was when the virtual environment was created then we should either change the field to record the release level or add another field that records that. But if it's just meant to record what the version _might_ be, then it's a bit too specific.","author":{"url":"https://github.com/brettcannon","@type":"Person","name":"brettcannon"},"datePublished":"2023-03-08T04:42:38Z","url":"https://github.com/python/cpython/issues/102522"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:dad71dfe-0c17-7e50-f111-1a1983143382 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C51C:1F2B:16F5C30:1E8B424:6B0211F2 |
| html-safe-nonce | c1c722e61f0cfc9c64455230c05d901d61b0be1fc9dd5371b5b22211ac2a1116 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTFDOjFGMkI6MTZGNUMzMDoxRThCNDI0OjZCMDIxMUYyIiwidmlzaXRvcl9pZCI6IjU3NTM2MDEwNzQxMzMwNzg1MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 084ed0b18689349d5dac1351c29d8ad574d543335d54acc52115694c00f3a226 |
| hovercard-subject-tag | issue:1614645772 |
| 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/102522/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b8d41a9b416ec1164b439dbc3a535d0367a71845085ab5a345e6b4806105eff2/python/cpython/issues/102522 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b8d41a9b416ec1164b439dbc3a535d0367a71845085ab5a345e6b4806105eff2/python/cpython/issues/102522 |
| og:image:alt | In pyvenv.cfg, there's a version field that records ".".join(sys.version_info[:3]). The interesting thing about this is it isn't loose enough to reflect the version accurately if the Python interpr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brettcannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width