Title: Differentiate `sys.implementation.version` from `sys.version_info` · Issue #7770 · RustPython/RustPython · GitHub
Open Graph Title: Differentiate `sys.implementation.version` from `sys.version_info` · Issue #7770 · RustPython/RustPython
X Title: Differentiate `sys.implementation.version` from `sys.version_info` · Issue #7770 · RustPython/RustPython
Description: Feature I'm writing an application that runs a third-party script, which operates on pickles generated by another application. There are different versions of the script for Python 2 and Python 3, and the Python version must match the Py...
Open Graph Description: Feature I'm writing an application that runs a third-party script, which operates on pickles generated by another application. There are different versions of the script for Python 2 and Python 3, ...
X Description: Feature I'm writing an application that runs a third-party script, which operates on pickles generated by another application. There are different versions of the script for Python 2 and Python...
Opengraph URL: https://github.com/RustPython/RustPython/issues/7770
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Differentiate `sys.implementation.version` from `sys.version_info`","articleBody":"## Feature\n\nI'm writing an application that runs a third-party script, which operates on pickles generated by another application. There are different versions of the script for Python 2 and Python 3, and the Python version must match the Python version used by that other application, but the actual implementation doesn't matter -- CPy, RustPy, Jython, IronPy, and PyPy all work properly.\n\nMy application allows the user to choose their Python executable of choice. It needs to check whether it implements Python 2 or Python 3 and also collect and show a proof-of-life (i.e. \"RustPython 0.5.0 (64bit, for Python 3.14)\"). Usually I'd get that from PEP514 registrations, but I also need to generate it if someone browses to an unregistered interpreter like RustPython. I'm getting incorrect output from RustPython when I try to obtain that information.\n\nThere are two version numbers in `sys`, and RustPython incorrectly uses the same version information in both:\n* `sys.version_info` -- This is the version of CPython that RustPython is trying to copy, and is correctly set to (essentially) `3.14.0alpha`.\n* `sys.implementation.version` -- This is the version of RustPython itself. It should be set to (essentially) `0.5.0`, but instead is set to the same version as above.\n\n## Python Documentation or reference to CPython source code\nhttps://docs.python.org/3/library/sys.html#sys.implementation\n\n","author":{"url":"https://github.com/TwelveBaud","@type":"Person","name":"TwelveBaud"},"datePublished":"2026-05-03T20:47:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/7770/RustPython/issues/7770"}
| 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:0eb57c5f-b6e5-0fad-905e-4a5084b3c3fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9CC:1CD6D:6E872:91A5B:6A614106 |
| html-safe-nonce | eff921177164c0a0cd3e77e4318e653c4245992c539d1fc09b714a2fb6811e4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUNDOjFDRDZEOjZFODcyOjkxQTVCOjZBNjE0MTA2IiwidmlzaXRvcl9pZCI6IjcwNDg4NzEwOTIxMzc1NzQ2NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 637fb5a6d37631273e14def0f5b708bc1be3e315bd66ffe3a9e5134ad7ac7e86 |
| hovercard-subject-tag | issue:4372936425 |
| 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/RustPython/RustPython/7770/issue_layout |
| twitter:image | https://opengraph.githubassets.com/99c5d972ab9c43407ea20eb2ae395300e8c948bbe19bf207280a09b29398c2a2/RustPython/RustPython/issues/7770 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/99c5d972ab9c43407ea20eb2ae395300e8c948bbe19bf207280a09b29398c2a2/RustPython/RustPython/issues/7770 |
| og:image:alt | Feature I'm writing an application that runs a third-party script, which operates on pickles generated by another application. There are different versions of the script for Python 2 and Python 3, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TwelveBaud |
| hostname | github.com |
| expected-hostname | github.com |
| None | 358090e896abe1815bef70fcaae0a12d8ebf315874207428312daf7419e9c7c9 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 87be91c8b3c813d60ac5c8ece422529a03a7e332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width