| 1 |
============================================================== |
| 2 |
PyPy v7.3.23: release of python 2.7, 3.11, released 2026-xx-xx |
| 3 |
============================================================== |
| 4 |
|
| 5 |
|
| 6 |
.. |
| 7 |
updated to ad87cbd9a6f27a94ae759905c171e87478490326 |
| 8 |
|
| 9 |
.. note:: |
| 10 |
This is a pre-release announcement. When the release actually happens, it |
| 11 |
will be announced on the PyPy blog_. |
| 12 |
|
| 13 |
.. note:: |
| 14 |
Need to add release date |
| 15 |
|
| 16 |
The PyPy team is proud to release version 7.3.23 of PyPy after the previous |
| 17 |
release on April 26, 2026. This is a bug-fix release that fixes an overeager |
| 18 |
warning about unused coroutines, and some problems around multiple inheritance |
| 19 |
in c-extensions. |
| 20 |
|
| 21 |
This version includes a change to the bytecode interpreter to use `exception tables`_ |
| 22 |
instead of dedicated opcodes. Now the PyPy disassembly will be closer to |
| 23 |
CPython format. So far it does not impact performance. |
| 24 |
|
| 25 |
We also include changes to code generation to use `computed |
| 26 |
gotos`_ and to more aggressively inline the stack checks when entering a |
| 27 |
``PyFrame``. These do not yet show up as improvements in speed.pypy.org |
| 28 |
benchmarks, Our venerable benchmarker machine is using gcc5.4.1 (it was set up |
| 29 |
10 years ago when that was standard, like our manylinux 2014 buildbot machines) |
| 30 |
so we are hopeful an update to infrastructure will show the same improvements |
| 31 |
that we see when running benchmarks on more modern compilers. |
| 32 |
|
| 33 |
The release includes two different interpreters: |
| 34 |
|
| 35 |
- PyPy2.7, which is an interpreter supporting the syntax and the features of |
| 36 |
Python 2.7 including the stdlib for CPython 2.7.18+ (the ``+`` is for |
| 37 |
backported security updates) |
| 38 |
|
| 39 |
- PyPy3.11, which is an interpreter supporting the syntax and the features of |
| 40 |
Python 3.11, including the stdlib for CPython 3.11.15. |
| 41 |
|
| 42 |
The interpreters are based on much the same codebase, thus the double |
| 43 |
release. This is a micro release, all APIs are compatible with the other 7.3 |
| 44 |
releases. |
| 45 |
|
| 46 |
We recommend updating. You can find links to download the releases here: |
| 47 |
|
| 48 |
https://pypy.org/download.html |
| 49 |
|
| 50 |
We would like to thank our donors for the continued support of the PyPy |
| 51 |
project. If PyPy is not quite good enough for your needs, we are available for |
| 52 |
`direct consulting`_ work. If PyPy is helping you out, we would love to hear |
| 53 |
about it and encourage submissions to our blog_ via a pull request |
| 54 |
to https://github.com/pypy/pypy.org |
| 55 |
|
| 56 |
We would also like to thank our contributors and encourage new people to join |
| 57 |
the project. PyPy has many layers and we need help with all of them: bug fixes, |
| 58 |
`PyPy`_ and `RPython`_ documentation improvements, or general `help`_ with |
| 59 |
making RPython's JIT even better. |
| 60 |
|
| 61 |
If you are a python library maintainer and use C-extensions, please consider |
| 62 |
making a HPy_ / CFFI_ / cppyy_ version of your library that would be performant |
| 63 |
on PyPy. In any case, `cibuildwheel`_ supports building wheels for PyPy. |
| 64 |
|
| 65 |
.. rubric:: Footnotes |
| 66 |
|
| 67 |
.. _`PyPy`: https://doc.pypy.org/ |
| 68 |
.. _`RPython`: https://rpython.readthedocs.org |
| 69 |
.. _`help`: https://doc.pypy.org/project-ideas.html |
| 70 |
.. _CFFI: https://cffi.readthedocs.io |
| 71 |
.. _cppyy: https://cppyy.readthedocs.io |
| 72 |
.. _`cibuildwheel`: https://github.com/joerick/cibuildwheel |
| 73 |
.. _blog: https://pypy.org/blog |
| 74 |
.. _HPy: https://hpyproject.org/ |
| 75 |
.. _direct consulting: https://www.pypy.org/pypy-sponsors.html |
| 76 |
.. _`computed gotos`: https://eli.thegreenplace.net/2012/07/12/computed-goto-for-efficient-dispatch-tables |
| 77 |
.. _`exception tables`: https://github.com/python/cpython/blob/main/InternalDocs/exception_handling.md |
| 78 |
|
| 79 |
What is PyPy? |
| 80 |
============= |
| 81 |
|
| 82 |
PyPy is a Python interpreter, a drop-in replacement for CPython. |
| 83 |
It's fast (`PyPy and CPython`_ performance |
| 84 |
comparison) due to its integrated tracing JIT compiler. |
| 85 |
|
| 86 |
We also welcome developers of other `dynamic languages`_ to see what RPython |
| 87 |
can do for them. |
| 88 |
|
| 89 |
We provide binary builds for: |
| 90 |
|
| 91 |
* **x86** machines on most common operating systems |
| 92 |
(Linux 32/64 bits, Mac OS 64 bits, Windows 64 bits) |
| 93 |
|
| 94 |
* 64-bit **ARM** machines running Linux (``aarch64``) and macos (``macos_arm64``). |
| 95 |
|
| 96 |
PyPy supports Windows 32-bit, Linux PPC64 big- and little-endian, Linux ARM |
| 97 |
32 bit, RISC-V RV64IMAFD Linux, and s390x Linux but does not release binaries. |
| 98 |
Please reach out to us if you wish to sponsor binary releases for those |
| 99 |
platforms. Downstream packagers provide binary builds for debian, Fedora, |
| 100 |
conda, OpenBSD, FreeBSD, Gentoo, and more. |
| 101 |
|
| 102 |
.. _`PyPy and CPython`: https://speed.pypy.org |
| 103 |
.. _`dynamic languages`: https://rpython.readthedocs.io/en/latest/examples.html |
| 104 |
|
| 105 |
Changelog |
| 106 |
========= |
| 107 |
|
| 108 |
For all versions |
| 109 |
---------------- |
| 110 |
|
| 111 |
|
| 112 |
Bugfixes |
| 113 |
~~~~~~~~ |
| 114 |
|
| 115 |
- Fix a ``SystemError`` when ``OSError`` is raised in ``gc.dump_rpy_heap`` (:issue:`5118`) |
| 116 |
- Fix bug in ``inline_short_preamble`` (:issue:`5462`) |
| 117 |
|
| 118 |
Speedups and enhancements |
| 119 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 120 |
|
| 121 |
- Speed up ``int << int -> long`` shifts and leave the exponent of ``long ** |
| 122 |
int`` as an int |
| 123 |
- Detect performance-cluster L2 cache size instead of efficiency on Apple Silicon |
| 124 |
- Use computed-goto on GCC/Clang instead of a big switch statement |
| 125 |
- Explicitly inline stack checks at the beginning of each ``PyFrame`` |
| 126 |
|
| 127 |
Python 2.7 |
| 128 |
---------- |
| 129 |
|
| 130 |
|
| 131 |
Python 3.11 |
| 132 |
----------- |
| 133 |
|
| 134 |
Bugfixes including missing compatibility with CPython 3.11 |
| 135 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 136 |
|
| 137 |
- Fix module and name for builtin classes with deeper hierarchies (:issue:`5296`) |
| 138 |
- Remove over-eager warning emitted when ``cr_frame`` is accessed on a not |
| 139 |
started coroutine (:issue:`5454`) |
| 140 |
- Fix ``typedef.doc`` to reject setting it to a ``getset`` (:issue:`5458`) |
| 141 |
- Fix more ``__text_signature__`` incompatibilities (:issue:`5458`) |
| 142 |
- Fix module name of ``_sqlite3`` exceptions to ``sqlite3`` like CPython |
| 143 |
- ``datetime:fromisoformat`` raises without setting a context in |
| 144 |
``_datetime.c``, do the same in datetime.py |
| 145 |
- Use ``exceptiontable`` in the bytecode interpreter like CPython does |
| 146 |
- Add ``_Py_NO_RETURN`` to ``_Py_FatalErrorFunc`` |
| 147 |
- Fix ``_pypyjson`` encoding of int subclasses (:issue:`5478`) |
| 148 |
- Fixing a bug in computation of ``tp_basicsize`` for mixed python/c-extension |
| 149 |
types caused a bug in multiple inheritance with c-extension types used in |
| 150 |
pybind11. More closely follow the logic of CPython (:issue:`5481`) |
| 151 |
- initialize ``MultibyteIncrementalDecoder.state`` to 0 |
| 152 |
- detect incomplete decorator input in the parser (:issue:`5484`) |
| 153 |
|
| 154 |
|
| 155 |
Speedups and enhancements |
| 156 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 157 |
|
| 158 |
- Improve the performance of ``str.splitlines`` |
| 159 |
- Restore lost ``heapq.merge()`` using a linked tournament tree which is slower |
| 160 |
in CPython but faster in PyPy. The code was lost in an stdlib update and |
| 161 |
reverted to the CPython version (:issue:`5466`) |
| 162 |
|