summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/3.11.0b5.rst
blob: 36e9290246bd0b733d61f3245cd39393f57b2f47 (plain)
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
.. date: 2022-07-23-19-16-25
.. gh-issue: 93351
.. nonce: 0Jyvu-
.. release date: 2022-07-25
.. section: Core and Builtins

:class:`ast.AST` node positions are now validated when provided to
:func:`compile` and other related functions. If invalid positions are
detected, a :exc:`ValueError` will be raised.

..

.. date: 2022-07-22-12-53-34
.. gh-issue: 94438
.. nonce: hNqACc
.. section: Core and Builtins

Fix an issue that caused extended opcode arguments and some conditional pops
to be ignored when calculating valid jump targets for assignments to the
``f_lineno`` attribute of frame objects. In some cases, this could cause
inconsistent internal state, resulting in a hard crash of the interpreter.

..

.. date: 2022-07-21-19-19-20
.. gh-issue: 95060
.. nonce: 4xdT1f
.. section: Core and Builtins

Undocumented ``PyCode_Addr2Location`` function now properly returns when
``addrq`` argument is less than zero.

..

.. date: 2022-07-21-17-54-52
.. gh-issue: 95113
.. nonce: NnSLpT
.. section: Core and Builtins

Replace all ``EXTENDED_ARG_QUICK`` instructions with basic
:opcode:`EXTENDED_ARG` instructions in unquickened code. Consumers of
non-adaptive bytecode should be able to handle extended arguments the same
way they were handled in CPython 3.10 and older.

..

.. date: 2022-07-20-13-46-01
.. gh-issue: 91409
.. nonce: dhL8Zo
.. section: Core and Builtins

Fix incorrect source location info caused by certain optimizations in the
bytecode compiler.

..

.. date: 2022-07-19-16-30-59
.. gh-issue: 94036
.. nonce: _6Utkm
.. section: Core and Builtins

Fix incorrect source location info for some multi-line attribute accesses
and method calls.

..

.. date: 2022-07-18-14-19-21
.. gh-issue: 94739
.. nonce: NQJQi7
.. section: Core and Builtins

Allow jumping within, out of, and across exception handlers in the debugger.

..

.. date: 2022-07-18-05-10-29
.. gh-issue: 94949
.. nonce: OsZ7_s
.. section: Core and Builtins

:func:`ast.parse` will no longer parse parenthesized context managers when
passed ``feature_version`` less than ``(3, 9)``. Patch by Shantanu Jain.

..

.. date: 2022-07-18-04-48-34
.. gh-issue: 94947
.. nonce: df9gUw
.. section: Core and Builtins

:func:`ast.parse` will no longer parse assignment expressions when passed
``feature_version`` less than ``(3, 8)``. Patch by Shantanu Jain.

..

.. date: 2022-07-17-15-54-29
.. gh-issue: 91256
.. nonce: z7i7Q5
.. section: Core and Builtins

Ensures the program name is known for help text during interpreter startup.

..

.. date: 2022-07-16-08-14-17
.. gh-issue: 94869
.. nonce: eRwMsX
.. section: Core and Builtins

Fix the column offsets for some expressions in multi-line f-strings
:mod:`ast` nodes. Patch by Pablo Galindo.

..

.. date: 2022-07-15-22-16-08
.. gh-issue: 94822
.. nonce: zRRzBN
.. section: Core and Builtins

Fix an issue where lookups of metaclass descriptors may be ignored when an
identically-named attribute also exists on the class itself.

..

.. date: 2022-07-15-16-15-04
.. gh-issue: 91153
.. nonce: HiBmtt
.. section: Core and Builtins

Fix an issue where a :class:`bytearray` item assignment could crash if it's
resized by the new value's :meth:`__index__` method.

..

.. date: 2022-07-14-10-07-53
.. gh-issue: 90699
.. nonce: x3aG9m
.. section: Core and Builtins

Fix reference counting bug in :meth:`bool.__repr__`. Patch by Kumar Aditya.

..

.. date: 2022-07-24-12-59-02
.. gh-issue: 95087
.. nonce: VvqXkN
.. section: Library

Fix IndexError in parsing invalid date in the :mod:`email` module.

..

.. date: 2022-07-24-12-00-06
.. gh-issue: 95199
.. nonce: -5A64k
.. section: Library

Upgrade bundled setuptools to 63.2.0.

..

.. date: 2022-07-24-09-15-35
.. gh-issue: 95194
.. nonce: ERVmqG
.. section: Library

Upgrade bundled pip to 22.2.

..

.. date: 2022-07-22-21-18-17
.. gh-issue: 95132
.. nonce: n9anlw
.. section: Library

Fix a :mod:`sqlite3` regression where ``*args`` and ``**kwds`` were
incorrectly relayed from :py:func:`~sqlite3.connect` to the
:class:`~sqlite3.Connection` factory. The regression was introduced in
3.11a1 with PR 24421 (:gh:`85128`). Patch by Erlend E. Aasland.`

..

.. date: 2022-07-22-17-19-57
.. gh-issue: 93157
.. nonce: RXByAk
.. section: Library

Fix :mod:`fileinput` module didn't support ``errors`` option when
``inplace`` is true.

..

.. date: 2022-07-21-19-55-49
.. gh-issue: 95105
.. nonce: BIX2Km
.. section: Library

:meth:`wsgiref.types.InputStream.__iter__` should return
``Iterator[bytes]``, not ``Iterable[bytes]``. Patch by Shantanu Jain.

..

.. date: 2022-07-15-08-13-51
.. gh-issue: 94857
.. nonce: 9_KvZJ
.. section: Library

Fix refleak in ``_io.TextIOWrapper.reconfigure``. Patch by Kumar Aditya.

..

.. date: 2022-07-14-00-43-52
.. gh-issue: 94821
.. nonce: e17ghU
.. section: Library

Fix binding of unix socket to empty address on Linux to use an available
address from the abstract namespace, instead of "\0".

..

.. date: 2022-06-26-10-59-15
.. gh-issue: 89988
.. nonce: K8rnmt
.. section: Library

Fix memory leak in :class:`pickle.Pickler` when looking up
:attr:`dispatch_table`. Patch by Kumar Aditya.

..

.. bpo: 47025
.. date: 2022-03-16-14-24-14
.. nonce: qtT3CE
.. section: Library

Drop support for :class:`bytes` on :attr:`sys.path`.

..

.. date: 2022-07-24-20-19-05
.. gh-issue: 95212
.. nonce: fHiU4e
.. section: Tests

Make multiprocessing test case ``test_shared_memory_recreate``
parallel-safe.

..

.. date: 2022-07-14-11-13-26
.. gh-issue: 94847
.. nonce: s3Kr5p
.. section: Build

Fixed ``_decimal`` module build issue on GCC when compiling with LTO and
pydebug. Debug builds no longer force inlining of functions.

..

.. date: 2022-07-14-02-45-44
.. gh-issue: 94841
.. nonce: lLRTdf
.. section: Build

Fix the possible performance regression of :c:func:`PyObject_Free` compiled
with MSVC version 1932.

..

.. date: 2022-07-13-10-13-10
.. gh-issue: 94801
.. nonce: 3xUB24
.. section: Build

``configure`` now uses custom flags like ``ZLIB_CFLAGS`` and ``ZLIB_LIBS``
when searching for headers and libraries.

..

.. date: 2022-07-12-13-39-18
.. gh-issue: 94773
.. nonce: koHKm5
.. section: Build

``deepfreeze.py`` now supports code object with frozensets that contain
incompatible, unsortable types.

..

.. date: 2022-07-16-16-18-32
.. gh-issue: 90844
.. nonce: vwITT3
.. section: Windows

Allow virtual environments to correctly launch when they have spaces in the
path.

..

.. date: 2022-07-12-20-45-43
.. gh-issue: 94772
.. nonce: uNMmdG
.. section: Windows

Fix incorrect handling of shebang lines in py.exe launcher

..

.. date: 2022-07-25-15-54-27
.. gh-issue: 92678
.. nonce: ziZpxz
.. section: C API

Adds unstable C-API functions ``_PyObject_VisitManagedDict`` and
``_PyObject_ClearManagedDict`` to allow C extensions to allow the VM to
manage their object's dictionaries.

..

.. date: 2022-07-17-18-21-40
.. gh-issue: 94930
.. nonce: gPFGDL
.. section: C API

Fix ``SystemError`` raised when :c:func:`PyArg_ParseTupleAndKeywords` is
used with ``#`` in ``(...)`` but without ``PY_SSIZE_T_CLEAN`` defined.

..

.. date: 2022-07-16-14-57-23
.. gh-issue: 94864
.. nonce: Pb41ab
.. section: C API

Fix ``PyArg_Parse*`` with deprecated format units "u" and "Z". It returned 1
(success) when warnings are turned into exceptions.

..

.. date: 2022-07-12-17-39-32
.. gh-issue: 94731
.. nonce: 9CPJNU
.. section: C API

Python again uses C-style casts for most casting operations when compiled
with C++. This may trigger compiler warnings, if they are enabled with e.g.
``-Wold-style-cast `` or ``-Wzero-as-null-pointer-constant`` options for
``g++``.