Debian Codegraph @

pypy/doc/whatsnew-pypy2-5.9.0.rst

raw
1 =========================
2 What's new in PyPy2.7 5.9
3 =========================
4
5 .. this is a revision shortly after release-pypy2.7-v5.8.0
6 .. startrev: 558bd00b3dd8
7
8 In previous versions of PyPy, ``instance.method`` would return always
9 the same bound method object, when gotten out of the same instance (as
10 far as ``is`` and ``id()`` can tell). CPython doesn't do that. Now
11 PyPy, like CPython, returns a different bound method object every time.
12 For ``type.method``, PyPy2 still returns always the same *unbound*
13 method object; CPython does it for built-in types but not for
14 user-defined types.
15
16 .. branch: cffi-complex
17 .. branch: cffi-char16-char32
18
19 The two ``cffi-*`` branches are part of the upgrade to cffi 1.11.
20
21 .. branch: ctypes_char_indexing
22
23 Indexing into char* behaves differently than CPython
24
25 .. branch: vmprof-0.4.8
26
27 Improve and fix issues with vmprof
28
29 .. branch: issue-2592
30
31 CPyext PyListObject.pop must return the value
32
33 .. branch: cpyext-hash_notimpl
34
35 If ``tp_hash`` is ``PyObject_HashNotImplemented``, set ``obj.__dict__['__hash__']`` to None
36
37 .. branch: cppyy-packaging
38
39 Renaming of ``cppyy`` to ``_cppyy``.
40 The former is now an external package installable with ``pip install cppyy``.
41
42 .. branch: Enable_PGO_for_clang
43
44 .. branch: nopax
45
46 At the end of translation, run ``attr -q -s pax.flags -V m`` on
47 PAX-enabled systems on the produced binary. This seems necessary
48 because PyPy uses a JIT.
49
50 .. branch: pypy_bytearray
51
52 Improve ``bytearray`` performance (backported from py3.5)
53
54 .. branch: gc-del-limit-growth
55
56 Fix the bounds in the GC when allocating a lot of objects with finalizers,
57 fixes issue #2590
58
59 .. branch: arrays-force-less
60
61 Small improvement to optimize list accesses with constant indexes better by
62 throwing away information about them less eagerly.
63
64
65 .. branch: getarrayitem-into-bridges
66
67 More information is retained into a bridge: knowledge about the content of
68 arrays (at fixed indices) is stored in guards (and thus available at the
69 beginning of bridges). Also, some better feeding of information about known
70 fields of constant objects into bridges.
71
72 .. branch: cpyext-leakchecking
73
74 Add support for leakfinder in cpyext tests (disabled for now, due to too many
75 failures).
76
77 .. branch: pypy_swappedbytes
78
79 Added ``_swappedbytes_`` support for ``ctypes.Structure``
80
81 .. branch: pycheck-macros
82
83 Convert many Py*_Check cpyext functions into macros, like CPython.
84
85 .. branch: py_ssize_t
86
87 Explicitly use Py_ssize_t as the Signed type in pypy c-api
88
89 .. branch: cpyext-jit
90
91 Differentiate the code to call METH_NOARGS, METH_O and METH_VARARGS in cpyext:
92 this allows to write specialized code which is much faster than previous
93 completely generic version. Moreover, let the JIT to look inside the cpyext
94 module: the net result is that cpyext calls are up to 7x faster. However, this
95 is true only for very simple situations: in all real life code, we are still
96 much slower than CPython (more optimizations to come)