Debian Codegraph @

pypy/doc/release-v7.3.9.rst

raw
1 =================================================
2 PyPy v7.3.9 security release, released 2022-03-30
3 =================================================
4
5 The PyPy team is proud to release version 7.3.9 of PyPy. This is a security
6 release to match the recent `CPython release`_ and updates the portable pypy
7 tarballs with ``bzip2 1.0.8``, ``openssl1.1.1n``, and ``libexpat 2.4.7``. Along
8 the way this release fixes some issues discovered after the 7.3.8 release and
9 updates ``sqlite3`` to 3.38.2. It includes:
10
11 - PyPy2.7, which is an interpreter supporting the syntax and the features of
12 Python 2.7 including the stdlib for CPython 2.7.18+ (the ``+`` is for
13 backported security updates)
14
15 - PyPy3.7, which is an interpreter supporting the syntax and the features of
16 Python 3.7, including the stdlib for CPython 3.7.13. This will be the last
17 release of PyPy3.7.
18
19 - PyPy3.8, which is an interpreter supporting the syntax and the features of
20 Python 3.8, including the stdlib for CPython 3.8.13.
21
22 - PyPy3.9, which is an interpreter supporting the syntax and the features of
23 Python 3.9, including the stdlib for CPython 3.9.12. We relate to this as
24 "beta" quality. We welcome testing of this version, if you discover
25 incompatibilities, please report them so we can gain confidence in the version.
26
27 The interpreters are based on much the same codebase, thus the multiple
28 release. This is a micro release, all APIs are compatible with the other 7.3
29 releases. Highlights of the release, since the release of 7.3.8 in February 2022,
30 include:
31
32 - Fixed some failing stdlib tests on PyPy3.9
33 - Update the bundled libexpat to 2.4.6 and sqlite3 to 3.38.2
34
35 We recommend updating. You can find links to download the v7.3.9 releases here:
36
37 https://pypy.org/download.html
38
39 We would like to thank our donors for the continued support of the PyPy
40 project. If PyPy is not quite good enough for your needs, we are available for
41 direct consulting work. If PyPy is helping you out, we would love to hear about
42 it and encourage submissions to our blog_ via a pull request
43 to https://github.com/pypy/pypy.org
44
45 We would also like to thank our contributors and encourage new people to join
46 the project. PyPy has many layers and we need help with all of them: `PyPy`_
47 and `RPython`_ documentation improvements, tweaking popular modules to run
48 on PyPy, or general `help`_ with making RPython's JIT even better. Since the
49 7.3.7 release, we have accepted contributions from 6 new contributors,
50 thanks for pitching in, and welcome to the project!
51
52 If you are a python library maintainer and use C-extensions, please consider
53 making a HPy_ / CFFI_ / cppyy_ version of your library that would be performant
54 on PyPy.
55 In any case both `cibuildwheel`_ and the `multibuild system`_ support
56 building wheels for PyPy.
57
58 .. _`PyPy`: index.html
59 .. _`RPython`: https://rpython.readthedocs.org
60 .. _`help`: project-ideas.html
61 .. _CFFI: https://cffi.readthedocs.io
62 .. _cppyy: https://cppyy.readthedocs.io
63 .. _`multibuild system`: https://github.com/matthew-brett/multibuild
64 .. _`cibuildwheel`: https://github.com/joerick/cibuildwheel
65 .. _blog: https://pypy.org/blog
66 .. _HPy: https://hpyproject.org/
67 .. _`CPython release`: https://discuss.python.org/t/py-day-is-coming-a-joint-security-release-spree-for-python-3-7-3-8-3-9-and-3-10-on-march-14th
68
69 What is PyPy?
70 =============
71
72 PyPy is a Python interpreter, a drop-in replacement for CPython 2.7, 3.7, 3.8 and
73 3.9. It's fast (`PyPy and CPython 3.7.4`_ performance
74 comparison) due to its integrated tracing JIT compiler.
75
76 We also welcome developers of other `dynamic languages`_ to see what RPython
77 can do for them.
78
79 This PyPy release supports:
80
81 * **x86** machines on most common operating systems
82 (Linux 32/64 bits, Mac OS X 64 bits, Windows 64 bits, OpenBSD, FreeBSD)
83
84 * 64-bit **ARM** machines running Linux. A shoutout to Huawei for sponsoring
85 the VM running the tests.
86
87 * **s390x** running Linux
88
89 * big- and little-endian variants of **PPC64** running Linux,
90
91 PyPy supports Windows 32-bit, PPC64 big- and little-endian, and ARM 32 bit, but
92 does not release binaries. Please reach out to us if you wish to sponsor
93 releases for those platforms.
94
95 .. _`PyPy and CPython 3.7.4`: https://speed.pypy.org
96 .. _`dynamic languages`: https://rpython.readthedocs.io/en/latest/examples.html
97
98 Known Issues with PyPy3.9
99 =========================
100
101 - We slightly modified the concurrent future's ``ProcessExcecutorPool`` to
102 start all the worker processes when the first task is received (like on
103 Python3.8) to avoid an apparent race condition when using ``fork`` and
104 threads (issue 3650_).
105
106 Changelog
107 =========
108
109 Changes shared across versions
110 -------------------------------
111 - Update the bundled libexpat to 2.4.7
112 - Update the bundled bzip2 to 1.0.8
113 - Update the bundled sqlite3 to 3.38.2 (issues 3690_, 3714_).
114 - Update the bundled openssl to 1.1.1n
115 - Add more aliases for pypy: pypy2.exe, pypy2.7.exe, python2.7.exe on windows
116 for pypy2.7 and comparable aliases on posix and other pythons (issues 3693_
117 and 3696_)
118 - Refactor argument parsing to avoid unwrapping (unboxing) and rewrapping
119 kwargs (Python 3.8+)
120
121 C-API (cpyext) and C-extensions
122 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123 - Fix to raise an exception when calling ``PySequence_GetItem('a', -2)``
124
125 Python 3.7+ bugfixes
126 --------------------
127 - Fix a slight incompatibility when initializing ``os.statvfs_result`` from
128 a length-10 tuple (issue 3686_).
129 - Fix ``sys._base_executable`` when inside a virtualenv on windows (issue
130 3323_)
131 - Use ``shutil.which`` instead of ``distutils.spawn.find_executable`` in
132 ``sysconfig`` (issue 3703_)
133
134 Python 3.8+ C-API (cpyext) fixes
135 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
136 - Fix overflow return value in ``PyNumber_AsSsize_t`` on windows
137 - Adopted `PEP 3123`_ declarations to avoid `-Wstrict-aliasing` compiler
138 warnings (issue 3706_)
139 - Allocate a ``wrapperbase`` struct and assign it to ``d_base`` of
140 ``PyWrapperDescrObject``
141
142 Python 3.9+ fixes
143 ~~~~~~~~~~~~~~~~~~
144
145 - We fixed a known performance regression of the previous release, where some
146 uses of ``**kwargs`` in function calls were slower than in PyPy3.8 (issue
147 3649_).
148
149 .. _3323: https://foss.heptapod.net/pypy/pypy/-/issues/3323
150 .. _3650: https://foss.heptapod.net/pypy/pypy/-/issues/3650
151 .. _3686: https://foss.heptapod.net/pypy/pypy/-/issues/3686
152 .. _3690: https://foss.heptapod.net/pypy/pypy/-/issues/3690
153 .. _3693: https://foss.heptapod.net/pypy/pypy/-/issues/3693
154 .. _3696: https://foss.heptapod.net/pypy/pypy/-/issues/3696
155 .. _3703: https://foss.heptapod.net/pypy/pypy/-/issues/3703
156 .. _3714: https://foss.heptapod.net/pypy/pypy/-/issues/3714
157 .. _3649: https://foss.heptapod.net/pypy/pypy/-/issues/3649
158 .. _3706: https://foss.heptapod.net/pypy/pypy/-/issues/3706
159 .. _bpo35545: https://bugs.python.org/issue35545
160 .. _errcheck: https://docs.python.org/3/library/ctypes.html#ctypes._FuncPtr.errcheck
161 .. _`speed regression`: https://foss.heptapod.net/pypy/pypy/-/issues/3649
162 .. _PEP 3123: https://peps.python.org/pep-3123/