File: whatsnew-pypy2-5.9.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 (96 lines) | stat: -rw-r--r-- 2,938 bytes parent folder | download | duplicates (7)
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
=========================
What's new in PyPy2.7 5.9
=========================

.. this is a revision shortly after release-pypy2.7-v5.8.0
.. startrev: 558bd00b3dd8

In previous versions of PyPy, ``instance.method`` would return always
the same bound method object, when gotten out of the same instance (as
far as ``is`` and ``id()`` can tell).  CPython doesn't do that.  Now
PyPy, like CPython, returns a different bound method object every time.
For ``type.method``, PyPy2 still returns always the same *unbound*
method object; CPython does it for built-in types but not for
user-defined types.

.. branch: cffi-complex
.. branch: cffi-char16-char32

The two ``cffi-*`` branches are part of the upgrade to cffi 1.11.

.. branch: ctypes_char_indexing

Indexing into char* behaves differently than CPython

.. branch: vmprof-0.4.8

Improve and fix issues with vmprof

.. branch: issue-2592

CPyext PyListObject.pop must return the value

.. branch: cpyext-hash_notimpl

If ``tp_hash`` is ``PyObject_HashNotImplemented``, set ``obj.__dict__['__hash__']`` to None

.. branch: cppyy-packaging

Renaming of ``cppyy`` to ``_cppyy``.
The former is now an external package installable with ``pip install cppyy``.

.. branch: Enable_PGO_for_clang

.. branch: nopax

At the end of translation, run ``attr -q -s pax.flags -V m`` on
PAX-enabled systems on the produced binary.  This seems necessary
because PyPy uses a JIT.

.. branch: pypy_bytearray

Improve ``bytearray`` performance (backported from py3.5)

.. branch: gc-del-limit-growth

Fix the bounds in the GC when allocating a lot of objects with finalizers,
fixes issue #2590

.. branch: arrays-force-less

Small improvement to optimize list accesses with constant indexes better by
throwing away information about them less eagerly.


.. branch: getarrayitem-into-bridges

More information is retained into a bridge: knowledge about the content of
arrays (at fixed indices) is stored in guards (and thus available at the
beginning of bridges). Also, some better feeding of information about known
fields of constant objects into bridges.

.. branch: cpyext-leakchecking

Add support for leakfinder in cpyext tests (disabled for now, due to too many
failures).

.. branch: pypy_swappedbytes

Added ``_swappedbytes_`` support for ``ctypes.Structure``

.. branch: pycheck-macros

Convert many Py*_Check cpyext functions into macros, like CPython.

.. branch: py_ssize_t

Explicitly use Py_ssize_t as the Signed type in pypy c-api

.. branch: cpyext-jit

Differentiate the code to call METH_NOARGS, METH_O and METH_VARARGS in cpyext:
this allows to write specialized code which is much faster than previous
completely generic version. Moreover, let the JIT to look inside the cpyext
module: the net result is that cpyext calls are up to 7x faster. However, this
is true only for very simple situations: in all real life code, we are still
much slower than CPython (more optimizations to come)