| 1 |
======================================================================= |
| 2 |
PyPy v7.3.15: release of python 2.7, 3.9, and 3.10, released 2024-01-15 |
| 3 |
======================================================================= |
| 4 |
|
| 5 |
The PyPy team is proud to release version 7.3.15 of PyPy. |
| 6 |
|
| 7 |
This is primarily a bug-fix release, and includes work done to migrate PyPy to |
| 8 |
Git and Github. |
| 9 |
|
| 10 |
The release includes three different interpreters: |
| 11 |
|
| 12 |
- PyPy2.7, which is an interpreter supporting the syntax and the features of |
| 13 |
Python 2.7 including the stdlib for CPython 2.7.18+ (the ``+`` is for |
| 14 |
backported security updates) |
| 15 |
|
| 16 |
- PyPy3.9, which is an interpreter supporting the syntax and the features of |
| 17 |
Python 3.9, including the stdlib for CPython 3.9.18. |
| 18 |
|
| 19 |
- PyPy3.10, which is an interpreter supporting the syntax and the features of |
| 20 |
Python 3.10, including the stdlib for CPython 3.10.13. |
| 21 |
|
| 22 |
The interpreters are based on much the same codebase, thus the multiple |
| 23 |
release. This is a micro release, all APIs are compatible with the other 7.3 |
| 24 |
releases. It follows after 7.3.14 release on Dec 25, 2023 |
| 25 |
|
| 26 |
We recommend updating. You can find links to download the v7.3.15 releases here: |
| 27 |
|
| 28 |
https://pypy.org/download.html |
| 29 |
|
| 30 |
We would like to thank our donors for the continued support of the PyPy |
| 31 |
project. If PyPy is not quite good enough for your needs, we are available for |
| 32 |
`direct consulting`_ work. If PyPy is helping you out, we would love to hear about |
| 33 |
it and encourage submissions to our blog_ via a pull request |
| 34 |
to https://github.com/pypy/pypy.org |
| 35 |
|
| 36 |
We would also like to thank our contributors and encourage new people to join |
| 37 |
the project. PyPy has many layers and we need help with all of them: bug fixes, |
| 38 |
`PyPy`_ and `RPython`_ documentation improvements, or general `help`_ with making |
| 39 |
RPython's JIT even better. |
| 40 |
|
| 41 |
If you are a python library maintainer and use C-extensions, please consider |
| 42 |
making a HPy_ / CFFI_ / cppyy_ version of your library that would be performant |
| 43 |
on PyPy. In any case, both `cibuildwheel`_ and the `multibuild system`_ support |
| 44 |
building wheels for PyPy. |
| 45 |
|
| 46 |
.. _`PyPy`: index.html |
| 47 |
.. _`RPython`: https://rpython.readthedocs.org |
| 48 |
.. _`help`: project-ideas.html |
| 49 |
.. _CFFI: https://cffi.readthedocs.io |
| 50 |
.. _cppyy: https://cppyy.readthedocs.io |
| 51 |
.. _`multibuild system`: https://github.com/matthew-brett/multibuild |
| 52 |
.. _`cibuildwheel`: https://github.com/joerick/cibuildwheel |
| 53 |
.. _blog: https://pypy.org/blog |
| 54 |
.. _HPy: https://hpyproject.org/ |
| 55 |
.. _was sponsored: https://www.pypy.org/posts/2022/07/m1-support-for-pypy.html |
| 56 |
.. _direct consulting: https://www.pypy.org/pypy-sponsors.html |
| 57 |
.. _has built: https://www.pypy.org/posts/2022/11/pypy-and-conda-forge.html |
| 58 |
|
| 59 |
What is PyPy? |
| 60 |
============= |
| 61 |
|
| 62 |
PyPy is a Python interpreter, a drop-in replacement for CPython |
| 63 |
It's fast (`PyPy and CPython 3.7.4`_ performance |
| 64 |
comparison) due to its integrated tracing JIT compiler. |
| 65 |
|
| 66 |
We also welcome developers of other `dynamic languages`_ to see what RPython |
| 67 |
can do for them. |
| 68 |
|
| 69 |
We provide binary builds for: |
| 70 |
|
| 71 |
* **x86** machines on most common operating systems |
| 72 |
(Linux 32/64 bits, Mac OS 64 bits, Windows 64 bits) |
| 73 |
|
| 74 |
* 64-bit **ARM** machines running Linux (``aarch64``). |
| 75 |
|
| 76 |
* Apple **M1 arm64** machines (``macos_arm64``). |
| 77 |
|
| 78 |
* **s390x** running Linux |
| 79 |
|
| 80 |
PyPy support Windows 32-bit, Linux PPC64 big- and little-endian, and Linux ARM |
| 81 |
32 bit, but does not release binaries. Please reach out to us if you wish to |
| 82 |
sponsor binary releases for those platforms. Downstream packagers provide |
| 83 |
binary builds for debian, Fedora, conda, OpenBSD, FreeBSD, Gentoo, and more. |
| 84 |
|
| 85 |
.. _`PyPy and CPython 3.7.4`: https://speed.pypy.org |
| 86 |
.. _`dynamic languages`: https://rpython.readthedocs.io/en/latest/examples.html |
| 87 |
|
| 88 |
Changelog |
| 89 |
========= |
| 90 |
|
| 91 |
For all versions |
| 92 |
---------------- |
| 93 |
- Add github workflows to add branch names to git notes, translate, and run |
| 94 |
some tests. |
| 95 |
- Activate the integration with readthedocs.io to generate documentation |
| 96 |
previews |
| 97 |
- Change references to foss.heptapod.net to github.com |
| 98 |
- Add a ``flaky`` test decorator and use it in CI to keep tests green |
| 99 |
- Change IRC links to libera.chat, we moved a few years ago. |
| 100 |
|
| 101 |
Bugfixes |
| 102 |
~~~~~~~~ |
| 103 |
- Change ``PyBUF_MAX_NDIM`` back to 36 for ABI consistency (:issue:`4816`) |
| 104 |
- Init ``sys.executable`` from ``GetModuleFileName`` on Windows (:issue:`4003`) |
| 105 |
|
| 106 |
|
| 107 |
Speedups and enhancements |
| 108 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 109 |
|
| 110 |
- Remove dead RPython code |
| 111 |
- Improve the ability to run untranslated tests on top of PyPy2.7 (instead of |
| 112 |
CPython2.7) |
| 113 |
- Speed up tracing function calls (both on the Python level as well as on the |
| 114 |
implementation level) by doing tail call optimization in the tracing |
| 115 |
interpreter. This might improve JIT warmup times and JIT memory usage a small |
| 116 |
amount for specific kinds of programs. |
| 117 |
|
| 118 |
Python 3.9+ |
| 119 |
----------- |
| 120 |
|
| 121 |
Bugfixes |
| 122 |
~~~~~~~~ |
| 123 |
|
| 124 |
- Fix ``cffi*.dist-info`` directory name |
| 125 |
- Fix for ``pypy -m venv --copies <target>`` where the source is a symlinked |
| 126 |
venv (:issue:`4838`) |
| 127 |
- When updating a ``PyTypeObject``, do not assign c-level slots when the python |
| 128 |
type has no function to assign (:issue:`4826`). This showed up in a |
| 129 |
``pybind11``-based project. The fix was to backport a change from Py3.10. |
| 130 |
|
| 131 |
Speedups and enhancements |
| 132 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 133 |
|
| 134 |
- Generate shorter bytecode for ``namedtuple._replace`` |
| 135 |
|
| 136 |
Python 3.10 |
| 137 |
----------- |
| 138 |
|
| 139 |
Bugfixes |
| 140 |
~~~~~~~~ |
| 141 |
- Fix limited API guard for ``METH_FASTCALL`` to match CPython (:issue:`4050`) |
| 142 |
- Implement ``Py_Is`` in terms of ``space.is_w`` (:issue:`4044`) |