Debian Codegraph @

pypy/doc/whatsnew-2.6.0.rst

raw
1 ========================
2 What's new in PyPy 2.6.0
3 ========================
4
5 .. this is a revision shortly after release-2.5.1
6 .. startrev: cb01edcb59414d9d93056e54ed060673d24e67c1
7
8 issue2005:
9 ignore errors on closing random file handles while importing a module (cpython compatibility)
10
11 issue2013:
12 added constants to _ssl for TLS 1.1 and 1.2
13
14 issue2014:
15 Add PyLong_FromUnicode to cpyext.
16
17 issue2017:
18 On non-Linux-x86 platforms, reduced the memory impact of
19 creating a lot of greenlets/tasklets. Particularly useful on Win32 and
20 on ARM, where you used to get a MemoryError after only 2500-5000
21 greenlets (the 32-bit address space is exhausted).
22
23 Update gdb_pypy for python3 (gdb comatability)
24
25 Merged rstrategies into rpython which provides a library for Storage Strategies
26
27 Support unicode strings in numpy.dtype creation i.e. np.dtype(u'int64')
28
29 Various rpython cleanups for vmprof support
30
31 issue2019:
32 Fix isspace as called by rpython unicode.strip()
33
34 issue2023:
35 In the cpyext 'Concrete Object Layer' API,
36 don't call methods on the object (which can be overridden),
37 but directly on the concrete base type.
38
39 issue2029:
40 Hide the default_factory attribute in a dict
41
42 issue2027:
43 Better document pyinteractive and add --withmod-time
44
45 .. branch: gc-incminimark-pinning-improve
46
47 branch gc-incminimark-pinning-improve:
48 Object Pinning is now used in `bz2` and `rzlib` (therefore also affects
49 Python's `zlib`). In case the data to compress/decompress is inside the nursery
50 (incminimark) it no longer needs to create a non-moving copy of it. This saves
51 one `malloc` and copying the data. Additionally a new GC environment variable
52 is introduced (`PYPY_GC_MAX_PINNED`) primarily for debugging purposes.
53
54 .. branch: refactor-pycall
55
56 branch refactor-pycall:
57 Make `*`-unpacking in RPython function calls completely equivalent to passing
58 the tuple's elements as arguments. In other words, `f(*(a, b))` now behaves
59 exactly like `f(a, b)`.
60
61 .. branch: issue2018
62
63 branch issue2018:
64 Allow prebuilt rpython dict with function values
65
66 .. branch: vmprof
67 .. Merged but then backed out, hopefully it will return as vmprof2
68
69 .. branch: object-dtype2
70
71 branch object-dtype2:
72 Extend numpy dtypes to allow using objects with associated garbage collection hook
73
74 .. branch: vmprof2
75
76 branch vmprof2:
77 Add backend support for vmprof - a lightweight statistical profiler -
78 to linux64, see client at https://vmprof.readthedocs.org
79
80 .. branch: jit_hint_docs
81
82 branch jit_hint_docs:
83 Add more detail to @jit.elidable and @jit.promote in rpython/rlib/jit.py
84
85 .. branch: remove-frame-debug-attrs
86
87 branch remove_frame-debug-attrs:
88 Remove the debug attributes from frames only used for tracing and replace
89 them with a debug object that is created on-demand
90
91 .. branch: can_cast
92
93 branch can_cast:
94 Implement np.can_cast, np.min_scalar_type and missing dtype comparison operations.
95
96 .. branch: numpy-fixes
97
98 branch numpy-fixes:
99 Fix some error related to object dtype, non-contiguous arrays, implement parts of
100 __array_interface__, __array_priority__, __array_wrap__
101
102 .. branch: cells-local-stack
103
104 branch cells-local-stack:
105 Unify the PyFrame.cells and Pyframe.locals_stack_w lists, making frame objects
106 1 or 3 words smaller.
107
108 .. branch: pythonoptimize-env
109
110 branch pythonoptimize-env
111 Implement PYTHONOPTIMIZE environment variable, fixing issue #2044
112
113 .. branch: numpy-flags
114
115 branch numpy-flags
116 Finish implementation of ndarray.flags, including str() and repr()
117
118 .. branch: cffi-1.0
119
120 branch cffi-1.0
121 PyPy now includes CFFI 1.0.
122
123 .. branch: pypyw
124
125 branch pypyw
126 PyPy on windows provides a non-console pypyw.exe as well as pypy.exe.
127 Similar to pythonw.exe, any use of stdout, stderr without redirection
128 will crash.
129
130 .. branch: fold-arith-ops
131
132 branch fold-arith-ops
133 remove multiple adds on add chains ("1 + 1 + 1 + ...")
134
135 .. branch: fix-result-types
136
137 branch fix-result-types:
138 * Refactor dtype casting and promotion rules for consistency and compatibility
139 with CNumPy.
140 * Refactor ufunc creation.
141 * Implement np.promote_types().