Debian Codegraph @

pypy/doc/release-v7.3.3.rst

raw
1 ===================================================================
2 PyPy v7.3.3: release of 2.7, 3.6, and 3.7 beta, released 2020-11-21
3 ===================================================================
4
5 -The PyPy team is proud to release the version 7.3.3 of PyPy, which includes
6 three different interpreters:
7
8 - PyPy2.7, which is an interpreter supporting the syntax and the features of
9 Python 2.7 including the stdlib for CPython 2.7.18 (updated from the
10 previous version)
11
12 - PyPy3.6: which is an interpreter supporting the syntax and the features of
13 Python 3.6, including the stdlib for CPython 3.6.12 (updated from the
14 previous version).
15
16 - PyPy3.7 beta: which is our second release of an interpreter supporting the
17 syntax and the features of Python 3.7, including the stdlib for CPython
18 3.7.9. We call this beta quality software, there may be issues about
19 compatibility with new and changed features in CPython 3.7.
20 Please let us know what is broken or missing. We have not implemented the
21 `documented changes`_ in the ``re`` module, and a few other pieces are also
22 missing. For more information, see the `PyPy 3.7 wiki`_ page
23
24 The interpreters are based on much the same codebase, thus the multiple
25 release. This is a micro release, all APIs are compatible with the 7.3
26 releases, but read on to find out what is new.
27
28 ..
29 The major new feature is prelminary support for the Universal mode of HPy: a
30 new way of writing c-extension modules to totally encapsulate the `PyObject*`.
31 The goal, as laid out in the `HPy blog post`_, is to enable a migration path
32 for c-extension authors who wish their code to be performant on alternative
33 interpreters like GraalPython_ (written on top of the Java virtual machine),
34 RustPython_, and PyPy. Thanks to Oracle for sponsoring work on HPy.
35
36 Several issues exposed in the 7.3.2 release were fixed. Many of them came from the
37 great work ongoing to ship PyPy-compatible binary packages in `conda-forge`_.
38 A big shout out to them for taking this on.
39
40 Development of PyPy has moved to https://foss.heptapod.net/pypy/pypy.
41 This was covered more extensively in this `blog post`_. We have seen an
42 increase in the number of drive-by contributors who are able to use gitlab +
43 mercurial to create merge requests.
44
45 The `CFFI`_ backend has been updated to version 1.14.3. We recommend using CFFI
46 rather than c-extensions to interact with C, and using cppyy_ for performant
47 wrapping of C++ code for Python.
48
49 A new contributor took us up on the challenge to get `windows 64-bit`_ support.
50 The work is proceeding on the ``win64`` branch, more help in coding or
51 sponsorship is welcome. In anticipation of merging this large change, we fixed
52 many test failures on windows.
53
54 As always, this release fixed several issues and bugs. We strongly recommend
55 updating. Many of the fixes are the direct result of end-user bug reports, so
56 please continue reporting issues as they crop up.
57
58 You can find links to download the v7.3.3 releases here:
59
60 https://pypy.org/download.html
61
62 We would like to thank our donors for the continued support of the PyPy
63 project. If PyPy is not quite good enough for your needs, we are available for
64 direct consulting work.
65
66 We would also like to thank our contributors and encourage new people to join
67 the project. PyPy has many layers and we need help with all of them: `PyPy`_
68 and `RPython`_ documentation improvements, tweaking popular modules to run
69 on pypy, or general `help`_ with making RPython's JIT even better. Since the
70 previous release, we have accepted contributions from 2 new contributors,
71 thanks for pitching in.
72
73 If you are a python library maintainer and use c-extensions, please consider
74 making a cffi / cppyy version of your library that would be performant on PyPy.
75 In any case both `cibuildwheel`_ and the `multibuild system`_ support
76 building wheels for PyPy.
77
78 .. _`PyPy`: index.html
79 .. _`RPython`: https://rpython.readthedocs.org
80 .. _`help`: project-ideas.html
81 .. _`CFFI`: https://cffi.readthedocs.io
82 .. _`cppyy`: https://cppyy.readthedocs.io
83 .. _`multibuild system`: https://github.com/matthew-brett/multibuild
84 .. _`cibuildwheel`: https://github.com/joerick/cibuildwheel
85 .. _`blog post`: https://morepypy.blogspot.com/2020/02/pypy-and-cffi-have-moved-to-heptapod.html
86 .. _`conda-forge`: https://conda-forge.org/blog//2020/03/10/pypy
87 .. _`documented changes`: https://docs.python.org/3/whatsnew/3.7.html#re
88 .. _`PyPy 3.7 wiki`: https://foss.heptapod.net/pypy/pypy/-/wikis/py3.7%20status
89 .. _`wheels on PyPI`: https://pypi.org/project/numpy/#files
90 .. _`windows 64-bit`: https://foss.heptapod.net/pypy/pypy/-/issues/2073#note_141389
91 .. _`HPy blog post`: https://morepypy.blogspot.com/2019/12/hpy-kick-off-sprint-report.html
92 .. _`GraalPython`: https://github.com/graalvm/graalpython
93 .. _`RustPython`: https://github.com/RustPython/RustPython
94
95
96 What is PyPy?
97 =============
98
99 PyPy is a Python interpreter, a drop-in replacement for CPython 2.7, 3.6, and
100 3.7. It's fast (`PyPy and CPython 3.7.4`_ performance
101 comparison) due to its integrated tracing JIT compiler.
102
103 We also welcome developers of other `dynamic languages`_ to see what RPython
104 can do for them.
105
106 This PyPy release supports:
107
108 * **x86** machines on most common operating systems
109 (Linux 32/64 bits, Mac OS X 64 bits, Windows 32 bits, OpenBSD, FreeBSD)
110
111 * big- and little-endian variants of **PPC64** running Linux,
112
113 * **s390x** running Linux
114
115 * 64-bit **ARM** machines running Linux.
116
117 PyPy does support ARM 32 bit processors, but does not release binaries.
118
119 .. _`PyPy and CPython 3.7.4`: https://speed.pypy.org
120 .. _`dynamic languages`: https://rpython.readthedocs.io/en/latest/examples.html
121
122 Changelog
123 =========
124
125 Changes shared across versions
126 ------------------------------
127 - Better support macOSx <= 10.13
128 - Use ``MACOSX_DEPLOYMENT_TARGET`` from environment, if set, when translating
129 - Update stdlib to 2.7.18
130 - Add limited support for ``long double`` to RPython (issue 3312_)
131 - Package a ``.hg_archival.txt`` in the source tarball. The file was left out
132 of the source tarball after the move to heptapod (issue 3315_)
133 - Fix a race condition in ``crypt``
134 - Update expired certificates used in python testing
135 - Always use NT ``sysconfig`` scheme on windows (issue 3321_)
136 - Delay importing ``os`` and ``_codecs`` until after importing ``site``
137 - `bpo-35194`_: Fix a wrong constant in cp932 codec
138 - `bpo-34794`_: Fix a leak in Tkinter
139 - `bpo-33781`_: ``audioop``: enhance rounding double as int
140 - `bpo-31893`_: Simplify ``select.kqueue`` object comparison
141
142 C-API (cpyext) and c-extensions
143 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
144 - Check for ``None`` in ``PyLong_AsUnsignedLongLong``
145 - Dynamically allocate ``Py_buffer.format`` if needed (issue 3336_)
146 - Fix for readonly flag on PyObject_GetBuffer(<bytes>, view) (issue 3307_)
147
148 Python 3.6+
149 -----------
150 - Fix windows support for using ``venv`` inside a ``venv``
151 - Support ``os.sendfile`` on BSD derivatives (macOSx and freebsd)
152 - Fix ``_socket.sethostname(<bytes>)``
153 - Fix for modifying ``self.__dict__`` in ``self.__set_name__``, issue 3326_
154 - bpo-33041_: Fixed jumping if the function contains an ``async for`` loop.
155 - bpo-17288_: Prevent jump from a yield statement
156 - bpo-11471_: avoid generating a ``JUMP_FORWARD`` instruction at the end of an
157 ``if``-block if there is no ``else``-clause
158 - Fix ``os.listdir('')`` and ``os.stat('')`` on windows (issue 3331_)
159 - Fix many unicode encoding/decoding errors on windows
160 - Fix pickling of time subclasses (issue 3324_, bpo-41966_)
161 - Add support for ``sqlite3_load_extension`` (issue 3334_)
162 - Change default file encoding from mbcs to utf-8 on windows
163 - Change default file encoding from ascii to utf-8 on linux
164 - Add ``resource.prlimit()``
165 - Accept PathLike in ``nt._getfullpathname`` (issue 3343_)
166 - Fix some problems with ``winreg``
167
168
169 Python 3.6 C-API
170 ~~~~~~~~~~~~~~~~
171
172 - Export ``PyStructSequence_NewType`` (issue 3346_)
173
174 .. _3312: https://foss.heptapod.net/pypy/pypy/-/issues/3312
175 .. _3315: https://foss.heptapod.net/pypy/pypy/-/issues/3315
176 .. _3321: https://foss.heptapod.net/pypy/pypy/-/issues/3321
177 .. _3326: https://foss.heptapod.net/pypy/pypy/-/issues/3326
178 .. _3331: https://foss.heptapod.net/pypy/pypy/-/issues/3331
179 .. _3324: https://foss.heptapod.net/pypy/pypy/-/issues/3324
180 .. _3334: https://foss.heptapod.net/pypy/pypy/-/issues/3334
181 .. _3336: https://foss.heptapod.net/pypy/pypy/-/issues/3336
182 .. _3307: https://foss.heptapod.net/pypy/pypy/-/issues/3307
183 .. _3343: https://foss.heptapod.net/pypy/pypy/-/issues/3343
184 .. _3346: https://foss.heptapod.net/pypy/pypy/-/issues/3346
185
186 .. _`merge request 723`: https://foss.heptapod.net/pypy/pypy/-/merge_request/723
187
188 .. _bpo-35194: https://bugs.python.org/issue35194
189 .. _bpo-34794: https://bugs.python.org/issue34794
190 .. _bpo-33781: https://bugs.python.org/issue33781
191 .. _bpo-31893: https://bugs.python.org/issue31893
192 .. _bpo-33041: https://bugs.python.org/issue33041
193 .. _bpo-17288: https://bugs.python.org/issue17288
194 .. _bpo-11471: https://bugs.python.org/issue11471
195 .. _bpo-41966: https://bugs.python.org/issue41966