| 1 |
======================================================================= |
| 2 |
PyPy v7.3.16: release of python 2.7, 3.9, and 3.10, released 2024-04-23 |
| 3 |
======================================================================= |
| 4 |
|
| 5 |
The PyPy team is proud to release version 7.3.16 of PyPy. |
| 6 |
|
| 7 |
This release includes security fixes from upstream CPython, and bugfixes to the |
| 8 |
garbage collector, described in a `gc bug-hunt blog post`_. |
| 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.19. |
| 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.14. |
| 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.15 release on Jan 15, 2024 |
| 25 |
|
| 26 |
We recommend updating. You can find links to download the v7.3.16 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 |
| 33 |
about 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 |
| 39 |
making 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 |
.. _`gc bug-hunt blog post`: https://www.pypy.org/posts/2024/03/fixing-bug-incremental-gc.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 |
|
| 94 |
- Make some RPython code Python3 compatible, including supporting `print()` |
| 95 |
- Make ``test_transformed_gc`` tests more stable |
| 96 |
- Document the ``%d`` feature in ``PYPYLOG`` env var file name |
| 97 |
- Update vendored ``pycparser`` for its 2.22 release |
| 98 |
- Raise default gc nursery size to 4MB (:issue:`4939`) |
| 99 |
|
| 100 |
Bugfixes |
| 101 |
~~~~~~~~ |
| 102 |
|
| 103 |
- Fix the action dispatcher in garbage collector hooks (:issue:`4899`) |
| 104 |
- Fix ``'const'`` in signature of ``gdbm_open`` (:issue:`4926`) |
| 105 |
- Fix garbage collector incminimark ``arraycopy`` incrementality bug |
| 106 |
(:issue:`4925,3959`) |
| 107 |
- Fix pinning/shadow interaction bugs in the incminimark GC (:issue:`4900`) |
| 108 |
|
| 109 |
Speedups and enhancements |
| 110 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 111 |
|
| 112 |
- Move ``uint_mul_high`` to ``rarithmetic`` and add support for it in the |
| 113 |
metainterp |
| 114 |
- Add a ``setattr`` shortcut to ``StdObjspace`` like the existing ``getattr``, |
| 115 |
and implement a ``STOR_ATTR`` optimization, and extend it to work for adding |
| 116 |
attributes as well. |
| 117 |
- Update CFFI to 1.17.0dev0 |
| 118 |
- Constant-fold typeptr getfields |
| 119 |
- Update to stdlib 3.9.19 including changes to `_ssl` and vendoring ``expat`` |
| 120 |
into the repo |
| 121 |
- Implement ``dict.__ror__`` (:issue:`4934`) |
| 122 |
|
| 123 |
Python 3.9+ |
| 124 |
----------- |
| 125 |
|
| 126 |
Bugfixes |
| 127 |
~~~~~~~~ |
| 128 |
|
| 129 |
- ``_putwch`` on windows accepts a chr not an int (:issue:`4881`) |
| 130 |
- Properly create ppc64 import suffixes for c-extensions (:issue:`4878`) |
| 131 |
- Backport cpython fix to prevent subclassing datetime.timezone (:issue:`python/cpython#112453`) |
| 132 |
- Remove top level ``__init__.py`` from stdlib (:issue:`4885`) |
| 133 |
- Replace ``handshake_done`` with ``SSL_is_init_finished`` (bpo-29334_ from CPython3.5) |
| 134 |
- Fix some subtle ``_ssl`` incompatibilities in error handling (:issue:`4883`) |
| 135 |
- Port cffi change to better parse repetitive pragmas |
| 136 |
(:issue:`python-cffi/cffi#46`) |
| 137 |
- Port cffi change to better parse complex number semantics on windows |
| 138 |
(:issue:`python-cffi/cffi#57`) |
| 139 |
- Set ``tp_doc`` when defined in ``PyGetSetDef`` (:issue:`4898`) |
| 140 |
- Use ``Py_UCS4`` not ``PY_UNICODE`` in various ``PyUnicode`` function input |
| 141 |
(:issue:`4901`) |
| 142 |
- Make ``str.expandtabs()`` do the right thing with unicode characters and |
| 143 |
speed it up (:issue:`4920`) |
| 144 |
- Fix ``'const'`` in signature of ``Tcl_Merge`` (:issue:`4926`) |
| 145 |
- Close connection to avoid resource leak in ``multiprocessing.managers`` |
| 146 |
- Fix ``str.__mul__(str)`` to raise rather than return ``NotImplemented`` |
| 147 |
- Sync pure-python ``stat.py`` with upstream CPython3.13 to match C ``_stat`` |
| 148 |
implementation of filemode |
| 149 |
|
| 150 |
Speedups and enhancements |
| 151 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 152 |
|
| 153 |
- Add ``PyModule_GetFilenameObject`` and ``PyModule_GetNameObject`` |
| 154 |
- Speed up ``normalize_exception`` by reduced copying |
| 155 |
- Update xz-utils to 5.4.6 when building `_lzma` |
| 156 |
- Add ``sys._git`` |
| 157 |
|
| 158 |
Python 3.10 |
| 159 |
----------- |
| 160 |
|
| 161 |
Enhancements |
| 162 |
~~~~~~~~~~~~ |
| 163 |
|
| 164 |
- Make stack depth computation more precise. Stack depths of various |
| 165 |
instructions were off by one for historical reasons. The errors carefully |
| 166 |
balanced each other out. Now code that does exception handling has smaller |
| 167 |
maximum stack sizes. |
| 168 |
|
| 169 |
.. _bpo-29334: https://github.com/python/cpython/issues/73520 |