| 1 |
====================================================== |
| 2 |
PyPy v7.0.0: triple release of 2.7, 3.5 and 3.6-alpha |
| 3 |
====================================================== |
| 4 |
|
| 5 |
The PyPy team is proud to release the version 7.0.0 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 |
| 10 |
|
| 11 |
- PyPy3.5, which supports Python 3.5 |
| 12 |
|
| 13 |
- PyPy3.6-alpha: this is the first official release of PyPy to support 3.6 |
| 14 |
features, although it is still considered alpha quality. |
| 15 |
|
| 16 |
All the interpreters are based on much the same codebase, thus the triple |
| 17 |
release. |
| 18 |
|
| 19 |
Until we can work with downstream providers to distribute builds with PyPy, we |
| 20 |
have made packages for some common packages `available as wheels`_. |
| 21 |
|
| 22 |
The `GC hooks`_ , which can be used to gain more insights into its |
| 23 |
performance, has been improved and it is now possible to manually manage the |
| 24 |
GC by using a combination of ``gc.disable`` and ``gc.collect_step``. See the |
| 25 |
`GC blog post`_. |
| 26 |
|
| 27 |
.. _`GC hooks`: https://doc.pypy.org/gc_info.html#semi-manual-gc-management |
| 28 |
|
| 29 |
We updated the `cffi`_ module included in PyPy to version 1.12, and the |
| 30 |
`cppyy`_ backend to 1.4. Please use these to wrap your C and C++ code, |
| 31 |
respectively, for a JIT friendly experience. |
| 32 |
|
| 33 |
As always, this release is 100% compatible with the previous one and fixed |
| 34 |
several issues and bugs raised by the growing community of PyPy users. |
| 35 |
We strongly recommend updating. |
| 36 |
|
| 37 |
The PyPy3.6 release and the Windows PyPy3.5 release are still not production |
| 38 |
quality so your mileage may vary. There are open issues with incomplete |
| 39 |
compatibility and c-extension support. |
| 40 |
|
| 41 |
The utf8 branch that changes internal representation of unicode to utf8 did not |
| 42 |
make it into the release, so there is still more goodness coming. |
| 43 |
You can download the v7.0 releases here: |
| 44 |
|
| 45 |
https://pypy.org/download.html |
| 46 |
|
| 47 |
We would like to thank our donors for the continued support of the PyPy |
| 48 |
project. If PyPy is not quite good enough for your needs, we are available for |
| 49 |
direct consulting work. |
| 50 |
|
| 51 |
We would also like to thank our contributors and encourage new people to join |
| 52 |
the project. PyPy has many layers and we need help with all of them: `PyPy`_ |
| 53 |
and `RPython`_ documentation improvements, tweaking popular modules to run |
| 54 |
on pypy, or general `help`_ with making RPython's JIT even better. |
| 55 |
|
| 56 |
.. _`PyPy`: index.html |
| 57 |
.. _`RPython`: https://rpython.readthedocs.org |
| 58 |
.. _`help`: project-ideas.html |
| 59 |
.. _`cffi`: https://cffi.readthedocs.io |
| 60 |
.. _`cppyy`: https://cppyy.readthedocs.io |
| 61 |
.. _`available as wheels`: https://github.com/antocuni/pypy-wheels |
| 62 |
.. _`GC blog post`: https://morepypy.blogspot.com/2019/01/pypy-for-low-latency-systems.html |
| 63 |
|
| 64 |
|
| 65 |
What is PyPy? |
| 66 |
============= |
| 67 |
|
| 68 |
PyPy is a very compliant Python interpreter, almost a drop-in replacement for |
| 69 |
CPython 2.7, 3.5 and 3.6. It's fast (`PyPy and CPython 2.7.x`_ performance |
| 70 |
comparison) due to its integrated tracing JIT compiler. |
| 71 |
|
| 72 |
We also welcome developers of other `dynamic languages`_ to see what RPython |
| 73 |
can do for them. |
| 74 |
|
| 75 |
The PyPy release supports: |
| 76 |
|
| 77 |
* **x86** machines on most common operating systems |
| 78 |
(Linux 32/64 bits, Mac OS X 64 bits, Windows 32 bits, OpenBSD, FreeBSD) |
| 79 |
|
| 80 |
* big- and little-endian variants of **PPC64** running Linux, |
| 81 |
|
| 82 |
* **s390x** running Linux |
| 83 |
|
| 84 |
Unfortunately at the moment of writing our ARM buildbots are out of service, |
| 85 |
so for now we are **not** releasing any binary for the ARM architecture. |
| 86 |
|
| 87 |
.. _`PyPy and CPython 2.7.x`: https://speed.pypy.org |
| 88 |
.. _`dynamic languages`: https://rpython.readthedocs.io/en/latest/examples.html |
| 89 |
|
| 90 |
|
| 91 |
Changelog |
| 92 |
========= |
| 93 |
|
| 94 |
If not specified, the changes are shared across versions |
| 95 |
|
| 96 |
* Support ``__set_name__``, ``__init_subclass__`` (Py3.6) |
| 97 |
* Support ``cppyy`` in Py3.5 and Py3.6 |
| 98 |
* Use implementation-specific site directories in ``sysconfig`` (Py3.5, Py3.6) |
| 99 |
* Adding detection of gcc to ``sysconfig`` (Py3.5, Py3.6) |
| 100 |
* Fix multiprocessing regression on newer glibcs |
| 101 |
* Make sure 'blocking-ness' of socket is set along with default timeout |
| 102 |
* Include ``crypt.h`` for ``crypt()`` on Linux |
| 103 |
* Improve and re-organize the contributing_ documentation |
| 104 |
* Make the ``__module__`` attribute writable, fixing an incompatibility with |
| 105 |
NumPy 1.16 |
| 106 |
* Implement ``Py_ReprEnter``, ``Py_ReprLeave(), ``PyMarshal_ReadObjectFromString``, |
| 107 |
``PyMarshal_WriteObjectToString``, ``PyObject_DelItemString``, |
| 108 |
``PyMapping_DelItem``, ``PyMapping_DelItemString``, ``PyEval_GetFrame``, |
| 109 |
``PyOS_InputHook``, ``PyErr_FormatFromCause`` (Py3.6), |
| 110 |
* Implement new wordcode instruction encoding (Py3.6) |
| 111 |
* Log additional gc-minor and gc-collect-step info in the PYPYLOG |
| 112 |
* The ``reverse-debugger`` (revdb) branch has been merged to the default |
| 113 |
branch, so it should always be up-to-date. You still need a special pypy |
| 114 |
build, but you can compile it from the same source as the one we distribute |
| 115 |
for the v7.0.0 release. For more information, see |
| 116 |
https://bitbucket.org/pypy/revdb |
| 117 |
* Support underscores in numerical literals like ``'4_2'`` (Py3.6) |
| 118 |
* Preemptively raise MemoryError if the size of dequeue in ``_collections.deque`` |
| 119 |
is too large (Py3.5) |
| 120 |
* Fix multithreading issues in calls to ``os.setenv`` |
| 121 |
* Add missing defines and typedefs for numpy and pandas on MSVC |
| 122 |
* Add CPython macros like ``Py_NAN`` to header files |
| 123 |
* Rename the ``MethodType`` to ``instancemethod``, like CPython |
| 124 |
* Better support for `async with` in generators (Py3.5, Py3.6) |
| 125 |
* Improve the performance of ``pow(a, b, c)`` if ``c`` is a large integer |
| 126 |
* Now ``vmprof`` works on FreeBSD |
| 127 |
* Support GNU Hurd, fixes for FreeBSD |
| 128 |
* Add deprecation warning if type of result of ``__float__`` is float inherited |
| 129 |
class (Py3.6) |
| 130 |
* Fix async generator bug when yielding a ``StopIteration`` (Py3.6) |
| 131 |
* Speed up ``max(list-of-int)`` from non-jitted code |
| 132 |
* Fix Windows ``os.listdir()`` for some cases (see CPython #32539) |
| 133 |
* Add ``select.PIPE_BUF`` |
| 134 |
* Use ``subprocess`` to avoid shell injection in ``shutil`` module - backport |
| 135 |
of https://bugs.python.org/issue34540 |
| 136 |
* Rename ``_Py_ZeroStruct`` to ``_Py_FalseStruct`` (Py3.5, Py3.6) |
| 137 |
* Remove some cpyext names for Py3.5, Py3.6 |
| 138 |
* Enable use of unicode file names in ``dlopen`` |
| 139 |
* Backport CPython fix for ``thread.RLock`` |
| 140 |
* Make GC hooks measure time in seconds (as opposed to an opaque unit) |
| 141 |
* Refactor and reorganize tests in ``test_lib_pypy`` |
| 142 |
* Check error values in ``socket.setblocking`` (Py3.6) |
| 143 |
* Add support for FsPath to os.unlink() (Py3.6) |
| 144 |
* Fix freezing builtin modules at translation |
| 145 |
* Tweak ``W_UnicodeDictionaryStrategy`` which speeds up dictionaries with only |
| 146 |
unicode keys |
| 147 |
|
| 148 |
We also refactored many parts of the JIT bridge optimizations, as well as cpyext |
| 149 |
internals, and together with new contributors fixed issues, added new |
| 150 |
documentation, and cleaned up the codebase. |
| 151 |
|
| 152 |
.. _contributing: https://doc.pypy.org/contributing.html |