Debian Codegraph @

pypy/doc/release-v7.3.14.rst

raw
1 =======================================================================
2 PyPy v7.3.14: release of python 2.7, 3.9, and 3.10, released 2023-12-25
3 =======================================================================
4
5 The PyPy team is proud to release version 7.3.14 of PyPy.
6
7 Highlights of this release are compatibility with HPy-0.9_, cffi 1.16,
8 additional C-API interfaces, and more python3.10 fixes.
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.13 release on Sept 29, 2023.
25
26 We recommend updating. You can find links to download the v7.3.14 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. Since the last release we have contributions from three new
38 contributors. PyPy has many layers and we need help with all of them: bug
39 fixes, `PyPy`_ and `RPython`_ documentation improvements, or general `help`_
40 with making RPython's JIT even better.
41
42 If you are a python library maintainer and use C-extensions, please consider
43 making a HPy_ / CFFI_ / cppyy_ version of your library that would be performant
44 on PyPy. In any case, both `cibuildwheel`_ and the `multibuild system`_ support
45 building wheels for PyPy.
46
47 .. _`PyPy`: index.html
48 .. _`RPython`: https://rpython.readthedocs.org
49 .. _`help`: project-ideas.html
50 .. _CFFI: https://cffi.readthedocs.io
51 .. _cppyy: https://cppyy.readthedocs.io
52 .. _HPy-0.9: https://hpyproject.org/blog/posts/2023/10/hpy-0.9.0-fourth-public-release/
53 .. _`multibuild system`: https://github.com/matthew-brett/multibuild
54 .. _`cibuildwheel`: https://github.com/joerick/cibuildwheel
55 .. _blog: https://pypy.org/blog
56 .. _HPy: https://hpyproject.org/
57 .. _was sponsored: https://www.pypy.org/posts/2022/07/m1-support-for-pypy.html
58 .. _direct consulting: https://www.pypy.org/pypy-sponsors.html
59 .. _has built: https://www.pypy.org/posts/2022/11/pypy-and-conda-forge.html
60
61 What is PyPy?
62 =============
63
64 PyPy is a Python interpreter, a drop-in replacement for CPython
65 It's fast (`PyPy and CPython 3.7.4`_ performance
66 comparison) due to its integrated tracing JIT compiler.
67
68 We also welcome developers of other `dynamic languages`_ to see what RPython
69 can do for them.
70
71 We provide binary builds for:
72
73 * **x86** machines on most common operating systems
74 (Linux 32/64 bits, Mac OS 64 bits, Windows 64 bits)
75
76 * 64-bit **ARM** machines running Linux (``aarch64``).
77
78 * Apple **M1 arm64** machines (``macos_arm64``).
79
80 * **s390x** running Linux
81
82 PyPy support Windows 32-bit, Linux PPC64 big- and little-endian, and Linux ARM
83 32 bit, but does not release binaries. Please reach out to us if you wish to
84 sponsor binary releases for those platforms. Downstream packagers provide
85 binary builds for debian, Fedora, conda, OpenBSD, FreeBSD, Gentoo, and more.
86
87 .. _`PyPy and CPython 3.7.4`: https://speed.pypy.org
88 .. _`dynamic languages`: https://rpython.readthedocs.io/en/latest/examples.html
89
90 Changelog
91 =========
92
93 For all versions
94 ----------------
95 - Use OpenSSL 3.0.12 when embedding libraries for a portable build
96 - Add a part of CFFI 1.17. When in ABI mode, you can now use ``lib.funcname`` in
97 many places where a ``<cdata>`` object was required. For instance, it can be
98 used in a callback to a C function call, or written to a C structure field of
99 the correct pointer-to-function type. You can also use ``ffi.cast()`` or
100 `ffi.typeof()`` on it.
101 - Convert all usages of ``stat64`` to ``stat``, which fixes compilation on
102 ``>=musl-1.2.4 libc`` (:issue:`4047`)
103
104 Bugfixes
105 ~~~~~~~~
106 - Fix constfolding of ``str()`` without arguments (used to crash)
107 (:issue:`4017`)
108 - Windows: remove wrong c-level define, use standard ``include`` instead
109 (:issue:`4023`)
110 - Fix universal newline but non-translating ``text-io``: in this mode, two
111 ``\r`` at the end of the file were combined into a single line by
112 ``.readline()`` (:issue:`4037`)
113 - Fix segfault when JITting code which skips short preamble setup (:issue:`4030`)
114 - Align memoryview use of ``PyBUF_MAX_NDIM`` with python3 (:issue:`4040`)
115
116 Speedups and enhancements
117 ~~~~~~~~~~~~~~~~~~~~~~~~~
118
119 - Fixes for compilation with gcc 14 and clang which enforce more strict C
120 behaviour (:issue:`4041`)
121 - Avoid calling ``codepoints_in_utf8`` on the original input string again and
122 again (:issue:`4027`)
123
124 Python 3.9+
125 -----------
126
127 - Improve ``os.scandir()`` handling of symlinks on Windows
128 - Remove extraneous debug print from ``_ssl`` (:issue:`4009`)
129 - Update cffi backend to 1.16.0, add HPy backend to 0.9
130 - When creating a venv from a symlinked venv, force symlinks. Portable builds
131 need too many shared objects to allow copying only the executables
132 - Refactor calling finalizers in cpyext to make sure they are called
133
134 Bugfixes
135 ~~~~~~~~
136 - If object does not have ``__len__``, default to ``pyobj.itemcount=0``
137 (:issue:`4012`)
138 - Fix ``small_int.__rpow__(large_int)`` (:issue:`4015`)
139 - Make ``mmap.mmap.__setitem__`` accept a buffer (:issue:`4006`)
140 - In cpyext, when re-assigning to ``type.__bases__``, rebuild the type
141 struct (:issue:`3975`)
142 - Remove newline in line read from ``PYPY_PORTABLE_DEPS.txt`` (:issue:`4018`)
143 - Fix astcompiler bug where sometimes a return with a value wasn't being
144 caught inside an async generator (:issue:`4022`)
145 - Start implementing the ``ag_running`` logic of asynchronous generators
146 (:issue:`3995`)
147 - Handle ``pathlib.path`` in ``PyUnicode_FSDecoder``, ``PyUnicode_FSDecoder``
148 (:issue:`3168`)
149 - Raise ``OSError`` in ``gmtime`` like in ``localtime``
150 - Make the construction arguments of builtin types more introspectable
151 (:issue:`4033`)
152 - Make sure an encoding in ``str.decode(encoding=xxx)`` does not have invalid
153 surrogates
154
155 Speedups and enhancements
156 ~~~~~~~~~~~~~~~~~~~~~~~~~
157
158 - Follow upstream performance patch for datetime.py (:issue:`4007`)
159 - Add ``os.getppid``, ``os.getlogin`` on windows (:issue:`4024`)
160 - Proactively call ``bufferview.releasebuffer`` when exiting a context manager
161 and don't wait for ``gc`` to release it.
162 - Always initialize threads at startup, like in ``Py_Initialize`` for Cpython3.9
163 - Add a ``NULL`` byte to ``bytearray`` data, like CPython. (:issue:`4029`)
164 - Add ``hidden_applevel`` to ``_contextvars.Context.run``. Discovered in django
165 PR 17500 to revive PyPy support in django
166 - Add window API functions ``PyErr_SetFromWindowsErrWithFilename``,
167 ``PyErr_SetExcFromWindowsErrWithFilenameObject``,
168 ``PyErr_SetExcFromWindowsErrWithFilenameObjects`` (:issue:`4034`)
169
170 Python 3.10
171 -----------
172
173 Bugfixes
174 ~~~~~~~~
175 - ``LIST_EXTEND`` bytecode should just let all exceptions through if the second
176 argument is iterable (:issue:`4031`)
177 - Pattern matching classes now use the full ``isinstance`` machinery, calling
178 ``__instancecheck__`` too. (:issue:`4035`)
179
180 .. _bpo-41832: https://bugs.python.org/issue41832
181