PyPy v7.3.22: release of python 2.7, 3.11, released 2025-xx-xx¶
Note
This is a pre-release announcement. When the release actually happens, it
will be announced on the PyPy blog.
Note
Need to add release date
The PyPy team is proud to release version 7.3.22 of PyPy after the previous release on March 13, 2026. This release fixes a long-standing JIT bug that started appearing when some int optimizations exposed it. The bug caused random segfaults. We also cleaned up many of the remaining stdlib test suite failures, which improves CPython compatibility around line numbers in dis.dis, signatures and objclass attributes for builtins, and other quality of life features.
There is now an RPython _pickle module that mirrors
the CPython one, greatly speeding up pickling operations. Where before PyPy was
5.7x slower than CPython on the pickle benchmark from the pyperformance
benchmark suite, now it is only 1.6x slower [0]. We also added pypy
pickler extensions to dump and load lists using list strategies, and enabled
them in the ForkingPickler used by multiprocessing, speeding up cases where
such objects are passed between PyPy multiprocessing instances.
We also added an RPython json encoder, speeding up json_bench from being 2.6x CPython to being 0.7x (meaning faster).
The release includes two different interpreters:
PyPy2.7, which is an interpreter supporting the syntax and the features of Python 2.7 including the stdlib for CPython 2.7.18+ (the
+is for backported security updates)PyPy3.11, which is an interpreter supporting the syntax and the features of Python 3.11, including the stdlib for CPython 3.11.15.
The interpreters are based on much the same codebase, thus the double release. This is a micro release, all APIs are compatible with the other 7.3 releases.
We recommend updating. You can find links to download the releases here:
We would like to thank our donors for the continued support of the PyPy project. If PyPy is not quite good enough for your needs, we are available for direct consulting work. If PyPy is helping you out, we would love to hear about it and encourage submissions to our blog via a pull request to https://github.com/pypy/pypy.org
We would also like to thank our contributors and encourage new people to join the project. PyPy has many layers and we need help with all of them: bug fixes, PyPy and RPython documentation improvements, or general help with making RPython’s JIT even better.
If you are a python library maintainer and use C-extensions, please consider making a HPy / CFFI / cppyy version of your library that would be performant on PyPy. In any case, cibuildwheel supports building wheels for PyPy.
Footnotes
What is PyPy?¶
PyPy is a Python interpreter, a drop-in replacement for CPython. It’s fast (PyPy and CPython performance comparison) due to its integrated tracing JIT compiler.
We also welcome developers of other dynamic languages to see what RPython can do for them.
We provide binary builds for:
x86 machines on most common operating systems (Linux 32/64 bits, Mac OS 64 bits, Windows 64 bits)
64-bit ARM machines running Linux (
aarch64) and macos (macos_arm64).
PyPy supports Windows 32-bit, Linux PPC64 big- and little-endian, Linux ARM 32 bit, RISC-V RV64IMAFD Linux, and s390x Linux but does not release binaries. Please reach out to us if you wish to sponsor binary releases for those platforms. Downstream packagers provide binary builds for debian, Fedora, conda, OpenBSD, FreeBSD, Gentoo, and more.
Changelog¶
For all versions¶
Bugfixes¶
Fix JIT invalidation logic of array items at a variable index, which could lead to incorrect results (#5389)
Disallow whitespace after sign character in
int/floatstring parsing (#3927)Make
itertools.pairwisereentrant (python/cpython#109788)Fix possessive repeat in
rsresearch and match, fixing possessive regex bugsFix duplicate ‘const’ in C code generation for nested const pointer types
Speedups and enhancements¶
Python 2.7¶
Remove unsafe pickle file handling from bundled ply in pycparse v2. PyPy3 uses pycparse v3
Python 3.11¶
Cherry-pick upstream
_pydecimalfix from CPythonAdd
sys._stdlib_dir
Bugfixes including missing compatibility with CPython 3.11¶
Fixed line number output for function definitions with multiple decorators, f-strings, and related edge cases in
disoutputFixed pyrepl and
pdbcompatibilitycpyext: fix exposing
__self__attribute on cpyext methods (#5368)cpyext: fix
getsetdescr_attachto avoid redundantly rebuilding descriptors (#5402)cpyext: when checking for
tp_new, ignoreobject.__new__(#5418)cpyext: fix flag propagation via inheritance and add flags to type objects
cpyext: fix
tp_basicsizecomputation for mixed python/c-extension MRO types (#5402)cpyext: fix type layouts for types with
tp_dictoffsetortp_weaklistoffset(#5402)cpyext: fix
PyGC_Collectto better mimic a full collection cycleFix
TextIOWrapper.readline(None)(#5379)Fix
PREP_RERAISE_STARdropping the current traceback (#5338)Fix missing case in
astcompilerfor multiple trinary expressions (#5419)Fix
function.__get__(None)to raiseTypeErrorlike CPythonFix multiple decorators raising exceptions in reverse order (#5213)
Fix
normalize_exceptionwhen called inside generatorsFix edge cases in generator and coroutine execution
Fix
raiseignoring user modifications to__traceback__Fix segfault in
Parser.diagnose()called after a successful parseFix error message for empty f-strings
Fix error messages for
range()argument parsingFix edge cases in
__future__handling andevalFix unparse edge cases: lambda positional-only args,
awaitin annotationsFix multiline UTF-8 error messages
Fix encoding failures in
_tkinterFix various
ctypesedge casesFix hpy debug mode failures
signal: handle failed wakeup-fd so it can be polled
Add more
check_valid()calls tommapRaise SyntaxError for unterminated single-quoted strings ending in newline
Fix missing
__reduce__on cpyext methods, exposed by_pickle(#5445)Fix signatures of some math functions (#5368)
Add
__doc__and__text_signature__to more cpyext types (#5368)Fix some 32-bit overflows in
thread_tconversion and cpyext arg parsing
Speedups and enhancements¶
pyrepl: implement
set_completion_display_matches_hook,parse_and_bind, andset_pre_input_hookGenerate default docstring from
__text_signature__atinterp2appEmit
($self ...)for method signatures, used byinspectMake the first build of lib_pypy cffi modules quieter (#5428)
Implement shared tuples in app-level
marshalSpeed up the cffi implementation of the fast path for
hashlib.new(name, data).hexdigest()Speed up the
sqlitesynthbenchmark in_cffi_sqlite3