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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
|
.. date: 2023-06-13-20-52-24
.. gh-issue: 102988
.. nonce: Kei7Vf
.. release date: 2023-08-05
.. section: Security
Reverted the :mod:`email.utils` security improvement change released in
3.12beta4 that unintentionally caused :mod:`email.utils.getaddresses` to
fail to parse email addresses with a comma in the quoted name field. See
:gh:`106669`.
..
.. date: 2023-03-07-21-46-29
.. gh-issue: 102509
.. nonce: 5ouaH_
.. section: Security
Start initializing ``ob_digit`` during creation of :c:type:`PyLongObject`
objects. Patch by Illia Volochii.
..
.. date: 2023-07-30-05-20-16
.. gh-issue: 107263
.. nonce: q0IU2M
.. section: Core and Builtins
Increase C recursion limit for functions other than the main interpreter
from 800 to 1500. This should allow functions like ``list.__repr__`` and
``json.dumps`` to handle all the inputs that they could prior to 3.12
..
.. date: 2023-07-27-11-47-29
.. gh-issue: 104432
.. nonce: oGHF-z
.. section: Core and Builtins
Fix potential unaligned memory access on C APIs involving returned sequences
of `char *` pointers within the :mod:`grp` and :mod:`socket` modules. These
were revealed using a ``-fsaniziter=alignment`` build on ARM macOS. Patch by
Christopher Chavez.
..
.. date: 2023-07-26-21-28-06
.. gh-issue: 106898
.. nonce: 8Wjuiv
.. section: Core and Builtins
Add the exception as the third argument to ``PY_UNIND`` callbacks in
``sys.monitoring``. This makes the ``PY_UNWIND`` callback consistent with
the other exception hanlding callbacks.
..
.. date: 2023-07-26-18-53-34
.. gh-issue: 106895
.. nonce: DdEwV8
.. section: Core and Builtins
Raise a ``ValueError`` when a monitoring callback funtion returns
``DISABLE`` for events that cannot be disabled locally.
..
.. date: 2023-07-26-12-18-10
.. gh-issue: 106897
.. nonce: EsGurc
.. section: Core and Builtins
Add a ``RERAISE`` event to ``sys.monitoring``, which occurs when an
exception is reraised, either explicitly by a plain ``raise`` statement, or
implicitly in an ``except`` or ``finally`` block.
..
.. date: 2023-07-24-11-11-41
.. gh-issue: 104621
.. nonce: vM8Y_l
.. section: Core and Builtins
Unsupported modules now always fail to be imported.
..
.. date: 2023-07-21-14-37-48
.. gh-issue: 106917
.. nonce: 1jWp_m
.. section: Core and Builtins
Fix classmethod-style :func:`super` method calls (i.e., where the second
argument to :func:`super`, or the implied second argument drawn from
``self/cls`` in the case of zero-arg super, is a type) when the target of
the call is not a classmethod.
..
.. date: 2023-07-20-15-15-57
.. gh-issue: 105699
.. nonce: DdqHFg
.. section: Core and Builtins
Python no longer crashes due an infrequent race when initialzing
per-interpreter interned strings. The crash would manifest when the
interpreter was finalized.
..
.. date: 2023-07-20-12-21-37
.. gh-issue: 105699
.. nonce: 08ywGV
.. section: Core and Builtins
Python no longer crashes due to an infrequent race in setting
``Py_FileSystemDefaultEncoding`` and ``Py_FileSystemDefaultEncodeErrors``
(both deprecated), when simultaneously initializing two isolated
subinterpreters. Now they are only set during runtime initialization.
..
.. date: 2023-07-18-16-13-51
.. gh-issue: 106092
.. nonce: bObgRM
.. section: Core and Builtins
Fix a segmentation fault caused by a use-after-free bug in ``frame_dealloc``
when the trashcan delays the deallocation of a ``PyFrameObject``.
..
.. date: 2023-07-13-15-59-07
.. gh-issue: 106719
.. nonce: jmVrsv
.. section: Core and Builtins
No longer suppress arbitrary errors in the ``__annotations__`` getter and
setter in the type and module types.
..
.. date: 2023-07-13-14-55-45
.. gh-issue: 106723
.. nonce: KsMufQ
.. section: Core and Builtins
Propagate ``frozen_modules`` to multiprocessing spawned process
interpreters.
..
.. date: 2023-06-02-19-37-29
.. gh-issue: 105235
.. nonce: fgFGTi
.. section: Core and Builtins
Prevent out-of-bounds memory access during ``mmap.find()`` calls.
..
.. date: 2023-08-03-12-52-19
.. gh-issue: 107077
.. nonce: -pzHD6
.. section: Library
Seems that in some conditions, OpenSSL will return ``SSL_ERROR_SYSCALL``
instead of ``SSL_ERROR_SSL`` when a certification verification has failed,
but the error parameters will still contain ``ERR_LIB_SSL`` and
``SSL_R_CERTIFICATE_VERIFY_FAILED``. We are now detecting this situation and
raising the appropiate ``ssl.SSLCertVerificationError``. Patch by Pablo
Galindo
..
.. date: 2023-08-03-11-31-11
.. gh-issue: 107576
.. nonce: pO_s9I
.. section: Library
Fix :func:`types.get_original_bases` to only return :attr:`!__orig_bases__`
if it is present on ``cls`` directly. Patch by James Hilton-Balfe.
..
.. date: 2023-07-24-01-21-16
.. gh-issue: 46376
.. nonce: w-xuDL
.. section: Library
Prevent memory leak and use-after-free when using pointers to pointers with
ctypes
..
.. date: 2023-07-23-12-26-23
.. gh-issue: 62519
.. nonce: w8-81X
.. section: Library
Make :func:`gettext.pgettext` search plural definitions when translation is
not found.
..
.. date: 2023-07-22-15-51-33
.. gh-issue: 83006
.. nonce: 21zaCz
.. section: Library
Document behavior of :func:`shutil.disk_usage` for non-mounted filesystems
on Unix.
..
.. date: 2023-07-22-13-09-28
.. gh-issue: 106186
.. nonce: EIsUNG
.. section: Library
Do not report ``MultipartInvariantViolationDefect`` defect when the
:class:`email.parser.Parser` class is used to parse emails with
``headersonly=True``.
..
.. date: 2023-07-22-12-53-53
.. gh-issue: 105002
.. nonce: gkfsW0
.. section: Library
Fix invalid result from :meth:`PurePath.relative_to` method when attempting
to walk a "``..``" segment in *other* with *walk_up* enabled. A
:exc:`ValueError` exception is now raised in this case.
..
.. date: 2023-07-17-21-45-15
.. gh-issue: 106831
.. nonce: RqVq9X
.. section: Library
Fix potential missing ``NULL`` check of ``d2i_SSL_SESSION`` result in
``_ssl.c``.
..
.. date: 2023-07-15-10-24-56
.. gh-issue: 106774
.. nonce: FJcqCj
.. section: Library
Update the bundled copy of pip to version 23.2.1.
..
.. date: 2023-07-14-16-54-13
.. gh-issue: 106752
.. nonce: BT1Yxw
.. section: Library
Fixed several bugs in zipfile.Path, including: in ``Path.match`, Windows
separators are no longer honored (and never were meant to be); Fixed
``name``/``suffix``/``suffixes``/``stem`` operations when no filename is
present and the Path is not at the root of the zipfile; Reworked glob for
performance and more correct matching behavior.
..
.. date: 2023-07-12-04-58-45
.. gh-issue: 106602
.. nonce: dGCcXe
.. section: Library
Add __copy__ and __deepcopy__ in :mod:`enum`
..
.. date: 2023-07-11-09-25-40
.. gh-issue: 106530
.. nonce: VgXrMx
.. section: Library
Revert a change to :func:`colorsys.rgb_to_hls` that caused division by zero
for certain almost-white inputs. Patch by Terry Jan Reedy.
..
.. date: 2023-07-04-07-25-30
.. gh-issue: 106403
.. nonce: GmefbV
.. section: Library
Instances of :class:`typing.TypeVar`, :class:`typing.ParamSpec`,
:class:`typing.ParamSpecArgs`, :class:`typing.ParamSpecKwargs`, and
:class:`typing.TypeVarTuple` once again support weak references, fixing a
regression introduced in Python 3.12.0 beta 1. Patch by Jelle Zijlstra.
..
.. date: 2023-07-03-03-46-20
.. gh-issue: 106350
.. nonce: LLcTEe
.. section: Library
Detect possible memory allocation failure in the libtommath function
:c:func:`mp_init` used by the ``_tkinter`` module.
..
.. date: 2023-06-30-16-42-44
.. gh-issue: 106263
.. nonce: tk-t93
.. section: Library
Fix crash when calling ``repr`` with a manually constructed SignalDict
object. Patch by Charlie Zhao.
..
.. date: 2023-06-10-12-20-17
.. gh-issue: 105626
.. nonce: XyZein
.. section: Library
Change the default return value of
:meth:`http.client.HTTPConnection.get_proxy_response_headers` to be ``None``
and not ``{}``.
..
.. bpo: 18319
.. date: 2020-05-03-00-33-15
.. nonce: faPTlx
.. section: Library
Ensure `gettext(msg)` retrieve translations even if a plural form exists. In
other words: `gettext(msg) == ngettext(msg, '', 1)`.
..
.. date: 2023-07-26-16-33-04
.. gh-issue: 107305
.. nonce: qB2LS4
.. section: Documentation
Add documentation for :c:type:`PyInterpreterConfig` and
:c:func:`Py_NewInterpreterFromConfig`. Also clarify some of the nearby docs
relative to per-interpreter GIL.
..
.. date: 2023-07-22-15-14-13
.. gh-issue: 107008
.. nonce: 3JQ1Vt
.. section: Documentation
Document the :mod:`curses` module variables :const:`~curses.LINES` and
:const:`~curses.COLS`.
..
.. date: 2023-07-21-11-51-57
.. gh-issue: 106948
.. nonce: K_JQ7j
.. section: Documentation
Add a number of standard external names to ``nitpick_ignore``.
..
.. date: 2023-05-16-22-08-24
.. gh-issue: 54738
.. nonce: mJvCnj
.. section: Documentation
Add documentation on how to localize the :mod:`argparse` module.
..
.. date: 2023-07-25-14-36-33
.. gh-issue: 107237
.. nonce: y1pY79
.. section: Tests
``test_logging``: Fix ``test_udp_reconnection()`` by increasing the timeout
from 100 ms to 5 minutes (LONG_TIMEOUT). Patch by Victor Stinner.
..
.. date: 2023-07-22-13-49-40
.. gh-issue: 106714
.. nonce: btYI5S
.. section: Tests
test_capi: Fix test_no_FatalError_infinite_loop() to no longer write a
coredump, by using test.support.SuppressCrashReport. Patch by Victor
Stinner.
..
.. date: 2023-07-16-02-57-08
.. gh-issue: 104090
.. nonce: cKtK7g
.. section: Tests
Avoid creating a reference to the test object in
:meth:`~unittest.TestResult.collectedDurations`.
..
.. date: 2023-07-14-16-20-06
.. gh-issue: 106752
.. nonce: gd1i6D
.. section: Tests
Moved tests for ``zipfile.Path`` into ``Lib/test/test_zipfile/_path``. Made
``zipfile._path`` a package.
..
.. date: 2023-07-28-18-17-33
.. gh-issue: 106881
.. nonce: U3Ezdq
.. section: Build
Check for `linux/limits.h` before including it in `Modules/posixmodule.c`.
..
.. date: 2023-07-23-00-38-51
.. gh-issue: 106962
.. nonce: VVYrWB
.. section: Build
Detect MPI compilers in :file:`configure`.
..
.. date: 2023-02-03-21-36-42
.. gh-issue: 101538
.. nonce: sF5F6S
.. section: Build
Add experimental wasi-threads support. Patch by Takashi Yamamoto.
..
.. date: 2023-07-11-20-48-17
.. gh-issue: 99079
.. nonce: CIMftz
.. section: Windows
Update Windows build to use OpenSSL 3.0.9
..
.. date: 2023-07-30-23-42-20
.. gh-issue: 99079
.. nonce: JAtoh1
.. section: macOS
Update macOS installer to use OpenSSL 3.0.9.
..
.. date: 2023-07-21-23-16-05
.. gh-issue: 106970
.. nonce: NLRnml
.. section: Tools/Demos
Fix bugs in the Argument Clinic ``destination <name> clear`` command; the
destination buffers would never be cleared, and the ``destination``
directive parser would simply continue to the fault handler after processing
the command. Patch by Erlend E. Aasland.
..
.. date: 2023-04-05-07-19-36
.. gh-issue: 103186
.. nonce: yEozgK
.. section: Tools/Demos
``freeze`` now fetches ``CONFIG_ARGS`` from the original CPython instance
the Makefile uses to call utility scripts. Patch by Ijtaba Hussain.
..
.. date: 2023-07-25-13-41-09
.. gh-issue: 107226
.. nonce: N919zH
.. section: C API
:c:func:`PyModule_AddObjectRef` is now only available in the limited API
version 3.10 or later.
|