2 ms·
Does PyPy still release 2.7 because RPython is still based on it? I was recently trying to play with RPython for the first time, and having to remember all the
by abeppu 3y ago
Does PyPy still release 2.7 because RPython is still based on it?
I was recently trying to play with RPython for the first time, and having to remember all the python 2 vs python 3 differences felt strange, and very retro.
- JulianWasTaken 3y agoDeveloping / helping contribute to PyPy may mean touching 2.7 in its toolchain which is used to implement it, but no, users using it have been able to use 3.x for a very very long time now.
- abeppu 3y agoYou'll note I said I was playing with RPython, not PyPy. In my case, I was playing with writing a small interpreter, and comparing the RPython toolchain with the Truffle/Graal framework. Writing RPython code, even if one is not developing or contributing to PyPy, means writing within a subset of python 2. > RPython ("Restricted Python") is a subset of Python 2 https://www.pypy.org/posts/2022/04/how-is-pypy-tested.html https://www.pypy.org/posts/2022/04/how-is-pypy-tested.html And RPython's translator specifically uses pypy, and uses python 2 syntax: https://github.com/pypy/pypy/blob/main/rpython/bin/rpython#L1 https://github.com/pypy/pypy/blob/main/rpython/bin/rpython#L... ... so getting the RPython toolchain (even if one is intending to improve the PyPy 3+ interpreters) requires setting up a pypy 2 interpreter. Hence the question in my post.