| 1 |
===================================================== |
| 2 |
PyPy v7.1.0: release of 2.7, and 3.6-beta, 2019-03-24 |
| 3 |
===================================================== |
| 4 |
|
| 5 |
The PyPy team is proud to release the version 7.1.0 of PyPy, which includes |
| 6 |
two different interpreters: |
| 7 |
|
| 8 |
- PyPy2.7, which is an interpreter supporting the syntax and the features of |
| 9 |
Python 2.7 |
| 10 |
|
| 11 |
- PyPy3.6-beta: this is the second official release of PyPy to support 3.6 |
| 12 |
features, although it is still considered beta quality. |
| 13 |
|
| 14 |
The interpreters are based on much the same codebase, thus the double |
| 15 |
release. |
| 16 |
|
| 17 |
This release, coming fast on the heels of 7.0 in February, finally merges the |
| 18 |
internal refactoring of unicode representation as UTF-8. Removing the |
| 19 |
conversions from strings to unicode internally lead to a nice speed bump. |
| 20 |
|
| 21 |
We also improved the ability to use the buffer protocol with ctype structures |
| 22 |
and arrays. |
| 23 |
|
| 24 |
Until we can work with downstream providers to distribute builds with PyPy, we |
| 25 |
have made packages for some common packages `available as wheels`_. |
| 26 |
|
| 27 |
The `CFFI`_ backend has been updated to version 1.12.2. We recommend using CFFI |
| 28 |
rather than c-extensions to interact with C, and `cppyy`_ for interacting with |
| 29 |
C++ code. |
| 30 |
|
| 31 |
As always, this release is 100% compatible with the previous one and fixed |
| 32 |
several issues and bugs raised by the growing community of PyPy users. |
| 33 |
We strongly recommend updating. |
| 34 |
|
| 35 |
The PyPy3.6 release is still not production quality so your mileage may vary. |
| 36 |
There are open issues with incomplete compatibility and c-extension support. |
| 37 |
|
| 38 |
You can download the v7.1 releases here: |
| 39 |
|
| 40 |
https://pypy.org/download.html |
| 41 |
|
| 42 |
We would like to thank our donors for the continued support of the PyPy |
| 43 |
project. If PyPy is not quite good enough for your needs, we are available for |
| 44 |
direct consulting work. |
| 45 |
|
| 46 |
We would also like to thank our contributors and encourage new people to join |
| 47 |
the project. PyPy has many layers and we need help with all of them: `PyPy`_ |
| 48 |
and `RPython`_ documentation improvements, tweaking popular modules to run |
| 49 |
on pypy, or general `help`_ with making RPython's JIT even better. |
| 50 |
|
| 51 |
.. _`PyPy`: index.html |
| 52 |
.. _`RPython`: https://rpython.readthedocs.org |
| 53 |
.. _`help`: project-ideas.html |
| 54 |
.. _`CFFI`: https://cffi.readthedocs.io |
| 55 |
.. _`cppyy`: https://cppyy.readthedocs.io |
| 56 |
.. _`available as wheels`: https://github.com/antocuni/pypy-wheels |
| 57 |
|
| 58 |
What is PyPy? |
| 59 |
============= |
| 60 |
|
| 61 |
PyPy is a very compliant Python interpreter, almost a drop-in replacement for |
| 62 |
CPython 2.7, 3.6. It's fast (`PyPy and CPython 2.7.x`_ performance |
| 63 |
comparison) due to its integrated tracing JIT compiler. |
| 64 |
|
| 65 |
We also welcome developers of other `dynamic languages`_ to see what RPython |
| 66 |
can do for them. |
| 67 |
|
| 68 |
This PyPy release supports: |
| 69 |
|
| 70 |
* **x86** machines on most common operating systems |
| 71 |
(Linux 32/64 bits, Mac OS X 64 bits, Windows 32 bits, OpenBSD, FreeBSD) |
| 72 |
|
| 73 |
* big- and little-endian variants of **PPC64** running Linux, |
| 74 |
|
| 75 |
* **s390x** running Linux |
| 76 |
|
| 77 |
Unfortunately at the moment of writing our ARM buildbots are out of service, |
| 78 |
so for now we are **not** releasing any binary for the ARM architecture, |
| 79 |
although PyPy does support ARM 32 bit processors. |
| 80 |
|
| 81 |
.. _`PyPy and CPython 2.7.x`: https://speed.pypy.org |
| 82 |
.. _`dynamic languages`: https://rpython.readthedocs.io/en/latest/examples.html |
| 83 |
|
| 84 |
|
| 85 |
Changelog |
| 86 |
========= |
| 87 |
|
| 88 |
Changes shared across versions |
| 89 |
|
| 90 |
* Use utf8 internally to represent unicode, with the goal of never using |
| 91 |
rpython-level unicode |
| 92 |
* Update ``cffi`` to 1.12.2 |
| 93 |
* Improve performance of ``long`` operations where one of the operands fits |
| 94 |
into an ``int`` |
| 95 |
* Since _ctypes is implemented in pure python over libffi, add interfaces and |
| 96 |
methods to support the buffer interface from python. Specifically, add a |
| 97 |
``__pypy__.newmemoryview`` function to create a memoryview and extend the use |
| 98 |
of the PyPy-specific ``__buffer__`` class method. This enables better |
| 99 |
buffer sharing between ctypes and NumPy. |
| 100 |
* Add copying to zlib |
| 101 |
* Improve register allocation in the JIT by using better heuristics |
| 102 |
* Include ``<sys/sysmacros.h>`` on Gnu/Hurd |
| 103 |
* Mostly for completeness sake: support for ``rlib.jit.promote_unicode``, which |
| 104 |
behaves like ``promote_string``, but for rpython unicode objects |
| 105 |
* Correctly initialize the ``d_type`` and ``d_name`` members of builtin |
| 106 |
descriptors to fix a segfault related to classmethods in Cython |
| 107 |
* Expand documentation of ``__pypy_`` module |
| 108 |
|
| 109 |
C-API (cpyext) improvements shared across versions |
| 110 |
|
| 111 |
* Move PyTuple_Type.tp_new to C |
| 112 |
* Call internal methods from ``PyDict_XXXItem()`` instead of going through |
| 113 |
dunder methods (CPython cpyext compatibility) |
| 114 |
|
| 115 |
Python 3.6 only |
| 116 |
|
| 117 |
* Support for os.PathLike in the posix module |
| 118 |
* Update ``idellib`` for 3.6.1 |
| 119 |
* Make ``BUILD_CONST_KEY_MAP`` JIT-friendly |
| 120 |
* Adapt code that optimizes ``sys.exc_info()`` to wordcode |
| 121 |
* Fix annotation bug found by ``attrs`` |