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
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
|
.. date: 2024-01-02-19-52-23
.. gh-issue: 113659
.. nonce: DkmnQc
.. release date: 2024-01-17
.. section: Security
Skip ``.pth`` files with names starting with a dot or hidden file attribute.
..
.. date: 2023-12-06-14-06-59
.. gh-issue: 112302
.. nonce: 3bl20f
.. section: Security
Created a Software Bill-of-Materials document and tooling for tracking
dependencies.
..
.. date: 2024-01-11-16-54-55
.. gh-issue: 107901
.. nonce: Td3JPI
.. section: Core and Builtins
Compiler duplicates basic blocks that have an eval breaker check, no line
number, and multiple predecessors.
..
.. date: 2024-01-11-14-03-31
.. gh-issue: 107901
.. nonce: U65IyC
.. section: Core and Builtins
A jump leaving an exception handler back to normal code no longer checks the
eval breaker.
..
.. date: 2024-01-11-01-28-25
.. gh-issue: 113655
.. nonce: Mfioxp
.. section: Core and Builtins
Set the C recursion limit to 4000 on Windows, and 10000 on Linux/OSX. This
seems to be near the sweet spot to maintain safety, but not compromise
backwards compatibility.
..
.. date: 2024-01-09-23-01-00
.. gh-issue: 113710
.. nonce: pe3flY
.. section: Core and Builtins
Add typed stack effects to the interpreter DSL, along with various
instruction annotations.
..
.. date: 2024-01-08-14-34-02
.. gh-issue: 77046
.. nonce: sDUh2d
.. section: Core and Builtins
On Windows, file descriptors wrapping Windows handles are now created non
inheritable by default (:pep:`446`). Patch by Zackery Spytz and Victor
Stinner.
..
.. date: 2024-01-08-05-36-59
.. gh-issue: 113853
.. nonce: lm-6_a
.. section: Core and Builtins
Guarantee that all executors make progress. This then guarantees that tier 2
execution always makes progress.
..
.. date: 2024-01-05-21-28-48
.. gh-issue: 113753
.. nonce: 2HNiuq
.. section: Core and Builtins
Fix an issue where the finalizer of ``PyAsyncGenASend`` objects might not be
called if they were allocated from a free list.
..
.. date: 2024-01-05-00-49-14
.. gh-issue: 107901
.. nonce: 6JRrb6
.. section: Core and Builtins
Compiler changed so that synthetic jumps which are not at loop end no longer
check the eval breaker.
..
.. date: 2024-01-04-17-15-30
.. gh-issue: 113703
.. nonce: Zsk0pY
.. section: Core and Builtins
Fix a regression in the :mod:`codeop` module that was causing it to
incorrectly identify incomplete f-strings. Patch by Pablo Galindo
..
.. date: 2024-01-03-12-19-37
.. gh-issue: 89811
.. nonce: cZOj6d
.. section: Core and Builtins
Check for a valid ``tp_version_tag`` before performing bytecode
specializations that rely on this value being usable.
..
.. date: 2024-01-02-17-22-57
.. gh-issue: 111488
.. nonce: EJH3Oh
.. section: Core and Builtins
Changed error message in case of no 'in' keyword after 'for' in list
comprehensions
..
.. date: 2024-01-02-11-14-29
.. gh-issue: 113657
.. nonce: CQo9vF
.. section: Core and Builtins
Fix an issue that caused important instruction pointer updates to be
optimized out of tier two traces.
..
.. date: 2024-01-01-23-57-24
.. gh-issue: 113603
.. nonce: ySwovr
.. section: Core and Builtins
Fixed bug where a redundant NOP is not removed, causing an assertion to fail
in the compiler in debug mode.
..
.. date: 2024-01-01-00-07-02
.. gh-issue: 113602
.. nonce: cWuTzk
.. section: Core and Builtins
Fix an error that was causing the parser to try to overwrite existing errors
and crashing in the process. Patch by Pablo Galindo
..
.. date: 2023-12-31-07-46-01
.. gh-issue: 113486
.. nonce: uki19C
.. section: Core and Builtins
No longer issue spurious ``PY_UNWIND`` events for optimized calls to
classes.
..
.. date: 2023-12-20-18-27-11
.. gh-issue: 113297
.. nonce: BZyAI_
.. section: Core and Builtins
Fix segfault in the compiler on with statement with 19 context managers.
..
.. date: 2023-12-20-08-54-54
.. gh-issue: 113212
.. nonce: 62AUlw
.. section: Core and Builtins
Improve :py:class:`super` error messages.
..
.. date: 2023-12-19-22-03-43
.. gh-issue: 111375
.. nonce: M9vuA6
.. section: Core and Builtins
Only use ``NULL`` in the exception stack to indicate an exception was
handled. Patch by Carey Metcalfe.
..
.. date: 2023-12-15-16-26-01
.. gh-issue: 112215
.. nonce: xJS6_6
.. section: Core and Builtins
Increase the C recursion limit by a factor of 3 for non-debug builds, except
for webassembly and s390 platforms which are unchanged. This mitigates some
regressions in 3.12 with deep recursion mixing builtin (C) and Python code.
..
.. date: 2023-12-14-20-08-35
.. gh-issue: 113054
.. nonce: e20CtM
.. section: Core and Builtins
Fixed bug where a redundant NOP is not removed, causing an assertion to fail
in the compiler in debug mode.
..
.. date: 2023-12-13-11-45-53
.. gh-issue: 106905
.. nonce: 5dslTN
.. section: Core and Builtins
Use per AST-parser state rather than global state to track recursion depth
within the AST parser to prevent potential race condition due to
simultaneous parsing.
The issue primarily showed up in 3.11 by multithreaded users of
:func:`ast.parse`. In 3.12 a change to when garbage collection can be
triggered prevented the race condition from occurring.
..
.. date: 2023-12-12-04-53-19
.. gh-issue: 108866
.. nonce: xbJ-9a
.. section: Core and Builtins
Change the API and contract of ``_PyExecutorObject`` to return the
next_instr pointer, instead of the frame, and to always execute at least one
instruction.
..
.. date: 2023-12-11-19-53-32
.. gh-issue: 90350
.. nonce: -FQy3E
.. section: Core and Builtins
Optimize builtin functions :func:`min` and :func:`max`.
..
.. date: 2023-12-11-00-50-00
.. gh-issue: 112943
.. nonce: RHNZie
.. section: Core and Builtins
Correctly compute end column offsets for multiline tokens in the
:mod:`tokenize` module. Patch by Pablo Galindo
..
.. date: 2023-12-07-13-19-55
.. gh-issue: 112125
.. nonce: 4ADN7i
.. section: Core and Builtins
Fix ``None.__ne__(None)`` returning ``NotImplemented`` instead of ``False``.
..
.. date: 2023-12-07-12-00-04
.. gh-issue: 74616
.. nonce: kgTGVb
.. section: Core and Builtins
:func:`input` now raises a ValueError when output on the terminal if the
prompt contains embedded null characters instead of silently truncating it.
..
.. date: 2023-12-05-20-41-58
.. gh-issue: 112716
.. nonce: hOcx0Y
.. section: Core and Builtins
Fix SystemError in the ``import`` statement and in ``__reduce__()`` methods
of builtin types when ``__builtins__`` is not a dict.
..
.. date: 2023-12-04-23-09-07
.. gh-issue: 112730
.. nonce: BXHlFa
.. section: Core and Builtins
Use color to highlight error locations in tracebacks. Patch by Pablo Galindo
..
.. date: 2023-12-03-19-34-51
.. gh-issue: 112625
.. nonce: QWTlwS
.. section: Core and Builtins
Fixes a bug where a bytearray object could be cleared while iterating over
an argument in the ``bytearray.join()`` method that could result in reading
memory after it was freed.
..
.. date: 2023-12-03-15-29-53
.. gh-issue: 112660
.. nonce: gldBvh
.. section: Core and Builtins
Do not clear unexpected errors during formatting error messages for
ImportError and AttributeError for modules.
..
.. date: 2023-12-01-19-02-21
.. gh-issue: 105967
.. nonce: Puq5Cn
.. section: Core and Builtins
Workaround a bug in Apple's macOS platform zlib library where
:func:`zlib.crc32` and :func:`binascii.crc32` could produce incorrect
results on multi-gigabyte inputs. Including when using :mod:`zipfile` on
zips containing large data.
..
.. date: 2023-12-01-08-16-10
.. gh-issue: 95754
.. nonce: ae4gwy
.. section: Core and Builtins
Provide a better error message when accessing invalid attributes on
partially initialized modules. The origin of the module being accessed is
now included in the message to help with the common issue of shadowing other
modules.
..
.. date: 2023-11-27-18-55-30
.. gh-issue: 112217
.. nonce: SwFLMj
.. section: Core and Builtins
Add check for the type of ``__cause__`` returned from calling the type ``T``
in ``raise from T``.
..
.. date: 2023-11-26-21-30-11
.. gh-issue: 111058
.. nonce: q4DqDY
.. section: Core and Builtins
Change coro.cr_frame/gen.gi_frame to return ``None`` after the
coroutine/generator has been closed. This fixes a bug where
:func:`~inspect.getcoroutinestate` and :func:`~inspect.getgeneratorstate`
return the wrong state for a closed coroutine/generator.
..
.. date: 2023-11-25-22-58-49
.. gh-issue: 112388
.. nonce: MU3cIM
.. section: Core and Builtins
Fix an error that was causing the parser to try to overwrite tokenizer
errors. Patch by pablo Galindo
..
.. date: 2023-11-25-22-39-44
.. gh-issue: 112387
.. nonce: AbBq5W
.. section: Core and Builtins
Fix error positions for decoded strings with backwards tokenize errors.
Patch by Pablo Galindo
..
.. date: 2023-11-25-20-36-38
.. gh-issue: 99606
.. nonce: fDY5hK
.. section: Core and Builtins
Make code generated for an empty f-string identical to the code of an empty
normal string.
..
.. date: 2023-11-24-14-10-57
.. gh-issue: 112367
.. nonce: 9z1IDp
.. section: Core and Builtins
Avoid undefined behaviour when using the perf trampolines by not freeing the
code arenas until shutdown. Patch by Pablo Galindo
..
.. date: 2023-11-22-13-17-54
.. gh-issue: 112320
.. nonce: EddM51
.. section: Core and Builtins
The Tier 2 translator now tracks the confidence level for staying "on trace"
(i.e. not exiting back to the Tier 1 interpreter) for branch instructions
based on the number of bits set in the branch "counter". Trace translation
ends when the confidence drops below 1/3rd.
..
.. date: 2023-09-21-11-54-28
.. gh-issue: 109598
.. nonce: CRidSy
.. section: Core and Builtins
:c:func:`PyComplex_RealAsDouble`/:c:func:`PyComplex_ImagAsDouble` now tries
to convert an object to a :class:`complex` instance using its
``__complex__()`` method before falling back to the ``__float__()`` method.
Patch by Sergey B Kirpichev.
..
.. date: 2022-07-07-05-37-53
.. gh-issue: 94606
.. nonce: hojJ54
.. section: Core and Builtins
Fix UnicodeEncodeError when :func:`email.message.get_payload` reads a
message with a Unicode surrogate character and the message content is not
well-formed for surrogateescape encoding. Patch by Sidney Markowitz.
..
.. bpo: 21861
.. date: 2022-01-23-18-00-10
.. nonce: N8E1zw
.. section: Core and Builtins
Use the object's actual class name in :meth:`_io.FileIO.__repr__`,
:meth:`_io._WindowsConsoleIO` and :meth:`_io.TextIOWrapper.__repr__`, to
make these methods subclass friendly.
..
.. bpo: 45369
.. date: 2021-10-05-05-00-16
.. nonce: tluk_X
.. section: Core and Builtins
Remove LibreSSL workarounds as per :pep:`644`.
..
.. bpo: 34392
.. date: 2018-08-13-13-25-15
.. nonce: 9kIlMF
.. section: Core and Builtins
Added :func:`sys._is_interned`.
..
.. date: 2024-01-15-12-12-54
.. gh-issue: 114077
.. nonce: KcVnfj
.. section: Library
Fix possible :exc:`OverflowError` in :meth:`socket.socket.sendfile` when
pass *count* larger than 2 GiB on 32-bit platform.
..
.. date: 2024-01-13-14-20-31
.. gh-issue: 111803
.. nonce: llpLAw
.. section: Library
:mod:`plistlib` now supports loading more deeply nested lists in binary
format.
..
.. date: 2024-01-13-11-34-29
.. gh-issue: 114014
.. nonce: WRHifN
.. section: Library
Fixed a bug in :class:`fractions.Fraction` where an invalid string using
``d`` in the decimals part creates a different error compared to other
invalid letters/characters. Patch by Jeremiah Gabriel Pascual.
..
.. date: 2024-01-11-22-22-51
.. gh-issue: 108364
.. nonce: QH7C-1
.. section: Library
:meth:`sqlite3.Connection.iterdump` now ensures that foreign key support is
disabled before dumping the database schema, if there is any foreign key
violation. Patch by Erlend E. Aasland and Mariusz Felisiak.
..
.. date: 2024-01-11-16-58-10
.. gh-issue: 113971
.. nonce: skJZ4g
.. section: Library
The :class:`zipfile.ZipInfo` previously protected ``._compresslevel``
attribute has been made public as ``.compress_level`` with the old
``_compresslevel`` name remaining available as a property to retain
compatibility.
..
.. date: 2024-01-10-12-03-38
.. gh-issue: 113877
.. nonce: RxKlrQ
.. section: Library
Fix :mod:`tkinter` method ``winfo_pathname()`` on 64-bit Windows.
..
.. date: 2024-01-09-18-07-08
.. gh-issue: 113868
.. nonce: DlZG2r
.. section: Library
Added :data:`mmap.MAP_NORESERVE`, :data:`mmap.MAP_NOEXTEND`,
:data:`mmap.MAP_HASSEMAPHORE`, :data:`mmap.MAP_NOCACHE`,
:data:`mmap.MAP_JIT`, :data:`mmap.MAP_RESILIENT_CODESIGN`,
:data:`mmap.MAP_RESILIENT_MEDIA`, :data:`mmap.MAP_32BIT`,
:data:`mmap.MAP_TRANSLATED_ALLOW_EXECUTE`, :data:`mmap.MAP_UNIX03` and
:data:`mmap.MAP_TPRO`. All of them are ``mmap(2)`` flags on macOS.
..
.. date: 2024-01-09-12-19-55
.. gh-issue: 113848
.. nonce: kXoCy0
.. section: Library
:func:`asyncio.TaskGroup()` and :func:`asyncio.timeout()` context managers
now handle :exc:`~asyncio.CancelledError` subclasses as well as exact
:exc:`!CancelledError`.
..
.. date: 2024-01-09-08-59-43
.. gh-issue: 113661
.. nonce: asvXSx
.. section: Library
unittest runner: Don't exit 5 if tests were skipped. The intention of
exiting 5 was to detect issues where the test suite wasn't discovered at
all. If we skipped tests, it was correctly discovered.
..
.. date: 2024-01-08-19-38-42
.. gh-issue: 96037
.. nonce: Yr2Y1C
.. section: Library
Insert :exc:`TimeoutError` in the context of the exception that was raised
during exiting an expired :func:`asyncio.timeout` block.
..
.. date: 2024-01-08-14-57-09
.. gh-issue: 113781
.. nonce: IoTnwi
.. section: Library
Silence unraisable AttributeError when warnings are emitted during Python
finalization.
..
.. date: 2024-01-07-23-31-44
.. gh-issue: 113238
.. nonce: wFWBfW
.. section: Library
Add ``Anchor`` to ``importlib.resources`` (in order for the code to comply
with the documentation)
..
.. date: 2024-01-07-13-36-03
.. gh-issue: 111693
.. nonce: xN2LuL
.. section: Library
:func:`asyncio.Condition.wait()` now re-raises the same
:exc:`CancelledError` instance that may have caused it to be interrupted.
Fixed race condition in :func:`asyncio.Semaphore.aquire` when interrupted
with a :exc:`CancelledError`.
..
.. date: 2024-01-07-11-45-56
.. gh-issue: 113791
.. nonce: XF5xSW
.. section: Library
Add ``CLOCK_MONOTONIC_RAW_APPROX`` and ``CLOCK_UPTIME_RAW_APPROX`` to
:mod:`time` on macOS. These are clocks available on macOS 10.12 or later.
..
.. date: 2024-01-07-00-56-41
.. gh-issue: 112932
.. nonce: OfhUu7
.. section: Library
Restore the ability for :mod:`zipfile` to ``extractall`` from zip files with
a "/" directory entry in them as is commonly added to zips by some wiki or
bug tracker data exporters.
..
.. date: 2024-01-05-21-52-59
.. gh-issue: 113568
.. nonce: _0FkpZ
.. section: Library
Raise deprecation warnings from :class:`pathlib.PurePath` and not its
private base class ``PurePathBase``.
..
.. date: 2024-01-05-12-42-07
.. gh-issue: 113594
.. nonce: 4t8HiR
.. section: Library
Fix :exc:`UnicodeEncodeError` in :mod:`email` when re-fold lines that
contain unknown-8bit encoded part followed by non-unknown-8bit encoded part.
..
.. date: 2024-01-03-14-19-26
.. gh-issue: 113538
.. nonce: ahuBCo
.. section: Library
In :meth:`asyncio.StreamReaderProtocol.connection_made`, there is callback
that logs an error if the task wrapping the "connected callback" fails. This
callback would itself fail if the task was cancelled. Prevent this by
checking whether the task was cancelled first. If so, close the transport
but don't log an error.
..
.. date: 2024-01-02-12-41-59
.. gh-issue: 113626
.. nonce: i1PPY_
.. section: Library
Add support for the *allow_code* argument in the :mod:`marshal` module.
Passing ``allow_code=False`` prevents serialization and de-serialization of
code objects which is incompatible between Python versions.
..
.. date: 2024-01-01-13-26-02
.. gh-issue: 85567
.. nonce: K4U15m
.. section: Library
Fix resource warnings for unclosed files in :mod:`pickle` and
:mod:`pickletools` command line interfaces.
..
.. date: 2023-12-30-20-30-05
.. gh-issue: 113537
.. nonce: v1W5_X
.. section: Library
Support loads ``str`` in :func:`plistlib.loads`.
..
.. date: 2023-12-29-22-29-34
.. gh-issue: 89850
.. nonce: KnxiZA
.. section: Library
Add default implementations of :meth:`pickle.Pickler.persistent_id` and
:meth:`pickle.Unpickler.persistent_load` methods in the C implementation.
Calling ``super().persistent_id()`` and ``super().persistent_load()`` in
subclasses of the C implementation of :class:`pickle.Pickler` and
:class:`pickle.Unpickler` classes no longer causes infinite recursion.
..
.. date: 2023-12-29-17-57-45
.. gh-issue: 113569
.. nonce: qcRCEI
.. section: Library
Indicate if there were no actual calls in unittest
:meth:`~unittest.mock.Mock.assert_has_calls` failure.
..
.. date: 2023-12-29-17-46-06
.. gh-issue: 101225
.. nonce: QaEyxF
.. section: Library
Increase the backlog for :class:`multiprocessing.connection.Listener`
objects created by :mod:`multiprocessing.manager` and
:mod:`multiprocessing.resource_sharer` to significantly reduce the risk of
getting a connection refused error when creating a
:class:`multiprocessing.connection.Connection` to them.
..
.. date: 2023-12-29-17-30-49
.. gh-issue: 113568
.. nonce: UpWNAI
.. section: Library
Raise audit events from :class:`pathlib.Path` and not its private base class
``PathBase``.
..
.. date: 2023-12-28-14-36-20
.. gh-issue: 113543
.. nonce: 2iWkOR
.. section: Library
Make sure that ``webbrowser.MacOSXOSAScript`` sends ``webbrowser.open``
audit event.
..
.. date: 2023-12-23-16-51-17
.. gh-issue: 113028
.. nonce: 3Jmdoj
.. section: Library
When a second reference to a string appears in the input to :mod:`pickle`,
and the Python implementation is in use, we are guaranteed that a single
copy gets pickled and a single object is shared when reloaded. Previously,
in protocol 0, when a string contained certain characters (e.g. newline) it
resulted in duplicate objects.
..
.. date: 2023-12-23-16-10-07
.. gh-issue: 113421
.. nonce: w7vs08
.. section: Library
Fix multiprocessing logger for ``%(filename)s``.
..
.. date: 2023-12-23-13-10-42
.. gh-issue: 111784
.. nonce: Nb4L1j
.. section: Library
Fix segfaults in the ``_elementtree`` module. Fix first segfault during
deallocation of ``_elementtree.XMLParser`` instances by keeping strong
reference to ``pyexpat`` module in module state for capsule lifetime. Fix
second segfault which happens in the same deallocation process by keeping
strong reference to ``_elementtree`` module in ``XMLParser`` structure for
``_elementtree`` module lifetime.
..
.. date: 2023-12-22-20-49-52
.. gh-issue: 113407
.. nonce: C_O13_
.. section: Library
Fix import of :mod:`unittest.mock` when CPython is built without docstrings.
..
.. date: 2023-12-22-11-30-57
.. gh-issue: 113320
.. nonce: Vp5suS
.. section: Library
Fix regression in Python 3.12 where :class:`~typing.Protocol` classes that
were not marked as :func:`runtime-checkable <typing.runtime_checkable>`
would be unnecessarily introspected, potentially causing exceptions to be
raised if the protocol had problematic members. Patch by Alex Waygood.
..
.. date: 2023-12-21-23-47-42
.. gh-issue: 53502
.. nonce: dercJI
.. section: Library
Add a new option ``aware_datetime`` in :mod:`plistlib` to loads or dumps
aware datetime.
..
.. date: 2023-12-21-14-55-06
.. gh-issue: 113358
.. nonce: nRkiSL
.. section: Library
Fix rendering tracebacks with exceptions with a broken __getattr__
..
.. date: 2023-12-20-21-18-51
.. gh-issue: 113214
.. nonce: JcV9Mn
.. section: Library
Fix an ``AttributeError`` during asyncio SSL protocol aborts in SSL-over-SSL
scenarios.
..
.. date: 2023-12-18-09-47-54
.. gh-issue: 113246
.. nonce: em930H
.. section: Library
Update bundled pip to 23.3.2.
..
.. date: 2023-12-17-13-56-30
.. gh-issue: 87264
.. nonce: RgfHCv
.. section: Library
Fixed tarfile list() method to show file type.
..
.. date: 2023-12-17-10-22-55
.. gh-issue: 112182
.. nonce: jLWGlr
.. section: Library
:meth:`asyncio.futures.Future.set_exception()` now transforms
:exc:`StopIteration` into :exc:`RuntimeError` instead of hanging or other
misbehavior. Patch contributed by Jamie Phan.
..
.. date: 2023-12-17-04-43-57
.. gh-issue: 113225
.. nonce: dhxhiZ
.. section: Library
Speed up :meth:`pathlib.Path.glob` by using :attr:`os.DirEntry.path` where
possible.
..
.. date: 2023-12-16-23-56-42
.. gh-issue: 113149
.. nonce: 7LWgTS
.. section: Library
Improve error message when a JSON array or object contains a trailing comma.
Patch by Carson Radtke.
..
.. date: 2023-12-16-10-58-34
.. gh-issue: 113117
.. nonce: 0zF7bH
.. section: Library
The :mod:`subprocess` module can now use the :func:`os.posix_spawn` function
with ``close_fds=True`` on platforms where
``posix_spawn_file_actions_addclosefrom_np`` is available. Patch by Jakub
Kulik.
..
.. date: 2023-12-16-01-10-47
.. gh-issue: 113199
.. nonce: oDjnjL
.. section: Library
Make ``http.client.HTTPResponse.read1`` and
``http.client.HTTPResponse.readline`` close IO after reading all data when
content length is known. Patch by Illia Volochii.
..
.. date: 2023-12-15-21-33-42
.. gh-issue: 113191
.. nonce: Il155b
.. section: Library
Add support of :func:`os.fchmod` and a file descriptor in :func:`os.chmod`
on Windows.
..
.. date: 2023-12-15-20-29-49
.. gh-issue: 113188
.. nonce: AvoraB
.. section: Library
Fix :func:`shutil.copymode` and :func:`shutil.copystat` on Windows.
Previously they worked differenly if *dst* is a symbolic link: they modified
the permission bits of *dst* itself rather than the file it points to if
*follow_symlinks* is true or *src* is not a symbolic link, and did not
modify the permission bits if *follow_symlinks* is false and *src* is a
symbolic link.
..
.. date: 2023-12-15-18-13-59
.. gh-issue: 113119
.. nonce: al-569
.. section: Library
:func:`os.posix_spawn` now accepts ``env=None``, which makes the newly
spawned process use the current process environment. Patch by Jakub Kulik.
..
.. date: 2023-12-15-18-10-26
.. gh-issue: 113202
.. nonce: xv_Ww8
.. section: Library
Add a ``strict`` option to ``batched()`` in the ``itertools`` module.
..
.. date: 2023-12-15-12-35-28
.. gh-issue: 61648
.. nonce: G-4pz0
.. section: Library
Detect line numbers of properties in doctests.
..
.. date: 2023-12-15-09-51-41
.. gh-issue: 113175
.. nonce: RHsNwE
.. section: Library
Sync with importlib_metadata 7.0, including improved type annotations, fixed
issue with symlinked packages in ``package_distributions``, added
``EntryPoints.__repr__``, introduced the ``diagnose`` script, added
``Distribution.origin`` property, and removed deprecated ``EntryPoint``
access by numeric index (tuple behavior).
..
.. date: 2023-12-13-17-08-21
.. gh-issue: 59616
.. nonce: JNlWSs
.. section: Library
Add support of :func:`os.lchmod` and the *follow_symlinks* argument in
:func:`os.chmod` on Windows. Note that the default value of
*follow_symlinks* in :func:`!os.lchmod` is ``False`` on Windows.
..
.. date: 2023-12-12-20-15-57
.. gh-issue: 112559
.. nonce: IgXkje
.. section: Library
:func:`signal.signal` and :func:`signal.getsignal` no longer call ``repr``
on callable handlers. :func:`asyncio.run` and :meth:`asyncio.Runner.run` no
longer call ``repr`` on the task results. Patch by Yilei Yang.
..
.. date: 2023-12-12-16-32-55
.. gh-issue: 112962
.. nonce: ZZWXZn
.. section: Library
:mod:`dis` module functions add cache information to the
:class:`~dis.Instruction` instance rather than creating fake
:class:`~dis.Instruction` instances to represent the cache entries.
..
.. date: 2023-12-12-05-48-17
.. gh-issue: 112989
.. nonce: ZAa_eq
.. section: Library
Reduce overhead to connect sockets with :mod:`asyncio` SelectorEventLoop.
..
.. date: 2023-12-11-16-13-15
.. gh-issue: 112970
.. nonce: 87jmKP
.. section: Library
Use :c:func:`!closefrom` on Linux where available (e.g. glibc-2.34), rather
than only FreeBSD.
..
.. date: 2023-12-11-14-12-46
.. gh-issue: 110190
.. nonce: e0iEUa
.. section: Library
Fix ctypes structs with array on PPC64LE platform by setting
``MAX_STRUCT_SIZE`` to 64 in stgdict. Patch by Diego Russo.
..
.. date: 2023-12-08-11-17-17
.. gh-issue: 112540
.. nonce: Pm5egX
.. section: Library
The statistics.geometric_mean() function now returns zero for datasets
containing a zero. Formerly, it would raise an exception.
..
.. date: 2023-12-07-16-55-41
.. gh-issue: 87286
.. nonce: MILC9_
.. section: Library
Added :const:`LOG_FTP`, :const:`LOG_NETINFO`, :const:`LOG_REMOTEAUTH`,
:const:`LOG_INSTALL`, :const:`LOG_RAS`, and :const:`LOG_LAUNCHD` tot the
:mod:`syslog` module, all of them constants on used on macOS.
..
.. date: 2023-12-06-16-01-33
.. gh-issue: 112800
.. nonce: TNsGJ-
.. section: Library
Fix :mod:`asyncio` ``SubprocessTransport.close()`` not to throw
``PermissionError`` when used with setuid executables.
..
.. date: 2023-12-06-14-06-14
.. gh-issue: 51944
.. nonce: -5qq_L
.. section: Library
Add the following constants to the :mod:`termios` module. These values are
present in macOS system headers: ``ALTWERASE``, ``B14400``, ``B28800``,
``B7200``, ``B76800``, ``CCAR_OFLOW``, ``CCTS_OFLOW``, ``CDSR_OFLOW``,
``CDTR_IFLOW``, ``CIGNORE``, ``CRTS_IFLOW``, ``EXTPROC``, ``IUTF8``,
``MDMBUF``, ``NL2``, ``NL3``, ``NOKERNINFO``, ``ONOEOT``, ``OXTABS``,
``VDSUSP``, ``VSTATUS``.
..
.. date: 2023-12-05-18-57-53
.. gh-issue: 79325
.. nonce: P2vMVK
.. section: Library
Fix an infinite recursion error in :func:`tempfile.TemporaryDirectory`
cleanup on Windows.
..
.. date: 2023-12-05-16-20-40
.. gh-issue: 94692
.. nonce: -e5C3c
.. section: Library
:func:`shutil.rmtree` now only catches OSError exceptions. Previously a
symlink attack resistant version of ``shutil.rmtree()`` could ignore or pass
to the error handler arbitrary exception when invalid arguments were
provided.
..
.. date: 2023-12-05-01-19-28
.. gh-issue: 112736
.. nonce: rdHDrU
.. section: Library
The use of del-safe symbols in ``subprocess`` was refactored to allow for
use in cross-platform build environments.
..
.. date: 2023-12-04-21-30-34
.. gh-issue: 112727
.. nonce: jpgNRB
.. section: Library
Speed up :meth:`pathlib.Path.absolute`. Patch by Barney Gale.
..
.. date: 2023-12-04-16-45-11
.. gh-issue: 74690
.. nonce: pQYP5U
.. section: Library
Speedup :func:`issubclass` checks against simple :func:`runtime-checkable
protocols <typing.runtime_checkable>` by around 6%. Patch by Alex Waygood.
..
.. date: 2023-12-04-14-05-24
.. gh-issue: 74690
.. nonce: eODKRm
.. section: Library
Speedup :func:`isinstance` checks by roughly 20% for
:func:`runtime-checkable protocols <typing.runtime_checkable>` that only
have one callable member. Speedup :func:`issubclass` checks for these
protocols by roughly 10%. Patch by Alex Waygood.
..
.. date: 2023-12-03-12-41-48
.. gh-issue: 112645
.. nonce: blMsKf
.. section: Library
Remove deprecation error on passing ``onerror`` to :func:`shutil.rmtree`.
..
.. date: 2023-12-03-11-15-53
.. gh-issue: 112640
.. nonce: -FVwP7
.. section: Library
Add ``kwdefaults`` parameter to :data:`types.FunctionType` to set default
keyword argument values.
..
.. date: 2023-12-03-01-01-52
.. gh-issue: 112622
.. nonce: 1Z8cpx
.. section: Library
Ensure ``name`` parameter is passed to event loop in
:func:`asyncio.create_task`.
..
.. date: 2023-12-02-12-55-17
.. gh-issue: 112618
.. nonce: 7_FT8-
.. section: Library
Fix a caching bug relating to :data:`typing.Annotated`. ``Annotated[str,
True]`` is no longer identical to ``Annotated[str, 1]``.
..
.. date: 2023-12-01-21-05-46
.. gh-issue: 112334
.. nonce: DmNXKh
.. section: Library
Fixed a performance regression in 3.12's :mod:`subprocess` on Linux where it
would no longer use the fast-path ``vfork()`` system call when it could have
due to a logic bug, instead falling back to the safe but slower ``fork()``.
Also fixed a second 3.12.0 potential security bug. If a value of
``extra_groups=[]`` was passed to :mod:`subprocess.Popen` or related APIs,
the underlying ``setgroups(0, NULL)`` system call to clear the groups list
would not be made in the child process prior to ``exec()``.
This was identified via code inspection in the process of fixing the first
bug.
..
.. date: 2023-12-01-18-05-09
.. gh-issue: 110190
.. nonce: 5bf-c9
.. section: Library
Fix ctypes structs with array on Arm platform by setting ``MAX_STRUCT_SIZE``
to 32 in stgdict. Patch by Diego Russo.
..
.. date: 2023-12-01-16-09-59
.. gh-issue: 81194
.. nonce: FFad1c
.. section: Library
Fix a crash in :func:`socket.if_indextoname` with specific value (UINT_MAX).
Fix an integer overflow in :func:`socket.if_indextoname` on 64-bit
non-Windows platforms.
..
.. date: 2023-12-01-08-28-09
.. gh-issue: 112578
.. nonce: bfNbfi
.. section: Library
Fix a spurious :exc:`RuntimeWarning` when executing the :mod:`zipfile`
module.
..
.. date: 2023-11-29-10-51-41
.. gh-issue: 112516
.. nonce: rFKUKN
.. section: Library
Update the bundled copy of pip to version 23.3.1.
..
.. date: 2023-11-29-02-26-32
.. gh-issue: 112510
.. nonce: j-zXGc
.. section: Library
Add :data:`readline.backend` for the backend readline uses (``editline`` or
``readline``)
..
.. date: 2023-11-28-20-47-39
.. gh-issue: 112328
.. nonce: Z2AxEY
.. section: Library
[Enum] Make ``EnumDict``, ``EnumDict.member_names``,
``EnumType._add_alias_`` and ``EnumType._add_value_alias_`` public.
..
.. date: 2023-11-28-20-01-33
.. gh-issue: 112509
.. nonce: QtoKed
.. section: Library
Fix edge cases that could cause a key to be present in both the
``__required_keys__`` and ``__optional_keys__`` attributes of a
:class:`typing.TypedDict`. Patch by Jelle Zijlstra.
..
.. date: 2023-11-28-02-39-30
.. gh-issue: 101336
.. nonce: ya433z
.. section: Library
Add ``keep_alive`` keyword parameter for
:meth:`AbstractEventLoop.create_server` and
:meth:`BaseEventLoop.create_server`.
..
.. date: 2023-11-27-12-41-23
.. gh-issue: 63284
.. nonce: q2Qi9q
.. section: Library
Added support for TLS-PSK (pre-shared key) mode to the :mod:`ssl` module.
..
.. date: 2023-11-26-13-44-19
.. gh-issue: 112414
.. nonce: kx2E7S
.. section: Library
Fix regression in Python 3.12 where calling :func:`repr` on a module that
had been imported using a custom :term:`loader` could fail with
:exc:`AttributeError`. Patch by Alex Waygood.
..
.. date: 2023-11-26-13-26-56
.. gh-issue: 112358
.. nonce: smhaeZ
.. section: Library
Revert change to :class:`struct.Struct` initialization that broke some cases
of subclassing.
..
.. date: 2023-11-25-20-29-28
.. gh-issue: 112405
.. nonce: cOtzxC
.. section: Library
Optimize :meth:`pathlib.PurePath.relative_to`. Patch by Alex Waygood.
..
.. date: 2023-11-24-21-00-24
.. gh-issue: 94722
.. nonce: GMIQIn
.. section: Library
Fix bug where comparison between instances of :class:`~doctest.DocTest`
fails if one of them has ``None`` as its lineno.
..
.. date: 2023-11-24-09-27-01
.. gh-issue: 112361
.. nonce: kYtnHW
.. section: Library
Speed up a small handful of :mod:`pathlib` methods by removing some
temporary objects.
..
.. date: 2023-11-23-17-25-27
.. gh-issue: 112345
.. nonce: FFApHx
.. section: Library
Improve error message when trying to call :func:`issubclass` against a
:class:`typing.Protocol` that has non-method members. Patch by Randolf
Scholz.
..
.. date: 2023-11-23-12-37-22
.. gh-issue: 112137
.. nonce: kM46Q6
.. section: Library
Change :mod:`dis` output to display no-lineno as "--" instead of "None".
..
.. date: 2023-11-23-10-41-21
.. gh-issue: 112332
.. nonce: rhTBaa
.. section: Library
Deprecate the ``exc_type`` field of :class:`traceback.TracebackException`.
Add ``exc_type_str`` to replace it.
..
.. date: 2023-11-22-23-08-47
.. gh-issue: 81620
.. nonce: mfZ2Wf
.. section: Library
Add extra tests for :func:`random.binomialvariate`
..
.. date: 2023-11-22-19-43-54
.. gh-issue: 112292
.. nonce: 5nDU87
.. section: Library
Fix a crash in :mod:`readline` when imported from a sub interpreter. Patch
by Anthony Shaw
..
.. date: 2023-11-21-02-58-14
.. gh-issue: 77621
.. nonce: MYv5XS
.. section: Library
Slightly improve the import time of the :mod:`pathlib` module by deferring
some imports. Patch by Barney Gale.
..
.. date: 2023-11-16-17-18-09
.. gh-issue: 112137
.. nonce: QvjGjN
.. section: Library
Change :mod:`dis` output to display logical labels for jump targets instead
of offsets.
..
.. date: 2023-11-16-10-42-15
.. gh-issue: 112139
.. nonce: WpHosf
.. section: Library
Add :meth:`Signature.format` to format signatures to string with extra
options. And use it in :mod:`pydoc` to render more readable signatures that
have new lines between parameters.
..
.. date: 2023-11-15-04-53-37
.. gh-issue: 112105
.. nonce: I3RcVN
.. section: Library
Make :func:`readline.set_completer_delims` work with libedit
..
.. date: 2023-11-15-01-36-04
.. gh-issue: 106922
.. nonce: qslOVH
.. section: Library
Display multiple lines with ``traceback`` when errors span multiple lines.
..
.. date: 2023-11-09-11-07-34
.. gh-issue: 111874
.. nonce: dzYc3j
.. section: Library
When creating a :class:`typing.NamedTuple` class, ensure
:func:`~object.__set_name__` is called on all objects that define
``__set_name__`` and exist in the values of the ``NamedTuple`` class's class
dictionary. Patch by Alex Waygood.
..
.. date: 2023-11-08-18-53-07
.. gh-issue: 68166
.. nonce: 1iTh4Y
.. section: Library
Add support of the "vsapi" element type in
:meth:`tkinter.ttk.Style.element_create`.
..
.. date: 2023-11-08-16-11-04
.. gh-issue: 110275
.. nonce: Bm6GwR
.. section: Library
Named tuple's methods ``_replace()`` and ``__replace__()`` now raise
TypeError instead of ValueError for invalid keyword arguments.
..
.. date: 2023-11-05-20-09-27
.. gh-issue: 99367
.. nonce: HLaWKo
.. section: Library
Do not mangle ``sys.path[0]`` in :mod:`pdb` if safe_path is set
..
.. date: 2023-11-02-10-13-31
.. gh-issue: 111615
.. nonce: 3SMixi
.. section: Library
Fix a regression caused by a fix to gh-93162 whereby you couldn't configure
a :class:`QueueHandler` without specifying handlers.
..
.. date: 2023-10-25-16-37-13
.. gh-issue: 75666
.. nonce: BpsWut
.. section: Library
Fix the behavior of :mod:`tkinter` widget's ``unbind()`` method with two
arguments. Previously, ``widget.unbind(sequence, funcid)`` destroyed the
current binding for *sequence*, leaving *sequence* unbound, and deleted the
*funcid* command. Now it removes only *funcid* from the binding for
*sequence*, keeping other commands, and deletes the *funcid* command. It
leaves *sequence* unbound only if *funcid* was the last bound command.
..
.. date: 2023-10-25-13-07-53
.. gh-issue: 67790
.. nonce: jMn9Ad
.. section: Library
Implement basic formatting support (minimum width, alignment, fill) for
:class:`fractions.Fraction`.
..
.. date: 2023-10-23-18-42-26
.. gh-issue: 111049
.. nonce: Ys7-o_
.. section: Library
Fix crash during garbage collection of the :class:`io.BytesIO` buffer
object.
..
.. date: 2023-10-23-03-49-34
.. gh-issue: 102980
.. nonce: aXBd54
.. section: Library
Redirect the output of ``interact`` command of :mod:`pdb` to the same
channel as the debugger. Add tests and improve docs.
..
.. date: 2023-10-20-15-28-08
.. gh-issue: 102988
.. nonce: dStNO7
.. section: Library
:func:`email.utils.getaddresses` and :func:`email.utils.parseaddr` now
return ``('', '')`` 2-tuples in more situations where invalid email
addresses are encountered instead of potentially inaccurate values. Add
optional *strict* parameter to these two functions: use ``strict=False`` to
get the old behavior, accept malformed inputs. ``getattr(email.utils,
'supports_strict_parsing', False)`` can be use to check if the *strict*
paramater is available. Patch by Thomas Dwyer and Victor Stinner to improve
the :cve:`2023-27043` fix.
..
.. date: 2023-10-17-16-11-03
.. gh-issue: 52161
.. nonce: WBYyCJ
.. section: Library
:meth:`cmd.Cmd.do_help` now cleans docstrings with :func:`inspect.cleandoc`
before writing them. Patch by Filip Łapkiewicz.
..
.. date: 2023-10-12-18-19-47
.. gh-issue: 82300
.. nonce: P8-O38
.. section: Library
Add ``track`` parameter to
:class:`multiprocessing.shared_memory.SharedMemory` that allows using shared
memory blocks without having to register with the POSIX resource tracker
that automatically releases them upon process exit.
..
.. date: 2023-10-11-02-34-01
.. gh-issue: 110109
.. nonce: RFCmHs
.. section: Library
Add private ``pathlib._PurePathBase`` class: a base class for
:class:`pathlib.PurePath` that omits certain magic methods. It may be made
public (along with ``_PathBase``) in future.
..
.. date: 2023-09-28-13-15-51
.. gh-issue: 109858
.. nonce: 43e2dg
.. section: Library
Protect :mod:`zipfile` from "quoted-overlap" zipbomb. It now raises
BadZipFile when try to read an entry that overlaps with other entry or
central directory.
..
.. date: 2023-09-23-14-40-51
.. gh-issue: 109786
.. nonce: UX3pKv
.. section: Library
Fix possible reference leaks and crash when re-enter the ``__next__()``
method of :class:`itertools.pairwise`.
..
.. date: 2023-09-01-15-33-18
.. gh-issue: 91539
.. nonce: xoNLEI
.. section: Library
Small (10 - 20%) and trivial performance improvement of
:func:`urrlib.request.getproxies_environment`, typically useful when there
are many environment variables to go over.
..
.. date: 2023-08-14-21-10-52
.. gh-issue: 103363
.. nonce: u64_QI
.. section: Library
Add *follow_symlinks* keyword-only argument to :meth:`pathlib.Path.owner`
and :meth:`~pathlib.Path.group`, defaulting to ``True``.
..
.. date: 2023-08-07-21-11-24
.. gh-issue: 102130
.. nonce: _UyI5i
.. section: Library
Support tab completion in :mod:`cmd` for ``editline``.
..
.. date: 2023-08-04-18-43-21
.. gh-issue: 99437
.. nonce: Et8hu8
.. section: Library
:func:`runpy.run_path` now decodes path-like objects, making sure __file__
and sys.argv[0] of the module being run are always strings.
..
.. date: 2023-04-29-20-49-13
.. gh-issue: 104003
.. nonce: -8Ruk2
.. section: Library
Add :func:`warnings.deprecated`, a decorator to mark deprecated functions to
static type checkers and to warn on usage of deprecated classes and
functions. See :pep:`702`. Patch by Jelle Zijlstra.
..
.. date: 2023-04-23-11-08-02
.. gh-issue: 103708
.. nonce: Y17C7p
.. section: Library
Make hardcoded python name, a configurable parameter so that different
implementations of python can override it instead of making huge diffs in
sysconfig.py
..
.. date: 2023-04-09-21-05-43
.. gh-issue: 66515
.. nonce: 0DS8Ya
.. section: Library
:class:`mailbox.MH` now supports folders that do not contain a
``.mh_sequences`` file (e.g. Claws Mail IMAP-cache folders). Patch by Serhiy
Storchaka.
..
.. date: 2023-02-08-00-43-29
.. gh-issue: 83162
.. nonce: ufdI9F
.. section: Library
Renamed :exc:`!re.error` to :exc:`PatternError` for clarity, and kept
:exc:`!re.error` for backward compatibility. Patch by Matthias Bussonnier
and Adam Chhina.
..
.. date: 2022-12-01-16-57-44
.. gh-issue: 91133
.. nonce: LKMVCV
.. section: Library
Fix a bug in :class:`tempfile.TemporaryDirectory` cleanup, which now no
longer dereferences symlinks when working around file system permission
errors.
..
.. bpo: 43153
.. date: 2021-12-06-22-10-53
.. nonce: J7mjSy
.. section: Library
On Windows, ``tempfile.TemporaryDirectory`` previously masked a
``PermissionError`` with ``NotADirectoryError`` during directory cleanup. It
now correctly raises ``PermissionError`` if errors are not ignored. Patch by
Andrei Kulakov and Ken Jin.
..
.. bpo: 32731
.. date: 2021-11-23-22-22-49
.. nonce: kNOASr
.. section: Library
:func:`getpass.getuser` now raises :exc:`OSError` for all failures rather
than :exc:`ImportError` on systems lacking the :mod:`pwd` module or
:exc:`KeyError` if the password database is empty.
..
.. bpo: 34321
.. date: 2021-04-15-10-41-51
.. nonce: 36m6_l
.. section: Library
:class:`mmap.mmap` now has a *trackfd* parameter on Unix; if it is
``False``, the file descriptor specified by *fileno* will not be duplicated.
..
.. bpo: 35332
.. date: 2020-12-14-09-31-13
.. nonce: s22wAx
.. section: Library
The :func:`shutil.rmtree` function now ignores errors when calling
:func:`os.close` when *ignore_errors* is ``True``, and :func:`os.close` no
longer retried after error.
..
.. bpo: 35928
.. date: 2020-10-03-23-47-28
.. nonce: E0iPAa
.. section: Library
:class:`io.TextIOWrapper` now correctly handles the decoding buffer after
``read()`` and ``write()``.
..
.. bpo: 26791
.. date: 2020-08-06-14-43-55
.. nonce: KxoEfO
.. section: Library
:func:`shutil.move` now moves a symlink into a directory when that directory
is the target of the symlink. This provides the same behavior as the mv
shell command. The previous behavior raised an exception. Patch by Jeffrey
Kintscher.
..
.. bpo: 41422
.. date: 2020-07-28-20-48-05
.. nonce: iMwnMu
.. section: Library
Fixed memory leaks of :class:`pickle.Pickler` and :class:`pickle.Unpickler`
involving cyclic references via the internal memo mapping.
..
.. bpo: 19821
.. date: 2020-06-15-23-44-53
.. nonce: ihBk39
.. section: Library
The :func:`!pydoc.ispackage` function has been deprecated.
..
.. bpo: 40262
.. date: 2020-05-21-23-32-46
.. nonce: z4fQv1
.. section: Library
The :meth:`ssl.SSLSocket.recv_into` method no longer requires the *buffer*
argument to implement ``__len__`` and supports buffers with arbitrary item
size.
..
.. bpo: 39912
.. date: 2020-03-09-15-08-29
.. nonce: xPOBBY
.. section: Library
:func:`warnings.filterwarnings()` and :func:`warnings.simplefilter()` now
raise appropriate exceptions instead of ``AssertionError``. Patch
contributed by Rémi Lapeyre.
..
.. bpo: 37260
.. date: 2019-06-14-22-37-32
.. nonce: oecdIf
.. section: Library
Fixed a race condition in :func:`shutil.rmtree` in which directory entries
removed by another process or thread while ``shutil.rmtree()`` is running
can cause it to raise FileNotFoundError. Patch by Jeffrey Kintscher.
..
.. bpo: 36959
.. date: 2019-05-18-15-50-14
.. nonce: ew6WZ4
.. section: Library
Fix some error messages for invalid ISO format string combinations in
``strptime()`` that referred to directives not contained in the format
string. Patch by Gordon P. Hemsley.
..
.. bpo: 18060
.. date: 2019-05-17-07-22-33
.. nonce: 5mqTQM
.. section: Library
Fixed a class inheritance issue that can cause segfaults when deriving two
or more levels of subclasses from a base class of Structure or Union.
..
.. bpo: 29779
.. date: 2019-05-08-13-14-11
.. nonce: jg33dp
.. section: Library
Add a new :envvar:`PYTHON_HISTORY` environment variable to set the location
of a ``.python_history`` file.
..
.. bpo: 21360
.. date: 2019-02-12-16-12-54
.. nonce: gkSSfx
.. section: Library
:class:`mailbox.Maildir` now ignores files with a leading dot.
..
.. date: 2023-11-30-02-33-59
.. gh-issue: 111699
.. nonce: _O5G_y
.. section: Documentation
Relocate ``smtpd`` deprecation notice to its own section rather than under
``locale`` in What's New in Python 3.12 document
..
.. date: 2023-10-23-23-43-43
.. gh-issue: 110746
.. nonce: yg77IE
.. section: Documentation
Improved markup for valid options/values for methods ttk.treeview.column and
ttk.treeview.heading, and for Layouts.
..
.. date: 2023-08-01-13-11-39
.. gh-issue: 95649
.. nonce: F4KhPS
.. section: Documentation
Document that the :mod:`asyncio` module contains code taken from `v0.16.0 of
the uvloop project <https://github.com/MagicStack/uvloop/tree/v0.16.0>`_, as
well as the required MIT licensing information.
..
.. date: 2024-01-12-14-34-24
.. gh-issue: 111798
.. nonce: hd9B_-
.. section: Tests
Disable ``test_super_deep()`` from ``test_call`` under pydebug builds on
WASI; the stack depth is too small to make the test useful.
..
.. date: 2024-01-12-13-19-12
.. gh-issue: 111801
.. nonce: 9hh9DY
.. section: Tests
Lower the recursion limit in ``test_isinstance`` for
``test_infinitely_many_bases()``. This prevents a stack overflow on a
pydebug build of WASI.
..
.. date: 2024-01-12-12-45-24
.. gh-issue: 111802
.. nonce: gN41vt
.. section: Tests
Specify a low recursion depth for ``test_bad_getattr()`` in
``test.pickletester`` to avoid exhausting the stack under a pydebug build
for WASI.
..
.. date: 2024-01-08-21-15-48
.. gh-issue: 44626
.. nonce: DRq-PR
.. section: Tests
Fix :func:`os.path.isabs` incorrectly returning ``True`` when given a path
that starts with exactly one (back)slash on Windows.
Fix :meth:`pathlib.PureWindowsPath.is_absolute` incorrectly returning
``False`` for some paths beginning with two (back)slashes.
..
.. date: 2024-01-01-14-40-02
.. gh-issue: 113633
.. nonce: VOY5ai
.. section: Tests
Use module state for the _testcapi extension module.
..
.. date: 2023-12-09-21-27-46
.. gh-issue: 109980
.. nonce: y--500
.. section: Tests
Fix ``test_tarfile_vs_tar`` in ``test_shutil`` for macOS, where system tar
can include more information in the archive than :mod:`shutil.make_archive`.
..
.. date: 2023-12-05-19-50-03
.. gh-issue: 112769
.. nonce: kdLJmS
.. section: Tests
The tests now correctly compare zlib version when
:const:`zlib.ZLIB_RUNTIME_VERSION` contains non-integer suffixes. For
example zlib-ng defines the version as ``1.3.0.zlib-ng``.
..
.. date: 2023-12-04-15-56-11
.. gh-issue: 112334
.. nonce: FFc9Ti
.. section: Tests
Adds a regression test to verify that ``vfork()`` is used when expected by
:mod:`subprocess` on vfork enabled POSIX systems (Linux).
..
.. date: 2023-09-05-20-46-35
.. gh-issue: 108927
.. nonce: TpwWav
.. section: Tests
Fixed order dependence in running tests in the same process when a test that
has submodules (e.g. test_importlib) follows a test that imports its
submodule (e.g. test_importlib.util) and precedes a test (e.g. test_unittest
or test_compileall) that uses that submodule.
..
.. bpo: 40648
.. date: 2020-05-16-18-00-21
.. nonce: p2uPqy
.. section: Tests
Test modes that file can get with chmod() on Windows.
..
.. date: 2024-01-15-16-58-43
.. gh-issue: 114013
.. nonce: FoSeQf
.. section: Build
Fix ``Tools/wasm/wasi.py`` to not include the path to ``python.wasm`` as
part of ``HOSTRUNNER``. The environment variable is meant to specify how to
run the WASI host only, having ``python.wasm`` and relevant flags appended
to the ``HOSTRUNNER``. This fixes ``make test`` work.
..
.. date: 2023-12-23-09-35-48
.. gh-issue: 113258
.. nonce: GlsAyH
.. section: Build
Changed the Windows build to write out generated frozen modules into the
build tree instead of the source tree.
..
.. date: 2023-12-21-05-35-06
.. gh-issue: 112305
.. nonce: VfqQPx
.. section: Build
Fixed the ``check-clean-src`` step performed on out of tree builds to detect
errant ``$(srcdir)/Python/frozen_modules/*.h`` files and recommend
appropriate source tree cleanup steps to get a working build again.
..
.. date: 2023-12-17-18-23-02
.. gh-issue: 112536
.. nonce: 8lr3Ep
.. section: Build
Add support for thread sanitizer (TSAN)
..
.. date: 2023-12-08-11-33-37
.. gh-issue: 112867
.. nonce: ZzDfXQ
.. section: Build
Fix the build for the case that WITH_PYMALLOC_RADIX_TREE=0 set.
..
.. date: 2023-11-27-13-55-47
.. gh-issue: 103065
.. nonce: o72OiA
.. section: Build
Introduce ``Tools/wasm/wasi.py`` to simplify doing a WASI build.
..
.. bpo: 11102
.. date: 2020-05-01-23-44-31
.. nonce: Fw9zeS
.. section: Build
The :func:`os.major`, :func:`os.makedev`, and :func:`os.minor` functions are
now available on HP-UX v3.
..
.. bpo: 36351
.. date: 2020-01-11-23-49-17
.. nonce: ce8BBh
.. section: Build
Do not set ipv6type when cross-compiling.
..
.. date: 2024-01-15-23-53-25
.. gh-issue: 114096
.. nonce: G-Myja
.. section: Windows
Process privileges that are activated for creating directory junctions are
now restored afterwards, avoiding behaviour changes in other parts of the
program.
..
.. date: 2024-01-04-21-16-31
.. gh-issue: 111877
.. nonce: fR-B4c
.. section: Windows
:func:`os.stat` calls were returning incorrect time values for files that
could not be accessed directly.
..
.. date: 2023-12-19-10-56-46
.. gh-issue: 111973
.. nonce: A9Wtsb
.. section: Windows
Update Windows installer to use SQLite 3.44.2.
..
.. date: 2023-12-14-19-00-29
.. gh-issue: 113009
.. nonce: 6LNdjz
.. section: Windows
:mod:`multiprocessing`: On Windows, fix a race condition in
``Process.terminate()``: no longer set the ``returncode`` attribute to
always call ``WaitForSingleObject()`` in ``Process.wait()``. Previously,
sometimes the process was still running after ``TerminateProcess()`` even if
``GetExitCodeProcess()`` is not ``STILL_ACTIVE``. Patch by Victor Stinner.
..
.. date: 2023-12-12-20-58-09
.. gh-issue: 86179
.. nonce: YYSk_6
.. section: Windows
Fixes path calculations when launching Python on Windows through a symlink.
..
.. date: 2023-12-11-20-23-04
.. gh-issue: 71383
.. nonce: 9pZh6t
.. section: Windows
Update Tcl/Tk in Windows installer to 8.6.13 with a patch to suppress
incorrect ThemeChanged warnings.
..
.. date: 2023-12-05-22-56-30
.. gh-issue: 111650
.. nonce: xlWmvM
.. section: Windows
Ensures the ``Py_GIL_DISABLED`` preprocessor variable is defined in
:file:`pyconfig.h` so that extension modules written in C are able to use
it.
..
.. date: 2023-12-03-19-22-37
.. gh-issue: 112278
.. nonce: FiloCE
.. section: Windows
Reduce the time cost for some functions in :mod:`platform` on Windows if
current user has no permission to the WMI.
..
.. date: 2023-08-08-01-42-14
.. gh-issue: 73427
.. nonce: WOpiNt
.. section: Windows
Deprecate :func:`sys._enablelegacywindowsfsencoding`. Use
:envvar:`PYTHONLEGACYWINDOWSFSENCODING` instead. Patch by Inada Naoki.
..
.. date: 2023-03-15-23-53-45
.. gh-issue: 87868
.. nonce: 4C36oQ
.. section: Windows
Correctly sort and remove duplicate environment variables in
:py:func:`!_winapi.CreateProcess`.
..
.. bpo: 37308
.. date: 2019-06-16-11-27-05
.. nonce: Iz_NU_
.. section: Windows
Fix mojibake in :class:`mmap.mmap` when using a non-ASCII *tagname* argument
on Windows.
..
.. date: 2024-01-02-22-25-21
.. gh-issue: 113666
.. nonce: xKZoBm
.. section: macOS
Add the following constants to module :mod:`stat`: ``UF_SETTABLE``,
``UF_TRACKED``, ``UF_DATAVAULT``, ``SF_SUPPORTED``, ``SF_SETTABLE``,
``SF_SYNTHETIC``, ``SF_RESTRICTED``, ``SF_FIRMLINK`` and ``SF_DATALESS``.
The values ``UF_SETTABLE``, ``SF_SUPPORTED``, ``SF_SETTABLE`` and
``SF_SYNTHETIC`` are only available on macOS.
..
.. date: 2023-12-28-12-18-39
.. gh-issue: 113536
.. nonce: 0ythg7
.. section: macOS
:func:`os.waitid` is now available on macOS
..
.. date: 2023-12-23-22-41-07
.. gh-issue: 110459
.. nonce: NaMBJy
.. section: macOS
Running ``configure ... --with-openssl-rpath=X/Y/Z`` no longer fails to
detect OpenSSL on macOS.
..
.. date: 2023-12-21-11-53-47
.. gh-issue: 74573
.. nonce: MA6Vys
.. section: macOS
Document that :mod:`dbm.ndbm` can silently corrupt DBM files on updates when
exceeding undocumented platform limits, and can crash (segmentation fault)
when reading such a corrupted file. (FB8919203)
..
.. date: 2023-12-21-10-20-41
.. gh-issue: 65701
.. nonce: Q2hNbN
.. section: macOS
The :program:`freeze` tool doesn't work with framework builds of Python.
Document this and bail out early when running the tool with such a build.
..
.. date: 2023-12-21-09-41-42
.. gh-issue: 87277
.. nonce: IF6EZZ
.. section: macOS
webbrowser: Don't look for X11 browsers on macOS. Those are generally not
used and probing for them can result in starting XQuartz even if it isn't
used otherwise.
..
.. date: 2023-12-19-10-50-08
.. gh-issue: 111973
.. nonce: HMHJfy
.. section: macOS
Update macOS installer to use SQLite 3.44.2.
..
.. date: 2023-12-16-11-45-32
.. gh-issue: 108269
.. nonce: wVgCHF
.. section: macOS
Set ``CFBundleAllowMixedLocalizations`` to true in the Info.plist for the
framework, embedded Python.app and IDLE.app with framework installs on
macOS. This allows applications to pick up the user's preferred locale when
that's different from english.
..
.. date: 2023-12-10-20-30-06
.. gh-issue: 102362
.. nonce: y8svbF
.. section: macOS
Make sure the result of :func:`sysconfig.get_plaform` includes at least a
major and minor versions, even if ``MACOSX_DEPLOYMENT_TARGET`` is set to
only a major version during build to match the format expected by pip.
..
.. date: 2023-12-07-15-53-16
.. gh-issue: 110017
.. nonce: UMYzMR
.. section: macOS
Disable a signal handling stress test on macOS due to a bug in macOS
(FB13453490).
..
.. date: 2023-12-07-14-19-46
.. gh-issue: 110820
.. nonce: DIxb_F
.. section: macOS
Make sure the preprocessor definitions for ``ALIGNOF_MAX_ALIGN_T``,
``SIZEOF_LONG_DOUBLE`` and ``HAVE_GCC_ASM_FOR_X64`` are correct for
Universal 2 builds on macOS.
..
.. date: 2023-12-06-12-11-13
.. gh-issue: 109981
.. nonce: mOHg10
.. section: macOS
Use ``/dev/fd`` on macOS to determine the number of open files in
``test.support.os_helper.fd_count`` to avoid a crash with "guarded" file
descriptors when probing for open files.
..
.. date: 2024-01-17-02-15-33
.. gh-issue: 72284
.. nonce: cAQiYO
.. section: IDLE
Improve the lists of features, editor key bindings, and shell key bingings
in the IDLE doc.
..
.. date: 2024-01-11-21-26-58
.. gh-issue: 113903
.. nonce: __GLlQ
.. section: IDLE
Fix rare failure of test.test_idle, in test_configdialog.
..
.. date: 2024-01-05-12-24-01
.. gh-issue: 113729
.. nonce: qpluea
.. section: IDLE
Fix the "Help -> IDLE Doc" menu bug in 3.11.7 and 3.12.1.
..
.. date: 2023-12-19-00-03-12
.. gh-issue: 113269
.. nonce: lrU-IC
.. section: IDLE
Fix test_editor hang on macOS Catalina.
..
.. date: 2023-12-10-20-01-11
.. gh-issue: 112898
.. nonce: 98aWv2
.. section: IDLE
Fix processing unsaved files when quitting IDLE on macOS.
..
.. bpo: 13586
.. date: 2019-12-13-12-26-56
.. nonce: 1grqsR
.. section: IDLE
Enter the selected text when opening the "Replace" dialog.
..
.. date: 2023-12-02-02-08-11
.. gh-issue: 106560
.. nonce: THvuji
.. section: C API
Fix redundant declarations in the public C API. Declare PyBool_Type,
PyLong_Type and PySys_Audit() only once. Patch by Victor Stinner.
..
.. date: 2023-11-27-09-44-16
.. gh-issue: 112438
.. nonce: GdNZiI
.. section: C API
Fix support of format units "es", "et", "es#", and "et#" in nested tuples in
:c:func:`PyArg_ParseTuple`-like functions.
..
.. date: 2023-11-15-01-26-59
.. gh-issue: 111545
.. nonce: iAoFtA
.. section: C API
Add :c:func:`Py_HashPointer` function to hash a pointer. Patch by Victor
Stinner.
..
.. date: 2023-06-21-11-53-09
.. gh-issue: 65210
.. nonce: PhFRBJ
.. section: C API
Change the declaration of the *keywords* parameter of
:c:func:`PyArg_ParseTupleAndKeywords` and
:c:func:`PyArg_VaParseTupleAndKeywords` for better compatibility with C++.
|