Debian Codegraph @

pypy/doc/whatsnew-pypy2-5.6.0.rst

raw
1 =========================
2 What's new in PyPy2.7 5.6
3 =========================
4
5 .. this is a revision shortly after release-pypy2.7-v5.4
6 .. startrev: 522736f816dc
7
8 .. branch: mappingproxy
9 .. branch: py3k-finish_time
10 .. branch: py3k-kwonly-builtin
11 .. branch: py3k_add_terminal_size
12 .. branch: testing-cleanup-py3k
13
14 .. branch: rpython-resync
15
16 Backport rpython changes made directly on the py3k and py3.5 branches.
17
18 .. branch: buffer-interface
19
20 Implement PyObject_GetBuffer, PyMemoryView_GET_BUFFER, and handles memoryviews
21 in numpypy
22
23 .. branch: force-virtual-state
24
25 Improve merging of virtual states in the JIT in order to avoid jumping to the
26 preamble. Accomplished by allocating virtual objects where non-virtuals are
27 expected.
28
29 .. branch: conditional_call_value_3
30
31 JIT residual calls: if the called function starts with a fast-path
32 like "if x.foo != 0: return x.foo", then inline the check before
33 doing the CALL. For now, string hashing is about the only case.
34
35 .. branch: search-path-from-libpypy
36
37 The compiled pypy now looks for its lib-python/lib_pypy path starting
38 from the location of the *libpypy-c* instead of the executable. This is
39 arguably more consistent, and also it is what occurs anyway if you're
40 embedding pypy. Linux distribution packagers, take note! At a minimum,
41 the ``libpypy-c.so`` must really be inside the path containing
42 ``lib-python`` and ``lib_pypy``. Of course, you can put a symlink to it
43 from somewhere else. You no longer have to do the same with the
44 ``pypy`` executable, as long as it finds its ``libpypy-c.so`` library.
45
46 .. branch: _warnings
47
48 CPython allows warning.warn(('something', 1), Warning), on PyPy this
49 produced a "expected a readable buffer object" error. Test and fix.
50
51 .. branch: stricter-strip
52
53 CPython rejects 'a'.strip(buffer(' ')); only None, str or unicode are
54 allowed as arguments. Test and fix for str and unicode
55
56 .. branch: faulthandler
57
58 Port the 'faulthandler' module to PyPy default. This module is standard
59 in Python 3.3 but can also be installed from CPython >= 2.6 from PyPI.
60
61 .. branch: test-cpyext
62
63 Refactor cpyext testing to be more pypy3-friendly.
64
65 .. branch: better-error-missing-self
66
67 Improve the error message when the user forgot the "self" argument of a method.
68
69
70 .. fb6bb835369e
71
72 Change the ``timeit`` module: it now prints the average time and the standard
73 deviation over 7 runs by default, instead of the minimum. The minimum is often
74 misleading.
75
76 .. branch: unrecursive-opt
77
78 Make optimiseopt iterative instead of recursive so it can be reasoned about
79 more easily and debugging is faster.
80
81 .. branch: Tiberiumk/fix-2412-1476011166874
82 .. branch: redirect-assembler-jitlog
83 .. branch: stdlib-2.7.12
84
85 Update stdlib to version 2.7.12
86
87 .. branch: buffer-interface2
88
89 Improve support for new buffer interface in cpyext, bf_getbuffer on built-in
90 types still missing
91
92
93 .. branch: fix-struct-unpack-Q
94
95 Improve compatibility with CPython in the ``struct`` module. In particular,
96 ``struct.unpack`` now returns an ``int`` whenever the returned value fits,
97 while previously it always returned a ``long`` for certains format codes such
98 as ``Q`` (and also ``I``, ``L`` and ``q`` on 32 bit)
99
100 .. branch: zarch-simd-support
101
102 s390x implementation for vector operations used in VecOpt
103
104 .. branch: ppc-vsx-support
105
106 PowerPC implementation for vector operations used in VecOpt
107
108 .. branch: newinitwarn
109
110 Match CPython's stricter handling of ``__new__``/``__init__`` arguments
111
112 .. branch: openssl-1.1
113
114 Support for OpenSSL version 1.1 (in addition to version 1.0).
115 Tested on Linux (1.1, 1.0), on Win32, and Mac (1.0 only)