Debian Codegraph @

pypy/doc/whatsnew-pypy2-5.3.0.rst

raw
1 =========================
2 What's new in PyPy2.7 5.3
3 =========================
4
5 .. this is a revision shortly after release-5.1
6 .. startrev: aa60332382a1
7
8 .. branch: techtonik/introductionrst-simplify-explanation-abo-1460879168046
9
10 .. branch: gcheader-decl
11
12 Reduce the size of generated C sources.
13
14
15 .. branch: remove-objspace-options
16
17 Remove a number of options from the build process that were never tested and
18 never set. Fix a performance bug in the method cache.
19
20 .. branch: bitstring
21
22 JIT: use bitstrings to compress the lists of read or written descrs
23 that we attach to EffectInfo. Fixes a problem we had in
24 remove-objspace-options.
25
26 .. branch: cpyext-for-merge
27
28 Update cpyext C-API support After this branch, we are almost able to support
29 upstream numpy via cpyext, so we created (yet another) fork of numpy at
30 github.com/pypy/numpy with the needed changes. Among the significant changes
31 to cpyext:
32
33 - allow c-snippet tests to be run with -A so we can verify we are compatible
34 - fix many edge cases exposed by fixing tests to run with -A
35 - issequence() logic matches cpython
36 - make PyStringObject and PyUnicodeObject field names compatible with cpython
37 - add prelminary support for PyDateTime_*
38 - support PyComplexObject, PyFloatObject, PyDict_Merge, PyDictProxy,
39 PyMemoryView_*, _Py_HashDouble, PyFile_AsFile, PyFile_FromFile,
40 - PyAnySet_CheckExact, PyUnicode_Concat
41 - improve support for PyGILState_Ensure, PyGILState_Release, and thread
42 primitives, also find a case where CPython will allow thread creation
43 before PyEval_InitThreads is run, disallow on PyPy
44 - create a PyObject-specific list strategy
45 - rewrite slot assignment for typeobjects
46 - improve tracking of PyObject to rpython object mapping
47 - support tp_as_{number, sequence, mapping, buffer} slots
48
49 (makes the pypy-c bigger; this was fixed subsequently by the
50 share-cpyext-cpython-api branch)
51
52 .. branch: share-mapdict-methods-2
53
54 Reduce generated code for subclasses by using the same function objects in all
55 generated subclasses.
56
57 .. branch: share-cpyext-cpython-api
58
59 .. branch: cpyext-auto-gil
60
61 CPyExt tweak: instead of "GIL not held when a CPython C extension module
62 calls PyXxx", we now silently acquire/release the GIL. Helps with
63 CPython C extension modules that call some PyXxx() functions without
64 holding the GIL (arguably, they are theoretically buggy).
65
66 .. branch: cpyext-test-A
67
68 Get the cpyext tests to pass with "-A" (i.e. when tested directly with
69 CPython).
70
71 .. branch: oefmt
72
73 .. branch: cpyext-werror
74
75 Compile c snippets with -Werror in cpyext
76
77 .. branch: gc-del-3
78
79 Add rgc.FinalizerQueue, documented in pypy/doc/discussion/finalizer-order.rst.
80 It is a more flexible way to make RPython finalizers.
81
82 .. branch: unpacking-cpython-shortcut
83
84 .. branch: cleanups
85
86 .. branch: cpyext-more-slots
87
88 .. branch: use-gc-del-3
89
90 Use the new rgc.FinalizerQueue mechanism to clean up the handling of
91 ``__del__`` methods. Fixes notably issue #2287. (All RPython
92 subclasses of W_Root need to use FinalizerQueue now.)
93
94 .. branch: ufunc-outer
95
96 Implement ufunc.outer on numpypy
97
98 .. branch: verbose-imports
99
100 Support ``pypy -v``: verbose imports. It does not log as much as
101 cpython, but it should be enough to help when debugging package layout
102 problems.
103
104 .. branch: cpyext-macros-cast
105
106 Fix some warnings when compiling CPython C extension modules
107
108 .. branch: syntax_fix
109
110 .. branch: remove-raisingops
111
112 Remove most of the _ovf, _zer and _val operations from RPython. Kills
113 quite some code internally, and allows the JIT to do better
114 optimizations: for example, app-level code like ``x / 2`` or ``x % 2``
115 can now be turned into ``x >> 1`` or ``x & 1``, even if x is possibly
116 negative.
117
118 .. branch: cpyext-old-buffers
119
120 Generalize cpyext old-style buffers to more than just str/buffer, add support for mmap
121
122 .. branch: numpy-includes
123
124 Move _numpypy headers into a directory so they are not picked up by upstream numpy, scipy
125 This allows building upstream numpy and scipy in pypy via cpyext
126
127 .. branch: traceviewer-common-merge-point-formats
128
129 Teach RPython JIT's off-line traceviewer the most common ``debug_merge_point`` formats.
130
131 .. branch: cpyext-pickle
132
133 Enable pickling of W_PyCFunctionObject by monkeypatching pickle.Pickler.dispatch
134 at cpyext import time
135
136 .. branch: nonmovable-list
137
138 Add a way to ask "give me a raw pointer to this list's
139 items". Only for resizable lists of primitives. Turns the GcArray
140 nonmovable, possibly making a copy of it first.
141
142 .. branch: cpyext-ext
143
144 Finish the work already partially merged in cpyext-for-merge. Adds support
145 for ByteArrayObject using the nonmovable-list, which also enables
146 buffer(bytearray(<some-list>))