[pypy-issue] Issue #3129: sys.implementation.version should return PyPy version, not for Python language (pypy/pypy)

Matheus Silva Santos issues-reply at bitbucket.org
Wed Dec 18 09:32:14 EST 2019


New issue 3129: sys.implementation.version should return PyPy version, not for Python language
https://bitbucket.org/pypy/pypy/issues/3129/sysimplementationversion-should-return

Matheus Silva Santos:

Output for `sys.implementation.version` SHOULD be equal to output of `sys.pypy_version_info`, as PEP 421 says that this must be the interpreter version, not the language version it implements.

‌

```python
matheus at MacBook-Pro-de-Matheus rdm % pypy3
Python 3.6.1 (784b254d669919c872a505b807db8462b6140973, Oct 06 2019, 23:25:05)
[PyPy 7.1.1-beta0 with GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.8)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``PyPy 1.3 released''
>>>> import sys
>>>> sys.implementation.version
(major=3, minor=6, micro=1, releaselevel='final', serial=0)
>>>> sys.pypy_version_info
(major=7, minor=1, micro=1, releaselevel='beta', serial=0)
>>>> 
```

‌




More information about the pypy-issue mailing list