1.. date: 2022-07-23-19-16-25
2.. gh-issue: 93351
3.. nonce: 0Jyvu-
4.. release date: 2022-07-25
5.. section: Core and Builtins
6
7:class:`ast.AST` node positions are now validated when provided to
8:func:`compile` and other related functions. If invalid positions are
9detected, a :exc:`ValueError` will be raised.
10
11..
12
13.. date: 2022-07-22-12-53-34
14.. gh-issue: 94438
15.. nonce: hNqACc
16.. section: Core and Builtins
17
18Fix an issue that caused extended opcode arguments and some conditional pops
19to be ignored when calculating valid jump targets for assignments to the
20``f_lineno`` attribute of frame objects. In some cases, this could cause
21inconsistent internal state, resulting in a hard crash of the interpreter.
22
23..
24
25.. date: 2022-07-21-19-19-20
26.. gh-issue: 95060
27.. nonce: 4xdT1f
28.. section: Core and Builtins
29
30Undocumented ``PyCode_Addr2Location`` function now properly returns when
31``addrq`` argument is less than zero.
32
33..
34
35.. date: 2022-07-21-17-54-52
36.. gh-issue: 95113
37.. nonce: NnSLpT
38.. section: Core and Builtins
39
40Replace all ``EXTENDED_ARG_QUICK`` instructions with basic
41:opcode:`EXTENDED_ARG` instructions in unquickened code. Consumers of
42non-adaptive bytecode should be able to handle extended arguments the same
43way they were handled in CPython 3.10 and older.
44
45..
46
47.. date: 2022-07-20-13-46-01
48.. gh-issue: 91409
49.. nonce: dhL8Zo
50.. section: Core and Builtins
51
52Fix incorrect source location info caused by certain optimizations in the
53bytecode compiler.
54
55..
56
57.. date: 2022-07-19-16-30-59
58.. gh-issue: 94036
59.. nonce: _6Utkm
60.. section: Core and Builtins
61
62Fix incorrect source location info for some multi-line attribute accesses
63and method calls.
64
65..
66
67.. date: 2022-07-18-14-19-21
68.. gh-issue: 94739
69.. nonce: NQJQi7
70.. section: Core and Builtins
71
72Allow jumping within, out of, and across exception handlers in the debugger.
73
74..
75
76.. date: 2022-07-18-05-10-29
77.. gh-issue: 94949
78.. nonce: OsZ7_s
79.. section: Core and Builtins
80
81:func:`ast.parse` will no longer parse parenthesized context managers when
82passed ``feature_version`` less than ``(3, 9)``. Patch by Shantanu Jain.
83
84..
85
86.. date: 2022-07-18-04-48-34
87.. gh-issue: 94947
88.. nonce: df9gUw
89.. section: Core and Builtins
90
91:func:`ast.parse` will no longer parse assignment expressions when passed
92``feature_version`` less than ``(3, 8)``. Patch by Shantanu Jain.
93
94..
95
96.. date: 2022-07-17-15-54-29
97.. gh-issue: 91256
98.. nonce: z7i7Q5
99.. section: Core and Builtins
100
101Ensures the program name is known for help text during interpreter startup.
102
103..
104
105.. date: 2022-07-16-08-14-17
106.. gh-issue: 94869
107.. nonce: eRwMsX
108.. section: Core and Builtins
109
110Fix the column offsets for some expressions in multi-line f-strings
111:mod:`ast` nodes. Patch by Pablo Galindo.
112
113..
114
115.. date: 2022-07-15-22-16-08
116.. gh-issue: 94822
117.. nonce: zRRzBN
118.. section: Core and Builtins
119
120Fix an issue where lookups of metaclass descriptors may be ignored when an
121identically-named attribute also exists on the class itself.
122
123..
124
125.. date: 2022-07-15-16-15-04
126.. gh-issue: 91153
127.. nonce: HiBmtt
128.. section: Core and Builtins
129
130Fix an issue where a :class:`bytearray` item assignment could crash if it's
131resized by the new value's :meth:`__index__` method.
132
133..
134
135.. date: 2022-07-14-10-07-53
136.. gh-issue: 90699
137.. nonce: x3aG9m
138.. section: Core and Builtins
139
140Fix reference counting bug in :meth:`bool.__repr__`. Patch by Kumar Aditya.
141
142..
143
144.. date: 2022-07-24-12-59-02
145.. gh-issue: 95087
146.. nonce: VvqXkN
147.. section: Library
148
149Fix IndexError in parsing invalid date in the :mod:`email` module.
150
151..
152
153.. date: 2022-07-24-12-00-06
154.. gh-issue: 95199
155.. nonce: -5A64k
156.. section: Library
157
158Upgrade bundled setuptools to 63.2.0.
159
160..
161
162.. date: 2022-07-24-09-15-35
163.. gh-issue: 95194
164.. nonce: ERVmqG
165.. section: Library
166
167Upgrade bundled pip to 22.2.
168
169..
170
171.. date: 2022-07-22-21-18-17
172.. gh-issue: 95132
173.. nonce: n9anlw
174.. section: Library
175
176Fix a :mod:`sqlite3` regression where ``*args`` and ``**kwds`` were
177incorrectly relayed from :py:func:`~sqlite3.connect` to the
178:class:`~sqlite3.Connection` factory. The regression was introduced in
1793.11a1 with PR 24421 (:gh:`85128`). Patch by Erlend E. Aasland.`
180
181..
182
183.. date: 2022-07-22-17-19-57
184.. gh-issue: 93157
185.. nonce: RXByAk
186.. section: Library
187
188Fix :mod:`fileinput` module didn't support ``errors`` option when
189``inplace`` is true.
190
191..
192
193.. date: 2022-07-21-19-55-49
194.. gh-issue: 95105
195.. nonce: BIX2Km
196.. section: Library
197
198:meth:`wsgiref.types.InputStream.__iter__` should return
199``Iterator[bytes]``, not ``Iterable[bytes]``. Patch by Shantanu Jain.
200
201..
202
203.. date: 2022-07-15-08-13-51
204.. gh-issue: 94857
205.. nonce: 9_KvZJ
206.. section: Library
207
208Fix refleak in ``_io.TextIOWrapper.reconfigure``. Patch by Kumar Aditya.
209
210..
211
212.. date: 2022-07-14-00-43-52
213.. gh-issue: 94821
214.. nonce: e17ghU
215.. section: Library
216
217Fix binding of unix socket to empty address on Linux to use an available
218address from the abstract namespace, instead of "\0".
219
220..
221
222.. date: 2022-06-26-10-59-15
223.. gh-issue: 89988
224.. nonce: K8rnmt
225.. section: Library
226
227Fix memory leak in :class:`pickle.Pickler` when looking up
228:attr:`dispatch_table`. Patch by Kumar Aditya.
229
230..
231
232.. bpo: 47025
233.. date: 2022-03-16-14-24-14
234.. nonce: qtT3CE
235.. section: Library
236
237Drop support for :class:`bytes` on :attr:`sys.path`.
238
239..
240
241.. date: 2022-07-24-20-19-05
242.. gh-issue: 95212
243.. nonce: fHiU4e
244.. section: Tests
245
246Make multiprocessing test case ``test_shared_memory_recreate``
247parallel-safe.
248
249..
250
251.. date: 2022-07-14-11-13-26
252.. gh-issue: 94847
253.. nonce: s3Kr5p
254.. section: Build
255
256Fixed ``_decimal`` module build issue on GCC when compiling with LTO and
257pydebug. Debug builds no longer force inlining of functions.
258
259..
260
261.. date: 2022-07-14-02-45-44
262.. gh-issue: 94841
263.. nonce: lLRTdf
264.. section: Build
265
266Fix the possible performance regression of :c:func:`PyObject_Free` compiled
267with MSVC version 1932.
268
269..
270
271.. date: 2022-07-13-10-13-10
272.. gh-issue: 94801
273.. nonce: 3xUB24
274.. section: Build
275
276``configure`` now uses custom flags like ``ZLIB_CFLAGS`` and ``ZLIB_LIBS``
277when searching for headers and libraries.
278
279..
280
281.. date: 2022-07-12-13-39-18
282.. gh-issue: 94773
283.. nonce: koHKm5
284.. section: Build
285
286``deepfreeze.py`` now supports code object with frozensets that contain
287incompatible, unsortable types.
288
289..
290
291.. date: 2022-07-16-16-18-32
292.. gh-issue: 90844
293.. nonce: vwITT3
294.. section: Windows
295
296Allow virtual environments to correctly launch when they have spaces in the
297path.
298
299..
300
301.. date: 2022-07-12-20-45-43
302.. gh-issue: 94772
303.. nonce: uNMmdG
304.. section: Windows
305
306Fix incorrect handling of shebang lines in py.exe launcher
307
308..
309
310.. date: 2022-07-25-15-54-27
311.. gh-issue: 92678
312.. nonce: ziZpxz
313.. section: C API
314
315Adds unstable C-API functions ``_PyObject_VisitManagedDict`` and
316``_PyObject_ClearManagedDict`` to allow C extensions to allow the VM to
317manage their object's dictionaries.
318
319..
320
321.. date: 2022-07-17-18-21-40
322.. gh-issue: 94930
323.. nonce: gPFGDL
324.. section: C API
325
326Fix ``SystemError`` raised when :c:func:`PyArg_ParseTupleAndKeywords` is
327used with ``#`` in ``(...)`` but without ``PY_SSIZE_T_CLEAN`` defined.
328
329..
330
331.. date: 2022-07-16-14-57-23
332.. gh-issue: 94864
333.. nonce: Pb41ab
334.. section: C API
335
336Fix ``PyArg_Parse*`` with deprecated format units "u" and "Z". It returned 1
337(success) when warnings are turned into exceptions.
338
339..
340
341.. date: 2022-07-12-17-39-32
342.. gh-issue: 94731
343.. nonce: 9CPJNU
344.. section: C API
345
346Python again uses C-style casts for most casting operations when compiled
347with C++. This may trigger compiler warnings, if they are enabled with e.g.
348``-Wold-style-cast `` or ``-Wzero-as-null-pointer-constant`` options for
349``g++``.
350