File: release-v7.0.0.rst

package info (click to toggle)
pypy3 7.0.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 111,848 kB
  • sloc: python: 1,291,746; ansic: 74,281; asm: 5,187; cpp: 3,017; sh: 2,533; makefile: 544; xml: 243; lisp: 45; csh: 21; awk: 4
file content (151 lines) | stat: -rw-r--r-- 6,716 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
======================================================
PyPy v7.0.0: triple release of 2.7, 3.5 and 3.6-alpha
======================================================

The PyPy team is proud to release the version 7.0.0 of PyPy, which includes
three different interpreters:

  - PyPy2.7, which is an interpreter supporting the syntax and the features of
    Python 2.7

  - PyPy3.5, which supports Python 3.5

  - PyPy3.6-alpha: this is the first official release of PyPy to support 3.6
    features, although it is still considered alpha quality.
    
All the interpreters are based on much the same codebase, thus the triple
release.

Until we can work with downstream providers to distribute builds with PyPy, we
have made packages for some common packages `available as wheels`_.

The GC `hooks`_ , which can be used to gain more insights into its
performance, has been improved and it is now possible to manually manage the
GC by using a combination of ``gc.disable`` and ``gc.collect_step``. See the
`GC blog post`_.


We updated the `cffi`_ module included in PyPy to version 1.12, and the
`cppyy`_ backend to 1.4. Please use these to wrap your C and C++ code,
respectively, for a JIT friendly experience.

As always, this release is 100% compatible with the previous one and fixed
several issues and bugs raised by the growing community of PyPy users.
We strongly recommend updating.

The PyPy3.6 release and the Windows PyPy3.5 release are still not production
quality so your mileage may vary. There are open issues with incomplete
compatibility and c-extension support.

The utf8 branch that changes internal representation of unicode to utf8 did not
make it into the release, so there is still more goodness coming.
You can download the v6.0 releases here:

    http://pypy.org/download.html

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.

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: `PyPy`_
and `RPython`_ documentation improvements, tweaking popular `modules`_ to run
on pypy, or general `help`_ with making RPython's JIT even better.

.. _`PyPy`: index.html
.. _`RPython`: https://rpython.readthedocs.org
.. _`help`: project-ideas.html
.. _`cffi`: http://cffi.readthedocs.io
.. _`cppyy`: https://cppyy.readthedocs.io
.. _`available as wheels`: https://github.com/antocuni/pypy-wheels
.. _`GC blog post`: https://morepypy.blogspot.com/2019/01/pypy-for-low-latency-systems.html


What is PyPy?
=============

PyPy is a very compliant Python interpreter, almost a drop-in replacement for
CPython 2.7, 3.5 and 3.6. It's fast (`PyPy and CPython 2.7.x`_ 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.

The PyPy release supports:

  * **x86** machines on most common operating systems
    (Linux 32/64 bits, Mac OS X 64 bits, Windows 32 bits, OpenBSD, FreeBSD)

  * big- and little-endian variants of **PPC64** running Linux,

  * **s390x** running Linux

Unfortunately at the moment of writing our ARM buildbots are out of service,
so for now we are **not** releasing any binary for the ARM architecture.

.. _`PyPy and CPython 2.7.x`: http://speed.pypy.org
.. _`dynamic languages`: http://rpython.readthedocs.io/en/latest/examples.html


Changelog
=========

If not specified, the changes are shared across versions

* Support ``__set_name__``, ``__init_subclass__`` (Py3.6)
* Support ``cppyy`` in Py3.5 and Py3.6
* Use implementation-specific site directories in ``sysconfig`` (Py3.5, Py3.6)
* Adding detection of gcc to ``sysconfig`` (Py3.5, Py3.6)
* Fix multiprocessing regression on newer glibcs
* Make sure 'blocking-ness' of socket is set along with default timeout
* Include ``crypt.h`` for ``crypt()`` on Linux
* Improve and re-organize the contributing_ documentation
* Make the ``__module__`` attribute writable, fixing an incompatibility with
  NumPy 1.16
* Implement ``Py_ReprEnter``, ``Py_ReprLeave(), ``PyMarshal_ReadObjectFromString``,
  ``PyMarshal_WriteObjectToString``, ``PyObject_DelItemString``,
  ``PyMapping_DelItem``, ``PyMapping_DelItemString``, ``PyEval_GetFrame``,
  ``PyOS_InputHook``, ``PyErr_FormatFromCause`` (Py3.6),
* Implement new wordcode instruction encoding (Py3.6)
* Log additional gc-minor and gc-collect-step info in the PYPYLOG
* The ``reverse-debugger`` (revdb) branch has been merged to the default
  branch, so it should always be up-to-date.  You still need a special pypy
  build, but you can compile it from the same source as the one we distribute
  for the v7.0.0 release.  For more information, see
  https://bitbucket.org/pypy/revdb
* Support underscores in numerical literals like ``'4_2'`` (Py3.6)
* Pre-emptively raise MemoryError if the size of dequeue in ``_collections.deque``
  is too large (Py3.5)
* Fix multithreading issues in calls to ``os.setenv``
* Add missing defines and typedefs for numpy and pandas on MSVC
* Add CPython macros like ``Py_NAN`` to header files
* Rename the ``MethodType`` to ``instancemethod``, like CPython
* Better support for `async with` in generators (Py3.5, Py3.6)
* Improve the performance of ``pow(a, b, c)`` if ``c`` is a large integer
* Now ``vmprof`` works on FreeBSD
* Support GNU Hurd, fixes for FreeBSD
* Add deprecation warning if type of result of ``__float__`` is float inherited
  class (Py3.6)
* Fix async generator bug when yielding a ``StopIteration`` (Py3.6)
* Speed up ``max(list-of-int)`` from non-jitted code
* Fix Windows ``os.listdir()`` for some cases (see CPython #32539)
* Add ``select.PIPE_BUF``
* Use ``subprocess`` to avoid shell injection in ``shutil`` module - backport
  of https://bugs.python.org/issue34540
* Rename ``_Py_ZeroStruct`` to ``_Py_FalseStruct`` (Py3.5, Py3.6)
* Remove some cpyext names for Py3.5, Py3.6
* Enable use of unicode file names in ``dlopen``
* Backport CPython fix for ``thread.RLock``
* Make GC hooks measure time in seconds (as opposed to an opaque unit)
* Refactor and reorganize tests in ``test_lib_pypy``
* Check error values in ``socket.setblocking`` (Py3.6)
* Add support for FsPath to os.unlink() (Py3.6)
* Fix freezing builtin modules at translation
* Tweak ``W_UnicodeDictionaryStrategy`` which speeds up dictionaries with only
  unicode keys

We also refactored many parts of the JIT bridge optimizations, as well as cpyext
internals, and together with new contributors fixed issues, added new
documentation, and cleaned up the codebase.

.. _contributing: http://doc.pypy.org/en/latest/contributing.html