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
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
|
.. date: 2023-08-22-17-39-12
.. gh-issue: 108310
.. nonce: fVM3sg
.. release date: 2023-10-13
.. section: Security
Fixed an issue where instances of :class:`ssl.SSLSocket` were vulnerable to
a bypass of the TLS handshake and included protections (like certificate
verification) and treating sent unencrypted data as if it were
post-handshake TLS encrypted data. Security issue reported as
`CVE-2023-40217
<https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-40217>`_ by Aapo
Oksman. Patch by Gregory P. Smith.
..
.. date: 2023-08-05-03-51-05
.. gh-issue: 107774
.. nonce: VPjaTR
.. section: Security
PEP 669 specifies that ``sys.monitoring.register_callback`` will generate an
audit event. Pre-releases of Python 3.12 did not generate the audit event.
This is now fixed.
..
.. date: 2023-06-13-20-52-24
.. gh-issue: 102988
.. nonce: Kei7Vf
.. 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-05-24-09-29-08
.. gh-issue: 99108
.. nonce: hwS2cr
.. section: Security
Refresh our new HACL* built-in :mod:`hashlib` code from upstream. Built-in
SHA2 should be faster and an issue with SHA3 on 32-bit platforms is fixed.
..
.. 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-10-12-15-03-24
.. gh-issue: 110782
.. nonce: EqzIzi
.. section: Core and Builtins
Fix crash when :class:`typing.TypeVar` is constructed with a keyword
argument. Patch by Jelle Zijlstra.
..
.. date: 2023-10-12-06-32-25
.. gh-issue: 110752
.. nonce: FYfI0h
.. section: Core and Builtins
Reset ``ceval.eval_breaker`` in :func:`interpreter_clear`
..
.. date: 2023-10-11-16-56-54
.. gh-issue: 110721
.. nonce: afcSsH
.. section: Core and Builtins
Use the :mod:`traceback` implementation for the default
:c:func:`PyErr_Display` functionality. Patch by Pablo Galindo
..
.. date: 2023-10-11-13-46-14
.. gh-issue: 110696
.. nonce: J9kSzr
.. section: Core and Builtins
Fix incorrect error message for invalid argument unpacking. Patch by Pablo
Galindo
..
.. date: 2023-10-11-12-48-03
.. gh-issue: 104169
.. nonce: bPoX8u
.. section: Core and Builtins
Split the tokenizer into two separate directories: - One part includes the
actual lexeme producing logic and lives in ``Parser/lexer``. - The second
part wraps the lexer according to the different tokenization modes we have
(string, utf-8, file, interactive, readline) and lives in
``Parser/tokenizer``.
..
.. date: 2023-10-11-11-39-22
.. gh-issue: 110688
.. nonce: lB6Q7t
.. section: Core and Builtins
Remove undocumented ``test_c_api`` method from :class:`set`, which was only
defined for testing purposes under ``Py_DEBUG``. Now we have proper CAPI
tests.
..
.. date: 2023-10-10-00-49-35
.. gh-issue: 104584
.. nonce: z94TuJ
.. section: Core and Builtins
Fix a reference leak when running with :envvar:`PYTHONUOPS` or :option:`-X
uops <-X>` enabled.
..
.. date: 2023-10-08-20-08-54
.. gh-issue: 110514
.. nonce: Q9bdRU
.. section: Core and Builtins
Add ``PY_THROW`` to :func:`sys.setprofile` events
..
.. date: 2023-10-06-22-30-25
.. gh-issue: 110489
.. nonce: rI2n8A
.. section: Core and Builtins
Optimise :func:`math.ceil` when the input is exactly a float, resulting in
about a 10% improvement.
..
.. date: 2023-10-06-12-00-43
.. gh-issue: 110455
.. nonce: 8BjNGg
.. section: Core and Builtins
Guard ``assert(tstate->thread_id > 0)`` with ``#ifndef HAVE_PTHREAD_STUBS``.
This allows for for pydebug builds to work under WASI which (currently)
lacks thread support.
..
.. date: 2023-10-03-23-26-18
.. gh-issue: 110309
.. nonce: Y8nDOF
.. section: Core and Builtins
Remove unnecessary empty constant nodes in the ast of f-string specs.
..
.. date: 2023-10-03-11-43-48
.. gh-issue: 110259
.. nonce: ka93x5
.. section: Core and Builtins
Correctly identify the format spec in f-strings (with single or triple
quotes) that have multiple lines in the expression part and include a
formatting spec. Patch by Pablo Galindo
..
.. date: 2023-10-02-23-17-08
.. gh-issue: 110237
.. nonce: _Xub0z
.. section: Core and Builtins
Fix missing error checks for calls to ``PyList_Append`` in
``_PyEval_MatchClass``.
..
.. date: 2023-10-01-02-58-00
.. gh-issue: 110164
.. nonce: z7TMCq
.. section: Core and Builtins
regrtest: If the ``SOURCE_DATE_EPOCH`` environment variable is defined,
regrtest now disables tests randomization. Patch by Victor Stinner.
..
.. date: 2023-09-27-21-35-49
.. gh-issue: 109889
.. nonce: t5hIRT
.. section: Core and Builtins
Fix the compiler's redundant NOP detection algorithm to skip over NOPs with
no line number when looking for the next instruction's lineno.
..
.. date: 2023-09-27-18-01-06
.. gh-issue: 109853
.. nonce: coQQiL
.. section: Core and Builtins
``sys.path[0]`` is now set correctly for subinterpreters.
..
.. date: 2023-09-26-21-26-54
.. gh-issue: 109923
.. nonce: WO3CHi
.. section: Core and Builtins
Set line number on the ``POP_TOP`` that follows a ``RETURN_GENERATOR``.
..
.. date: 2023-09-26-14-00-25
.. gh-issue: 105716
.. nonce: SUJkW1
.. section: Core and Builtins
Subinterpreters now correctly handle the case where they have threads
running in the background. Before, such threads would interfere with
cleaning up and destroying them, as well as prevent running another script.
..
.. date: 2023-09-26-03-46-55
.. gh-issue: 109369
.. nonce: OJbxbF
.. section: Core and Builtins
The internal eval_breaker and supporting flags, plus the monitoring version
have been merged into a single atomic integer to speed up checks.
..
.. date: 2023-09-25-14-28-14
.. gh-issue: 109823
.. nonce: kbVTKF
.. section: Core and Builtins
Fix bug where compiler does not adjust labels when removing an empty basic
block which is a jump target.
..
.. date: 2023-09-25-09-24-10
.. gh-issue: 109793
.. nonce: zFQBkv
.. section: Core and Builtins
The main thread no longer exits prematurely when a subinterpreter is cleaned
up during runtime finalization. The bug was a problem particularly because,
when triggered, the Python process would always return with a 0 exitcode,
even if it failed.
..
.. date: 2023-09-22-13-38-17
.. gh-issue: 109719
.. nonce: fx5OTz
.. section: Core and Builtins
Fix missing jump target labels when compiler reorders cold/warm blocks.
..
.. date: 2023-09-22-01-44-53
.. gh-issue: 109595
.. nonce: fVINgD
.. section: Core and Builtins
Add :option:`-X cpu_count <-X>` command line option to override return
results of :func:`os.cpu_count` and :func:`os.process_cpu_count`. This
option is useful for users who need to limit CPU resources of a container
system without having to modify the container (application code). Patch by
Donghee Na.
..
.. date: 2023-09-20-23-04-15
.. gh-issue: 109627
.. nonce: xxe7De
.. section: Core and Builtins
Fix bug where the compiler does not assign a new jump target label to a
duplicated small exit block.
..
.. date: 2023-09-20-13-18-08
.. gh-issue: 109596
.. nonce: RG0K2G
.. section: Core and Builtins
Fix some tokens in the grammar that were incorrectly marked as soft
keywords. Also fix some repeated rule names and ensure that repeated rules
are not allowed. Patch by Pablo Galindo
..
.. date: 2023-09-18-15-35-08
.. gh-issue: 109496
.. nonce: Kleoz3
.. section: Core and Builtins
On a Python built in debug mode, :c:func:`Py_DECREF()` now calls
``_Py_NegativeRefcount()`` if the object is a dangling pointer to
deallocated memory: memory filled with ``0xDD`` "dead byte" by the debug
hook on memory allocators. The fix is to check the reference count *before*
checking for ``_Py_IsImmortal()``. Patch by Victor Stinner.
..
.. date: 2023-09-14-20-15-57
.. gh-issue: 107265
.. nonce: qHZL_6
.. section: Core and Builtins
Deopt opcodes hidden by the executor when base opcode is needed
..
.. date: 2023-09-13-21-04-04
.. gh-issue: 109371
.. nonce: HPEJr8
.. section: Core and Builtins
Deopted instructions correctly for tool initialization and modified the
incorrect assertion in instrumentation, when a previous tool already sets
INSTRUCTION events
..
.. date: 2023-09-13-19-16-51
.. gh-issue: 105658
.. nonce: z2nR2u
.. section: Core and Builtins
Fix bug where the line trace of an except block ending with a conditional
includes an excess event with the line of the conditional expression.
..
.. date: 2023-09-13-08-42-45
.. gh-issue: 109219
.. nonce: UiN8sc
.. section: Core and Builtins
Fix compiling type param scopes that use a name which is also free in an
inner scope.
..
.. date: 2023-09-12-16-00-42
.. gh-issue: 109351
.. nonce: kznGeR
.. section: Core and Builtins
Fix crash when compiling an invalid AST involving a named (walrus)
expression.
..
.. date: 2023-09-12-15-45-49
.. gh-issue: 109341
.. nonce: 4V5bkm
.. section: Core and Builtins
Fix crash when compiling an invalid AST involving a :class:`ast.TypeAlias`.
..
.. date: 2023-09-11-15-51-55
.. gh-issue: 109195
.. nonce: iwxmuo
.. section: Core and Builtins
Fix source location for the ``LOAD_*`` instruction preceding a
``LOAD_SUPER_ATTR`` to load the ``super`` global (or shadowing variable) so
that it encompasses only the name ``super`` and not the following
parentheses.
..
.. date: 2023-09-11-15-11-03
.. gh-issue: 109256
.. nonce: 6mfhvF
.. section: Core and Builtins
Opcode IDs for specialized opcodes are allocated in their own range to
improve stability of the IDs for the 'real' opcodes.
..
.. date: 2023-09-11-12-41-42
.. gh-issue: 109216
.. nonce: 60QOSb
.. section: Core and Builtins
Fix possible memory leak in :opcode:`BUILD_MAP`.
..
.. date: 2023-09-10-18-53-55
.. gh-issue: 109207
.. nonce: Fei8bY
.. section: Core and Builtins
Fix a SystemError in ``__repr__`` of symtable entry object.
..
.. date: 2023-09-09-21-17-18
.. gh-issue: 109179
.. nonce: ZR8qs2
.. section: Core and Builtins
Fix bug where the C traceback display drops notes from :exc:`SyntaxError`.
..
.. date: 2023-09-09-12-49-46
.. gh-issue: 109118
.. nonce: gx0X4h
.. section: Core and Builtins
Disallow nested scopes (lambdas, generator expressions, and comprehensions)
within PEP 695 annotation scopes that are nested within classes.
..
.. date: 2023-09-08-18-31-04
.. gh-issue: 109156
.. nonce: KK1EXI
.. section: Core and Builtins
Add tests for de-instrumenting instructions while keeping the
instrumentation for lines
..
.. date: 2023-09-08-01-50-41
.. gh-issue: 109114
.. nonce: adqgtb
.. section: Core and Builtins
Relax the detection of the error message for invalid lambdas inside
f-strings to not search for arbitrary replacement fields to avoid false
positives. Patch by Pablo Galindo
..
.. date: 2023-09-07-20-52-27
.. gh-issue: 105848
.. nonce: p799D1
.. section: Core and Builtins
Add a new :opcode:`CALL_KW` opcode, used for calls containing keyword
arguments. Also, fix a possible crash when jumping over method calls in a
debugger.
..
.. date: 2023-09-07-18-49-01
.. gh-issue: 109052
.. nonce: TBU4nC
.. section: Core and Builtins
Use the base opcode when comparing code objects to avoid interference from
instrumentation
..
.. date: 2023-09-07-18-24-42
.. gh-issue: 109118
.. nonce: yPXRAe
.. section: Core and Builtins
Fix interpreter crash when a NameError is raised inside the type parameters
of a generic class.
..
.. date: 2023-09-07-16-05-36
.. gh-issue: 88943
.. nonce: rH_X3W
.. section: Core and Builtins
Improve syntax error for non-ASCII character that follows a numerical
literal. It now points on the invalid non-ASCII character, not on the valid
numerical literal.
..
.. date: 2023-09-06-22-50-25
.. gh-issue: 108976
.. nonce: MUKaIJ
.. section: Core and Builtins
Fix crash that occurs after de-instrumenting a code object in a monitoring
callback.
..
.. date: 2023-09-06-13-28-42
.. gh-issue: 108732
.. nonce: I6DkEQ
.. section: Core and Builtins
Make iteration variables of module- and class-scoped comprehensions visible
to pdb and other tools that use ``frame.f_locals`` again.
..
.. date: 2023-09-05-20-52-17
.. gh-issue: 108959
.. nonce: 6z45Sy
.. section: Core and Builtins
Fix caret placement for error locations for subscript and binary operations
that involve non-semantic parentheses and spaces. Patch by Pablo Galindo
..
.. date: 2023-09-05-11-31-27
.. gh-issue: 104584
.. nonce: IRSXA2
.. section: Core and Builtins
Fix a crash when running with :envvar:`PYTHONUOPS` or :option:`-X uops <-X>`
enabled and an error occurs during optimization.
..
.. date: 2023-08-31-21-29-28
.. gh-issue: 108727
.. nonce: blNRGM
.. section: Core and Builtins
Define ``tp_dealloc`` for ``CounterOptimizer_Type``. This fixes a segfault
on deallocation.
..
.. date: 2023-08-30-15-41-47
.. gh-issue: 108520
.. nonce: u0ZGP_
.. section: Core and Builtins
Fix :meth:`multiprocessing.synchronize.SemLock.__setstate__` to properly
initialize :attr:`multiprocessing.synchronize.SemLock._is_fork_ctx`. This
fixes a regression when passing a SemLock accross nested processes.
Rename :attr:`multiprocessing.synchronize.SemLock.is_fork_ctx` to
:attr:`multiprocessing.synchronize.SemLock._is_fork_ctx` to avoid exposing
it as public API.
..
.. date: 2023-08-29-17-53-12
.. gh-issue: 108654
.. nonce: jbkDVo
.. section: Core and Builtins
Restore locals shadowed by an inlined comprehension if the comprehension
raises an exception.
..
.. date: 2023-08-28-22-22-15
.. gh-issue: 108488
.. nonce: e8-fxg
.. section: Core and Builtins
Change the initialization of inline cache entries so that the cache entry
for ``JUMP_BACKWARD`` is initialized to zero, instead of the
``adaptive_counter_warmup()`` value used for all other instructions. This
counter, unique among instructions, counts up from zero.
..
.. date: 2023-08-28-03-38-28
.. gh-issue: 108716
.. nonce: HJBPwt
.. section: Core and Builtins
Turn off deep-freezing of code objects. Modules are still frozen, so that a
file system search is not needed for common modules.
..
.. date: 2023-08-26-10-36-45
.. gh-issue: 108614
.. nonce: wl5l-W
.. section: Core and Builtins
Add RESUME_CHECK instruction, to avoid having to handle instrumentation,
signals, and contexts switches in the tier 2 execution engine.
..
.. date: 2023-08-26-04-31-01
.. gh-issue: 108487
.. nonce: 1Gbr9k
.. section: Core and Builtins
Move an assert that would cause a spurious crash in a devious case that
should only trigger deoptimization.
..
.. date: 2023-08-25-14-51-06
.. gh-issue: 106176
.. nonce: D1EA2a
.. section: Core and Builtins
Use a ``WeakValueDictionary`` to track the lists containing the modules each
thread is currently importing. This helps avoid a reference leak from
keeping the list around longer than necessary. Weakrefs are used as GC can't
interrupt the cleanup.
..
.. date: 2023-08-23-14-54-15
.. gh-issue: 105481
.. nonce: 40q-c4
.. section: Core and Builtins
The regen-opcode build stage was removed and its work is now done in
regen-cases.
..
.. date: 2023-08-21-21-13-30
.. gh-issue: 107901
.. nonce: hszvdk
.. section: Core and Builtins
Fix missing line number on :opcode:`JUMP_BACKWARD` at the end of a for loop.
..
.. date: 2023-08-18-18-21-27
.. gh-issue: 108113
.. nonce: 1h0poE
.. section: Core and Builtins
The :func:`compile` built-in can now accept a new flag,
``ast.PyCF_OPTIMIZED_AST``, which is similar to ``ast.PyCF_ONLY_AST`` except
that the returned ``AST`` is optimized according to the value of the
``optimize`` argument.
:func:`ast.parse` now accepts an optional argument ``optimize`` which is
passed on to the :func:`compile` built-in. This makes it possible to obtain
an optimized ``AST``.
..
.. date: 2023-08-15-13-06-05
.. gh-issue: 107971
.. nonce: lPbx04
.. section: Core and Builtins
Opcode IDs are generated from bytecodes.c instead of being hard coded in
opcode.py.
..
.. date: 2023-08-15-11-09-50
.. gh-issue: 107944
.. nonce: zQLp3j
.. section: Core and Builtins
Improve error message for function calls with bad keyword arguments. Patch
by Pablo Galindo
..
.. date: 2023-08-13-17-18-22
.. gh-issue: 108390
.. nonce: TkBccC
.. section: Core and Builtins
Raise an exception when setting a non-local event (``RAISE``,
``EXCEPTION_HANDLED``, etc.) in ``sys.monitoring.set_local_events``.
Fixes crash when tracing in recursive calls to Python classes.
..
.. date: 2023-08-11-16-18-19
.. gh-issue: 108035
.. nonce: e2msOD
.. section: Core and Builtins
Remove the ``_PyCFrame`` struct, moving the pointer to the current
intepreter frame back to the threadstate, as it was for 3.10 and earlier.
The ``_PyCFrame`` existed as a performance optimization for tracing. Since
PEP 669 has been implemented, this optimization no longer applies.
..
.. date: 2023-08-10-17-36-27
.. gh-issue: 91051
.. nonce: LfaeNW
.. section: Core and Builtins
Fix abort / segfault when using all eight type watcher slots, on platforms
where ``char`` is signed by default.
..
.. date: 2023-08-10-00-00-48
.. gh-issue: 106581
.. nonce: o7zDty
.. section: Core and Builtins
Fix possible assertion failures and missing instrumentation events when
:envvar:`PYTHONUOPS` or :option:`-X uops <-X>` is enabled.
..
.. date: 2023-08-09-15-05-27
.. gh-issue: 107526
.. nonce: PB32z-
.. section: Core and Builtins
Revert converting ``vars``, ``dir``, ``next``, ``getattr``, and ``iter`` to
argument clinic.
..
.. date: 2023-08-09-08-31-20
.. gh-issue: 84805
.. nonce: 7JRWua
.. section: Core and Builtins
Autogenerate signature for :c:macro:`METH_NOARGS` and :c:macro:`METH_O`
extension functions.
..
.. date: 2023-08-08-02-46-46
.. gh-issue: 107758
.. nonce: R5kyBI
.. section: Core and Builtins
Make the ``dump_stack()`` routine used by the ``lltrace`` feature (low-level
interpreter debugging) robust against recursion by ensuring that it never
calls a ``__repr__`` method implemented in Python. Also make the similar
output for Tier-2 uops appear on ``stdout`` (instead of ``stderr``), to
match the ``lltrace`` code in ceval.c.
..
.. date: 2023-08-05-15-45-07
.. gh-issue: 107659
.. nonce: QgtQ5M
.. section: Core and Builtins
Add docstrings for :func:`ctypes.pointer` and :func:`ctypes.POINTER`.
..
.. date: 2023-08-05-09-06-56
.. gh-issue: 105848
.. nonce: Drc-1-
.. section: Core and Builtins
Modify the bytecode so that the actual callable for a :opcode:`CALL` is at a
consistent position on the stack (regardless of whether or not
bound-method-calling optimizations are active).
..
.. date: 2023-08-05-04-47-18
.. gh-issue: 107674
.. nonce: 0sYhR2
.. section: Core and Builtins
Fixed performance regression in ``sys.settrace``.
..
.. date: 2023-08-04-21-25-26
.. gh-issue: 107724
.. nonce: EbBXMr
.. section: Core and Builtins
In pre-release versions of 3.12, up to rc1, the sys.monitoring callback
function for the ``PY_THROW`` event was missing the third, exception
argument. That is now fixed.
..
.. date: 2023-08-03-13-38-14
.. gh-issue: 84436
.. nonce: gl1wHx
.. section: Core and Builtins
Skip reference count modifications for many known immortal objects.
..
.. date: 2023-08-03-11-13-09
.. gh-issue: 107596
.. nonce: T3yPGI
.. section: Core and Builtins
Specialize subscripting :class:`str` objects by :class:`int` indexes.
..
.. date: 2023-08-02-12-24-51
.. gh-issue: 107080
.. nonce: PNolFU
.. section: Core and Builtins
Trace refs builds (``--with-trace-refs``) were crashing when used with
isolated subinterpreters. The problematic global state has been isolated to
each interpreter. Other fixing the crashes, this change does not affect
users.
..
.. date: 2023-08-02-09-55-21
.. gh-issue: 107557
.. nonce: P1z-in
.. section: Core and Builtins
Generate the cases needed for the barebones tier 2 abstract interpreter for
optimization passes in CPython.
..
.. date: 2023-08-01-09-41-36
.. gh-issue: 106608
.. nonce: OFZogw
.. section: Core and Builtins
Make ``_PyUOpExecutorObject`` variable length.
..
.. date: 2023-07-30-18-05-11
.. gh-issue: 100964
.. nonce: HluhBJ
.. section: Core and Builtins
Clear generators' exception state after ``return`` to break reference
cycles.
..
.. date: 2023-07-30-14-18-49
.. gh-issue: 107455
.. nonce: Es53l7
.. section: Core and Builtins
Improve error messages when converting an incompatible type to
:class:`ctypes.c_char_p`, :class:`ctypes.c_wchar_p` and
:class:`ctypes.c_void_p`.
..
.. 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-29-22-01-30
.. gh-issue: 104584
.. nonce: tINuoA
.. section: Core and Builtins
Fix an issue which caused incorrect inline caches to be read when running
with :envvar:`PYTHONUOPS` or :option:`-X uops <-X>` enabled.
..
.. 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-27-11-18-04
.. gh-issue: 106078
.. nonce: WEy2Yn
.. section: Core and Builtins
Isolate :mod:`!_decimal` (apply :pep:`687`). Patch by Charlie Zhao.
..
.. 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 reraise, either explicitly by a plain ``raise`` statement, or
implicitly in an ``except`` or ``finally`` block.
..
.. date: 2023-07-25-22-35-35
.. gh-issue: 77377
.. nonce: EHAbXx
.. section: Core and Builtins
Ensure that multiprocessing synchronization objects created in a fork
context are not sent to a different process created in a spawn context. This
changes a segfault into an actionable RuntimeError in the parent process.
..
.. date: 2023-07-25-15-29-26
.. gh-issue: 106931
.. nonce: kKU1le
.. section: Core and Builtins
Statically allocated string objects are now interned globally instead of
per-interpreter. This fixes a situation where such a string would only be
interned in a single interpreter. Normal string objects are unaffected.
..
.. 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-23-21-16-54
.. gh-issue: 107122
.. nonce: VNuNcq
.. section: Core and Builtins
Add :meth:`dbm.ndbm.ndbm.clear` to :mod:`dbm.ndbm`. Patch By Donghee Na.
..
.. date: 2023-07-23-13-07-34
.. gh-issue: 107122
.. nonce: 9HFUyb
.. section: Core and Builtins
Add :meth:`dbm.gnu.gdbm.clear` to :mod:`dbm.gnu`. Patch By Donghee Na.
..
.. date: 2023-07-22-14-35-38
.. gh-issue: 107015
.. nonce: Ghp58t
.. section: Core and Builtins
The ASYNC and AWAIT tokens are removed from the Grammar, which removes the
posibility of making ``async`` and ``await`` soft keywords when using
``feature_version<7`` in :func:`ast.parse`.
..
.. 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-20-01-15-58
.. gh-issue: 106908
.. nonce: cDmcVI
.. section: Core and Builtins
Fix various hangs, reference leaks, test failures, and tracing/introspection
bugs when running with :envvar:`PYTHONUOPS` or :option:`-X uops <-X>`
enabled.
..
.. 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-16-07-55-19
.. gh-issue: 106485
.. nonce: wPb1bH
.. section: Core and Builtins
Reduce the number of materialized instances dictionaries by dematerializing
them when possible.
..
.. 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-07-12-11-18-55
.. gh-issue: 104909
.. nonce: DRUsuh
.. section: Core and Builtins
Split :opcode:`LOAD_ATTR_INSTANCE_VALUE` into micro-ops.
..
.. date: 2023-07-12-10-48-08
.. gh-issue: 104909
.. nonce: sWjcr2
.. section: Core and Builtins
Split :opcode:`LOAD_GLOBAL` specializations into micro-ops.
..
.. date: 2023-07-10-15-30-45
.. gh-issue: 106597
.. nonce: WAZ14y
.. section: Core and Builtins
A new debug structure of offsets has been added to the ``_PyRuntimeState``
that will help out-of-process debuggers and profilers to obtain the offsets
to relevant interpreter structures in a way that is agnostic of how Python
was compiled and that doesn't require copying the headers. Patch by Pablo
Galindo
..
.. date: 2023-07-06-22-46-05
.. gh-issue: 106487
.. nonce: u3KfAD
.. section: Core and Builtins
Allow the *count* argument of :meth:`str.replace` to be a keyword. Patch by
Hugo van Kemenade.
..
.. date: 2023-07-06-00-35-44
.. gh-issue: 96844
.. nonce: kwvoS-
.. section: Core and Builtins
Improve error message of :meth:`list.remove`. Patch by Donghee Na.
..
.. date: 2023-07-04-20-42-54
.. gh-issue: 81283
.. nonce: hfh_MD
.. section: Core and Builtins
Compiler now strips indents from docstrings. It reduces ``pyc`` file size 5%
when the module is heavily documented. This change affects to ``__doc__`` so
tools like doctest will be affected.
..
.. date: 2023-07-04-09-51-45
.. gh-issue: 106396
.. nonce: DmYp7x
.. section: Core and Builtins
When the format specification of an f-string expression is empty, the parser
now generates an empty :class:`ast.JoinedStr` node for it instead of an
one-element :class:`ast.JoinedStr` with an empty string
:class:`ast.Constant`.
..
.. date: 2023-07-04-04-50-14
.. gh-issue: 100288
.. nonce: yNQ1ez
.. section: Core and Builtins
Specialize :opcode:`LOAD_ATTR` for non-descriptors on the class. Adds
:opcode:`LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES` and
:opcode:`LOAD_ATTR_NONDESCRIPTOR_NO_DICT`.
..
.. date: 2023-07-03-11-38-43
.. gh-issue: 106008
.. nonce: HDf1zd
.. section: Core and Builtins
Fix possible reference leaks when failing to optimize comparisons with
:const:`None` in the bytecode compiler.
..
.. date: 2023-06-29-09-46-41
.. gh-issue: 106145
.. nonce: QC6-Kq
.. section: Core and Builtins
Make ``end_lineno`` and ``end_col_offset`` required on ``type_param`` ast
nodes.
..
.. date: 2023-06-29-09-42-56
.. gh-issue: 106213
.. nonce: TCUgzM
.. section: Core and Builtins
Changed the way that Emscripten call trampolines work for compatibility with
Wasm/JS Promise integration.
..
.. date: 2023-06-28-15-19-59
.. gh-issue: 106182
.. nonce: cDSFi0
.. section: Core and Builtins
:func:`sys.getfilesystemencoding` and :mod:`sys.getfilesystemencodeerrors`
now return interned Unicode object.
..
.. date: 2023-06-28-13-19-20
.. gh-issue: 106210
.. nonce: oE7VMn
.. section: Core and Builtins
Removed Emscripten import trampoline as it was no longer necessary for
Pyodide.
..
.. date: 2023-06-27-00-58-26
.. gh-issue: 104584
.. nonce: Wu-uXy
.. section: Core and Builtins
Added a new, experimental, tracing optimizer and interpreter (a.k.a. "tier
2"). This currently pessimizes, so don't use yet -- this is infrastructure
so we can experiment with optimizing passes. To enable it, pass ``-Xuops``
or set ``PYTHONUOPS=1``. To get debug output, set ``PYTHONUOPSDEBUG=N``
where ``N`` is a debug level (0-4, where 0 is no debug output and 4 is
excessively verbose).
..
.. date: 2023-06-24-10-34-27
.. gh-issue: 105775
.. nonce: OqjoGV
.. section: Core and Builtins
:opcode:`LOAD_CLOSURE` is now a pseudo-op.
..
.. date: 2023-06-23-16-51-02
.. gh-issue: 105730
.. nonce: 16haMe
.. section: Core and Builtins
Allow any callable other than type objects as the condition predicate in
:meth:`BaseExceptionGroup.split` and :meth:`BaseExceptionGroup.subgroup`.
..
.. date: 2023-06-22-19-16-24
.. gh-issue: 105979
.. nonce: TDP2CU
.. section: Core and Builtins
Fix crash in :func:`!_imp.get_frozen_object` due to improper exception
handling.
..
.. date: 2023-06-22-17-37-35
.. gh-issue: 106003
.. nonce: 2Vc_Tw
.. section: Core and Builtins
Add a new :opcode:`TO_BOOL` instruction, which performs boolean conversions
for :opcode:`POP_JUMP_IF_TRUE`, :opcode:`POP_JUMP_IF_FALSE`, and
:opcode:`UNARY_NOT` (which all expect exact :class:`bool` values now). Also,
modify the oparg of :opcode:`COMPARE_OP` to include an optional "boolean
conversion" flag.
..
.. date: 2023-06-22-14-19-17
.. gh-issue: 98931
.. nonce: PPgvSF
.. section: Core and Builtins
Ensure custom :exc:`SyntaxError` error messages are raised for invalid
imports with multiple targets. Patch by Pablo Galindo
..
.. date: 2023-06-20-10-53-17
.. gh-issue: 105724
.. nonce: d23L4M
.. section: Core and Builtins
Improve ``assert`` error messages by providing exact error range.
..
.. date: 2023-06-19-11-04-01
.. gh-issue: 105908
.. nonce: 7oanny
.. section: Core and Builtins
Fixed bug where :gh:`99111` breaks future import ``barry_as_FLUFL`` in the
Python REPL.
..
.. date: 2023-06-15-22-11-43
.. gh-issue: 105840
.. nonce: Fum_g_
.. section: Core and Builtins
Fix possible crashes when specializing function calls with too many
``__defaults__``.
..
.. date: 2023-06-15-15-54-47
.. gh-issue: 105831
.. nonce: -MC9Zs
.. section: Core and Builtins
Fix an f-string bug, where using a debug expression (the ``=`` sign) that
appears in the last line of a file results to the debug buffer that holds
the expression text being one character too small.
..
.. date: 2023-06-14-22-52-06
.. gh-issue: 105800
.. nonce: hdpPzZ
.. section: Core and Builtins
Correctly issue :exc:`SyntaxWarning` in f-strings if invalid sequences are
used. Patch by Pablo Galindo
..
.. date: 2023-06-12-16-38-31
.. gh-issue: 105340
.. nonce: _jRHXe
.. section: Core and Builtins
Include the comprehension iteration variable in ``locals()`` inside a
module- or class-scope comprehension.
..
.. date: 2023-06-11-09-14-30
.. gh-issue: 105331
.. nonce: nlZvoW
.. section: Core and Builtins
Raise :exc:`ValueError` if the ``delay`` argument to :func:`asyncio.sleep`
is a NaN (matching :func:`time.sleep`).
..
.. date: 2023-06-10-21-38-49
.. gh-issue: 105587
.. nonce: rL3rzv
.. section: Core and Builtins
The runtime can't guarantee that immortal objects will not be mutated by
Extensions. Thus, this modifies _PyStaticObject_CheckRefcnt to warn instead
of asserting.
..
.. date: 2023-06-09-15-25-12
.. gh-issue: 105564
.. nonce: sFdUu4
.. section: Core and Builtins
Don't include artificil newlines in the ``line`` attribute of tokens in the
APIs of the :mod:`tokenize` module. Patch by Pablo Galindo
..
.. date: 2023-06-09-12-59-18
.. gh-issue: 105549
.. nonce: PYfTNp
.. section: Core and Builtins
Tokenize separately ``NUMBER`` and ``NAME`` tokens that are not ambiguous.
Patch by Pablo Galindo.
..
.. date: 2023-06-09-11-19-51
.. gh-issue: 105588
.. nonce: Y5ovpY
.. section: Core and Builtins
Fix an issue that could result in crashes when compiling malformed
:mod:`ast` nodes.
..
.. date: 2023-06-09-10-48-17
.. gh-issue: 100987
.. nonce: mK-xny
.. section: Core and Builtins
Allow objects other than code objects as the "executable" in internal
frames. In the long term, this can help tools like Cython and PySpy interact
more efficiently. In the shorter term, it allows us to perform some
optimizations more simply.
..
.. date: 2023-06-08-10-10-07
.. gh-issue: 105375
.. nonce: 35VGDd
.. section: Core and Builtins
Fix bugs in the :mod:`builtins` module where exceptions could end up being
overwritten.
..
.. date: 2023-06-08-09-54-37
.. gh-issue: 105375
.. nonce: kqKT3E
.. section: Core and Builtins
Fix bug in the compiler where an exception could end up being overwritten.
..
.. date: 2023-06-08-09-25-52
.. gh-issue: 105375
.. nonce: ocB7fT
.. section: Core and Builtins
Improve error handling in :c:func:`PyUnicode_BuildEncodingMap` where an
exception could end up being overwritten.
..
.. date: 2023-06-08-09-10-15
.. gh-issue: 105486
.. nonce: dev-WS
.. section: Core and Builtins
Change the repr of ``ParamSpec`` list of args in ``types.GenericAlias``.
..
.. date: 2023-06-07-21-27-55
.. gh-issue: 105678
.. nonce: wKOr7F
.. section: Core and Builtins
Break the ``MAKE_FUNCTION`` instruction into two parts, ``MAKE_FUNCTION``
which makes the function and ``SET_FUNCTION_ATTRIBUTE`` which sets the
attributes on the function. This makes the stack effect of ``MAKE_FUNCTION``
regular to ease optimization and code generation.
..
.. date: 2023-06-07-12-20-59
.. gh-issue: 105435
.. nonce: 6VllI0
.. section: Core and Builtins
Fix spurious newline character if file ends on a comment without a newline.
Patch by Pablo Galindo
..
.. date: 2023-06-06-17-10-42
.. gh-issue: 105390
.. nonce: DvqI-e
.. section: Core and Builtins
Correctly raise :exc:`tokenize.TokenError` exceptions instead of
:exc:`SyntaxError` for tokenize errors such as incomplete input. Patch by
Pablo Galindo
..
.. date: 2023-06-06-11-37-53
.. gh-issue: 105259
.. nonce: E2BGKL
.. section: Core and Builtins
Don't include newline character for trailing ``NEWLINE`` tokens emitted in
the :mod:`tokenize` module. Patch by Pablo Galindo
..
.. date: 2023-06-05-23-38-43
.. gh-issue: 104635
.. nonce: VYZhVh
.. section: Core and Builtins
Eliminate redundant :opcode:`STORE_FAST` instructions in the compiler. Patch
by Donghee Na and Carl Meyer.
..
.. date: 2023-06-05-17-35-50
.. gh-issue: 105324
.. nonce: BqhiJJ
.. section: Core and Builtins
Fix the main function of the :mod:`tokenize` module when reading from
``sys.stdin``. Patch by Pablo Galindo
..
.. date: 2023-06-05-08-30-49
.. gh-issue: 33092
.. nonce: hZ0xSI
.. section: Core and Builtins
Simplify and speed up interpreter for f-strings. Removes ``FORMAT_VALUE``
opcode. Add ``CONVERT_VALUE``, ``FORMAT_SIMPLE`` and ``FORMAT_WITH_SPEC``
opcode. Compiler emits more efficient sequence for each format expression.
..
.. date: 2023-06-03-04-28-28
.. gh-issue: 105229
.. nonce: stEmfp
.. section: Core and Builtins
Remove remaining two-codeunit superinstructions. All remaining
superinstructions only take a single codeunit, simplifying instrumentation
and quickening.
..
.. 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-06-02-17-39-19
.. gh-issue: 98963
.. nonce: J4wJgk
.. section: Core and Builtins
Restore the ability for a subclass of :class:`property` to define
``__slots__`` or otherwise be dict-less by ignoring failures to set a
docstring on such a class. This behavior had regressed in 3.12beta1. An
:exc:`AttributeError` where there had not previously been one was disruptive
to existing code.
..
.. date: 2023-06-02-15-15-41
.. gh-issue: 104812
.. nonce: dfZiG5
.. section: Core and Builtins
The "pending call" machinery now works for all interpreters, not just the
main interpreter, and runs in all threads, not just the main thread. Some
calls are still only done in the main thread, ergo in the main interpreter.
This change does not affect signal handling nor the existing public C-API
(``Py_AddPendingCall()``), which both still only target the main thread. The
new functionality is meant strictly for internal use for now, since
consequences of its use are not well understood yet outside some very
restricted cases. This change brings the capability in line with the
intention when the state was made per-interpreter several years ago.
..
.. date: 2023-06-02-11-37-12
.. gh-issue: 105194
.. nonce: 4eu56B
.. section: Core and Builtins
Do not escape with backslashes f-string format specifiers. Patch by Pablo
Galindo
..
.. date: 2023-06-02-01-27-35
.. gh-issue: 105229
.. nonce: U05x4G
.. section: Core and Builtins
Replace some dynamic superinstructions with single instruction equivalents.
..
.. date: 2023-06-01-11-37-03
.. gh-issue: 105162
.. nonce: r8VCXk
.. section: Core and Builtins
Fixed bug in generator.close()/throw() where an inner iterator would be
ignored when the outer iterator was instrumented.
..
.. date: 2023-05-31-19-35-22
.. gh-issue: 105164
.. nonce: 6Wajph
.. section: Core and Builtins
Ensure annotations are set up correctly if the only annotation in a block is
within a :keyword:`match` block. Patch by Jelle Zijlstra.
..
.. date: 2023-05-31-16-22-29
.. gh-issue: 105148
.. nonce: MOlb1d
.. section: Core and Builtins
Make ``_PyASTOptimizeState`` internal to ast_opt.c. Make ``_PyAST_Optimize``
take two integers instead of a pointer to this struct. This avoids the need
to include pycore_compile.h in ast_opt.c.
..
.. date: 2023-05-31-08-10-59
.. gh-issue: 104799
.. nonce: 8kDWti
.. section: Core and Builtins
Attributes of :mod:`ast` nodes that are lists now default to the empty list
if omitted. This means that some code that previously raised
:exc:`TypeError` when the AST node was used will now proceed with the empty
list instead. Patch by Jelle Zijlstra.
..
.. date: 2023-05-30-20-30-57
.. gh-issue: 105111
.. nonce: atn0_6
.. section: Core and Builtins
Remove the old trashcan macros ``Py_TRASHCAN_SAFE_BEGIN`` and
``Py_TRASHCAN_SAFE_END``. They should be replaced by the new macros
``Py_TRASHCAN_BEGIN`` and ``Py_TRASHCAN_END``.
..
.. date: 2023-05-30-08-09-43
.. gh-issue: 105035
.. nonce: OWUlHy
.. section: Core and Builtins
Fix :func:`super` calls on types with custom
:c:member:`~PyTypeObject.tp_getattro` implementation (e.g. meta-types.)
..
.. date: 2023-05-27-21-50-48
.. gh-issue: 105017
.. nonce: 4sDyDV
.. section: Core and Builtins
Show CRLF lines in the tokenize string attribute in both NL and NEWLINE
tokens. Patch by Marta GĂłmez.
..
.. date: 2023-05-27-16-57-11
.. gh-issue: 105013
.. nonce: IsDgDY
.. section: Core and Builtins
Fix handling of multiline parenthesized lambdas in
:func:`inspect.getsource`. Patch by Pablo Galindo
..
.. date: 2023-05-27-16-23-16
.. gh-issue: 105017
.. nonce: KQrsC0
.. section: Core and Builtins
Do not include an additional final ``NL`` token when parsing files having
CRLF lines. Patch by Marta GĂłmez.
..
.. date: 2023-05-26-15-16-11
.. gh-issue: 104976
.. nonce: 6dLitD
.. section: Core and Builtins
Ensure that trailing ``DEDENT`` :class:`tokenize.TokenInfo` objects emitted
by the :mod:`tokenize` module are reported as in Python 3.11. Patch by Pablo
Galindo
..
.. date: 2023-05-26-14-09-47
.. gh-issue: 104972
.. nonce: El2UjE
.. section: Core and Builtins
Ensure that the ``line`` attribute in :class:`tokenize.TokenInfo` objects in
the :mod:`tokenize` module are always correct. Patch by Pablo Galindo
..
.. date: 2023-05-25-21-40-39
.. gh-issue: 104955
.. nonce: LZx7jf
.. section: Core and Builtins
Fix signature for the new :meth:`~object.__release_buffer__` slot. Patch by
Jelle Zijlstra.
..
.. date: 2023-05-24-12-10-54
.. gh-issue: 104690
.. nonce: HX3Jou
.. section: Core and Builtins
Starting new threads and process creation through :func:`os.fork` during
interpreter shutdown (such as from :mod:`atexit` handlers) is no longer
supported. It can lead to race condition between the main Python runtime
thread freeing thread states while internal :mod:`threading` routines are
trying to allocate and use the state of just created threads. Or forked
children trying to use the mid-shutdown runtime and thread state in the
child process.
..
.. date: 2023-05-24-10-19-35
.. gh-issue: 104879
.. nonce: v-29NL
.. section: Core and Builtins
Fix crash when accessing the ``__module__`` attribute of type aliases
defined outside a module. Patch by Jelle Zijlstra.
..
.. date: 2023-05-24-09-59-56
.. gh-issue: 104825
.. nonce: mQesie
.. section: Core and Builtins
Tokens emitted by the :mod:`tokenize` module do not include an implicit
``\n`` character in the ``line`` attribute anymore. Patch by Pablo Galindo
..
.. date: 2023-05-23-00-36-02
.. gh-issue: 104770
.. nonce: poSkyY
.. section: Core and Builtins
If a generator returns a value upon being closed, the value is now returned
by :meth:`generator.close`.
..
.. date: 2023-05-18-12-48-39
.. gh-issue: 89091
.. nonce: FDzRcW
.. section: Core and Builtins
Raise :exc:`RuntimeWarning` for unawaited async generator methods like
:meth:`~agen.asend`, :meth:`~agen.athrow` and :meth:`~agen.aclose`. Patch by
Kumar Aditya.
..
.. date: 2023-04-04-00-40-04
.. gh-issue: 96663
.. nonce: PdR9hK
.. section: Core and Builtins
Add a better, more introspect-able error message when setting attributes on
classes without a ``__dict__`` and no slot member for the attribute.
..
.. date: 2023-03-26-19-11-10
.. gh-issue: 93627
.. nonce: 0UgwBL
.. section: Core and Builtins
Update the Python pickle module implementation to match the C implementation
of the pickle module. For objects setting reduction methods like
:meth:`~object.__reduce_ex__` or :meth:`~object.__reduce__` to ``None``,
pickling will result in a :exc:`TypeError`.
..
.. date: 2023-01-13-11-37-41
.. gh-issue: 101006
.. nonce: fuLvn2
.. section: Core and Builtins
Improve error handling when read :mod:`marshal` data.
..
.. date: 2022-11-10-13-04-35
.. gh-issue: 91095
.. nonce: 4E3Pwn
.. section: Core and Builtins
Specializes calls to most Python classes. Specifically, any class that
inherits from ``object``, or another Python class, and does not override
``__new__``.
The specialized instruction does the following:
1. Creates the object (by calling ``object.__new__``)
2. Pushes a shim frame to the frame stack (to cleanup after ``__init__``)
3. Pushes the frame for ``__init__`` to the frame stack
Speeds up the instantiation of most Python classes.
..
.. date: 2023-10-13-01-31-27
.. gh-issue: 110786
.. nonce: sThp-A
.. section: Library
:mod:`sysconfig`'s CLI now ignores :exc:`BrokenPipeError`, making it exit
normally if its output is being piped and the pipe closes.
..
.. date: 2023-10-13-00-14-17
.. gh-issue: 103480
.. nonce: lmdf1J
.. section: Library
The :mod:`sysconfig` module is now a package, instead of a single-file
module.
..
.. date: 2023-10-11-18-43-43
.. gh-issue: 110733
.. nonce: UlrgVm
.. section: Library
Micro-optimization: Avoid calling ``min()``, ``max()`` in
:meth:`BaseEventLoop._run_once`.
..
.. date: 2023-10-11-15-07-21
.. gh-issue: 94597
.. nonce: NbPC8t
.. section: Library
Added :class:`asyncio.EventLoop` for use with the :func:`asyncio.run`
*loop_factory* kwarg to avoid calling the asyncio policy system.
..
.. date: 2023-10-11-11-00-11
.. gh-issue: 110682
.. nonce: bXRFaX
.. section: Library
:func:`runtime-checkable protocols <typing.runtime_checkable>` used to
consider ``__match_args__`` a protocol member in ``__instancecheck__`` if it
was present on the protocol. Now, this attribute is ignored if it is
present.
..
.. date: 2023-10-10-22-54-56
.. gh-issue: 110488
.. nonce: 2I7OiZ
.. section: Library
Fix a couple of issues in :meth:`pathlib.PurePath.with_name`: a single dot
was incorrectly considered a valid name, and in :class:`PureWindowsPath`, a
name with an NTFS alternate data stream, like ``a:b``, was incorrectly
considered invalid.
..
.. date: 2023-10-10-10-46-55
.. gh-issue: 110590
.. nonce: fatz-h
.. section: Library
Fix a bug in :meth:`!_sre.compile` where :exc:`TypeError` would be
overwritten by :exc:`OverflowError` when the *code* argument was a list of
non-ints.
..
.. date: 2023-10-09-19-09-32
.. gh-issue: 65052
.. nonce: C2mRlo
.. section: Library
Prevent :mod:`pdb` from crashing when trying to display undisplayable
objects
..
.. date: 2023-10-08-18-15-02
.. gh-issue: 110519
.. nonce: RDGe8-
.. section: Library
Deprecation warning about non-integer number in :mod:`gettext` now alwais
refers to the line in the user code where gettext function or method is
used. Previously it could refer to a line in ``gettext`` code.
..
.. date: 2023-10-07-21-12-28
.. gh-issue: 89902
.. nonce: dCokZj
.. section: Library
Deprecate non-standard format specifier "N" for :class:`decimal.Decimal`. It
was not documented and only supported in the C implementation.
..
.. date: 2023-10-07-13-50-12
.. gh-issue: 110378
.. nonce: Y4L8fl
.. section: Library
:func:`~contextlib.contextmanager` and
:func:`~contextlib.asynccontextmanager` context managers now close an
invalid underlying generator object that yields more then one value.
..
.. date: 2023-10-07-00-18-40
.. gh-issue: 106670
.. nonce: kCGyRc
.. section: Library
In :mod:`pdb`, set convenience variable ``$_exception`` for post mortem
debugging.
..
.. date: 2023-10-04-18-56-29
.. gh-issue: 110365
.. nonce: LCxiau
.. section: Library
Fix :func:`termios.tcsetattr` bug that was overwritting existing errors
during parsing integers from ``term`` list.
..
.. date: 2023-10-03-15-17-03
.. gh-issue: 109653
.. nonce: 9DYOMD
.. section: Library
Slightly improve the import time of several standard-library modules by
deferring imports of :mod:`warnings` within those modules. Patch by Alex
Waygood.
..
.. date: 2023-10-03-14-07-05
.. gh-issue: 110273
.. nonce: QaDUmS
.. section: Library
:func:`dataclasses.replace` now raises TypeError instead of ValueError if
specify keyword argument for a field declared with init=False or miss
keyword argument for required InitVar field.
..
.. date: 2023-10-03-00-04-26
.. gh-issue: 110249
.. nonce: K0mMrs
.. section: Library
Add ``--inline-caches`` flag to ``dis`` command line.
..
.. date: 2023-10-02-15-40-10
.. gh-issue: 109653
.. nonce: iB0peK
.. section: Library
Fix a Python 3.12 regression in the import time of :mod:`random`. Patch by
Alex Waygood.
..
.. date: 2023-10-02-15-07-28
.. gh-issue: 110222
.. nonce: zl_oHh
.. section: Library
Add support of struct sequence objects in :func:`copy.replace`. Patched by
Xuehai Pan.
..
.. date: 2023-10-01-01-47-21
.. gh-issue: 109649
.. nonce: BizOaD
.. section: Library
:mod:`multiprocessing`, :mod:`concurrent.futures`, :mod:`compileall`:
Replace :func:`os.cpu_count` with :func:`os.process_cpu_count` to select the
default number of worker threads and processes. Get the CPU affinity if
supported. Patch by Victor Stinner.
..
.. date: 2023-09-30-12-50-47
.. gh-issue: 110150
.. nonce: 9j0Ij5
.. section: Library
Fix base case handling in statistics.quantiles. Now allows a single data
point.
..
.. date: 2023-09-28-18-53-11
.. gh-issue: 110036
.. nonce: fECxTj
.. section: Library
On Windows, multiprocessing ``Popen.terminate()`` now catchs
:exc:`PermissionError` and get the process exit code. If the process is
still running, raise again the :exc:`PermissionError`. Otherwise, the
process terminated as expected: store its exit code. Patch by Victor
Stinner.
..
.. date: 2023-09-28-18-50-33
.. gh-issue: 110038
.. nonce: nx_gCu
.. section: Library
Fixed an issue that caused :meth:`KqueueSelector.select` to not return all
the ready events in some cases when a file descriptor is registered for both
read and write.
..
.. date: 2023-09-28-18-08-02
.. gh-issue: 110045
.. nonce: 0YIGKv
.. section: Library
Update the :mod:`symtable` module to support the new scopes introduced by
:pep:`695`.
..
.. date: 2023-09-28-12-32-57
.. gh-issue: 88402
.. nonce: hoa3Gx
.. section: Library
Add new variables to :py:meth:`sysconfig.get_config_vars` on Windows:
``LIBRARY``, ``LDLIBRARY``, ``LIBDIR``, ``SOABI``, and ``Py_NOGIL``.
..
.. date: 2023-09-25-23-00-37
.. gh-issue: 109631
.. nonce: eWSqpO
.. section: Library
:mod:`re` functions such as :func:`re.findall`, :func:`re.split`,
:func:`re.search` and :func:`re.sub` which perform short repeated matches
can now be interrupted by user.
..
.. date: 2023-09-25-10-47-22
.. gh-issue: 109653
.. nonce: TUHrId
.. section: Library
Reduce the import time of :mod:`email.utils` by around 43%. This results in
the import time of :mod:`email.message` falling by around 18%, which in turn
reduces the import time of :mod:`importlib.metadata` by around 6%. Patch by
Alex Waygood.
..
.. date: 2023-09-25-09-59-59
.. gh-issue: 109818
.. nonce: dLRtT-
.. section: Library
Fix :func:`reprlib.recursive_repr` not copying ``__type_params__`` from
decorated function.
..
.. date: 2023-09-25-02-11-14
.. gh-issue: 109047
.. nonce: b1TrqG
.. section: Library
:mod:`concurrent.futures`: The *executor manager thread* now catches
exceptions when adding an item to the *call queue*. During Python
finalization, creating a new thread can now raise :exc:`RuntimeError`. Catch
the exception and call ``terminate_broken()`` in this case. Patch by Victor
Stinner.
..
.. date: 2023-09-24-16-43-33
.. gh-issue: 109782
.. nonce: gMC_7z
.. section: Library
Ensure the signature of :func:`os.path.isdir` is identical on all platforms.
Patch by Amin Alaee.
..
.. date: 2023-09-24-13-28-35
.. gh-issue: 109653
.. nonce: 9IFU0B
.. section: Library
Improve import time of :mod:`functools` by around 13%. Patch by Alex
Waygood.
..
.. date: 2023-09-24-06-04-14
.. gh-issue: 109590
.. nonce: 9EMofC
.. section: Library
:func:`shutil.which` will prefer files with an extension in ``PATHEXT`` if
the given mode includes ``os.X_OK`` on win32. If no ``PATHEXT`` match is
found, a file without an extension in ``PATHEXT`` can be returned. This
change will have :func:`shutil.which` act more similarly to previous
behavior in Python 3.11.
..
.. date: 2023-09-23-12-47-45
.. gh-issue: 109653
.. nonce: 9wZBfs
.. section: Library
Reduce the import time of :mod:`enum` by over 50%. Patch by Alex Waygood.
..
.. date: 2023-09-22-20-16-44
.. gh-issue: 109593
.. nonce: LboaNM
.. section: Library
Avoid deadlocking on a reentrant call to the multiprocessing resource
tracker. Such a reentrant call, though unlikely, can happen if a GC pass
invokes the finalizer for a multiprocessing object such as SemLock.
..
.. date: 2023-09-21-19-42-22
.. gh-issue: 109653
.. nonce: bL3iLH
.. section: Library
Reduce the import time of :mod:`typing` by around a third. Patch by Alex
Waygood.
..
.. date: 2023-09-21-16-21-19
.. gh-issue: 109649
.. nonce: YYCjAF
.. section: Library
Add :func:`os.process_cpu_count` function to get the number of logical CPUs
usable by the calling thread of the current process. Patch by Victor
Stinner.
..
.. date: 2023-09-21-14-26-44
.. gh-issue: 74481
.. nonce: KAUDcD
.. section: Library
Add ``set_error_mode`` related constants in ``msvcrt`` module in Python
debug build.
..
.. date: 2023-09-20-17-45-46
.. gh-issue: 109613
.. nonce: P13ogN
.. section: Library
Fix :func:`os.stat` and :meth:`os.DirEntry.stat`: check for exceptions.
Previously, on Python built in debug mode, these functions could trigger a
fatal Python error (and abort the process) when a function succeeded with an
exception set. Patch by Victor Stinner.
..
.. date: 2023-09-20-07-38-14
.. gh-issue: 109599
.. nonce: IaSLJz
.. section: Library
Expose the type of PyCapsule objects as ``types.CapsuleType``.
..
.. date: 2023-09-19-17-56-24
.. gh-issue: 109109
.. nonce: WJvvX2
.. section: Library
You can now get the raw TLS certificate chains from TLS connections via
:meth:`ssl.SSLSocket.get_verified_chain` and
:meth:`ssl.SSLSocket.get_unverified_chain` methods.
Contributed by Mateusz Nowak.
..
.. date: 2023-09-19-01-22-43
.. gh-issue: 109559
.. nonce: ijaycU
.. section: Library
Update :mod:`unicodedata` database to Unicode 15.1.0.
..
.. date: 2023-09-18-07-43-22
.. gh-issue: 109543
.. nonce: 1tOGoV
.. section: Library
Remove unnecessary :func:`hasattr` check during :data:`typing.TypedDict`
creation.
..
.. date: 2023-09-16-15-44-16
.. gh-issue: 109495
.. nonce: m2H5Bk
.. section: Library
Remove unnecessary extra ``__slots__`` in :py:class:`datetime`\'s pure
python implementation to reduce memory size, as they are defined in the
superclass. Patch by James Hilton-Balfe
..
.. date: 2023-09-15-17-12-53
.. gh-issue: 109461
.. nonce: VNFPTK
.. section: Library
:mod:`logging`: Use a context manager for lock acquisition.
..
.. date: 2023-09-15-12-20-23
.. gh-issue: 109096
.. nonce: VksX1D
.. section: Library
:class:`http.server.CGIHTTPRequestHandler` has been deprecated for removal
in 3.15. Its design is old and the web world has long since moved beyond
CGI.
..
.. date: 2023-09-15-10-42-30
.. gh-issue: 109409
.. nonce: RlffA3
.. section: Library
Fix error when it was possible to inherit a frozen dataclass from multiple
parents some of which were possibly not frozen.
..
.. date: 2023-09-13-17-22-44
.. gh-issue: 109375
.. nonce: ijJHZ9
.. section: Library
The :mod:`pdb` ``alias`` command now prevents registering aliases without
arguments.
..
.. date: 2023-09-12-13-01-55
.. gh-issue: 109319
.. nonce: YaCMtW
.. section: Library
Deprecate the ``dis.HAVE_ARGUMENT`` field in favour of ``dis.hasarg``.
..
.. date: 2023-09-11-00-32-18
.. gh-issue: 107219
.. nonce: 3zqyFT
.. section: Library
Fix a race condition in ``concurrent.futures``. When a process in the
process pool was terminated abruptly (while the future was running or
pending), close the connection write end. If the call queue is blocked on
sending bytes to a worker process, closing the connection write end
interrupts the send, so the queue can be closed. Patch by Victor Stinner.
..
.. date: 2023-09-10-20-23-20
.. gh-issue: 66143
.. nonce: 71xvgL
.. section: Library
The :class:`codecs.CodecInfo` object has been made copyable and pickleable.
Patched by Robert Lehmann and Furkan Onder.
..
.. date: 2023-09-09-17-09-54
.. gh-issue: 109187
.. nonce: dIayNW
.. section: Library
:meth:`pathlib.Path.resolve` now treats symlink loops like other errors: in
strict mode, :exc:`OSError` is raised, and in non-strict mode, no exception
is raised.
..
.. date: 2023-09-09-15-08-37
.. gh-issue: 50644
.. nonce: JUAZOh
.. section: Library
Attempts to pickle or create a shallow or deep copy of :mod:`codecs` streams
now raise a TypeError. Previously, copying failed with a RecursionError,
while pickling produced wrong results that eventually caused unpickling to
fail with a RecursionError.
..
.. date: 2023-09-09-09-05-41
.. gh-issue: 109174
.. nonce: OJea5s
.. section: Library
Add support of :class:`types.SimpleNamespace` in :func:`copy.replace`.
..
.. date: 2023-09-08-22-26-26
.. gh-issue: 109164
.. nonce: -9BFWR
.. section: Library
:mod:`pdb`: Replace :mod:`getopt` with :mod:`argparse` for parsing command
line arguments.
..
.. date: 2023-09-08-19-44-01
.. gh-issue: 109151
.. nonce: GkzkQu
.. section: Library
Enable ``readline`` editing features in the :ref:`sqlite3 command-line
interface <sqlite3-cli>` (``python -m sqlite3``).
..
.. date: 2023-09-08-12-09-55
.. gh-issue: 108987
.. nonce: x5AIG8
.. section: Library
Fix :func:`_thread.start_new_thread` race condition. If a thread is created
during Python finalization, the newly spawned thread now exits immediately
instead of trying to access freed memory and lead to a crash. Patch by
Victor Stinner.
..
.. date: 2023-09-06-19-33-41
.. gh-issue: 108682
.. nonce: 35Xnc5
.. section: Library
Enum: require ``names=()`` or ``type=...`` to create an empty enum using the
functional syntax.
..
.. date: 2023-09-06-14-47-28
.. gh-issue: 109033
.. nonce: piUzDx
.. section: Library
Exceptions raised by os.utime builtin function now include the related
filename
..
.. date: 2023-09-06-06-17-23
.. gh-issue: 108843
.. nonce: WJMhsS
.. section: Library
Fix an issue in :func:`ast.unparse` when unparsing f-strings containing many
quote types.
..
.. date: 2023-09-03-04-37-52
.. gh-issue: 108469
.. nonce: kusj40
.. section: Library
:func:`ast.unparse` now supports new :term:`f-string` syntax introduced in
Python 3.12. Note that the :term:`f-string` quotes are reselected for
simplicity under the new syntax. (Patch by Steven Sun)
..
.. date: 2023-09-01-13-14-08
.. gh-issue: 108751
.. nonce: 2itqwe
.. section: Library
Add :func:`copy.replace` function which allows to create a modified copy of
an object. It supports named tuples, dataclasses, and many other objects.
..
.. date: 2023-08-30-20-10-28
.. gh-issue: 108682
.. nonce: c2gzLQ
.. section: Library
Enum: raise :exc:`TypeError` if ``super().__new__()`` is called from a
custom ``__new__``.
..
.. date: 2023-08-29-11-29-15
.. gh-issue: 108278
.. nonce: -UhsnJ
.. section: Library
Deprecate passing the callback callable by keyword for the following
:class:`sqlite3.Connection` APIs:
* :meth:`~sqlite3.Connection.set_authorizer`
* :meth:`~sqlite3.Connection.set_progress_handler`
* :meth:`~sqlite3.Connection.set_trace_callback`
The affected parameters will become positional-only in Python 3.15.
Patch by Erlend E. Aasland.
..
.. date: 2023-08-26-12-35-39
.. gh-issue: 105829
.. nonce: kyYhWI
.. section: Library
Fix concurrent.futures.ProcessPoolExecutor deadlock
..
.. date: 2023-08-26-08-38-57
.. gh-issue: 108295
.. nonce: Pn0QRM
.. section: Library
Fix crashes related to use of weakrefs on :data:`typing.TypeVar`.
..
.. date: 2023-08-25-00-14-34
.. gh-issue: 108463
.. nonce: mQApp_
.. section: Library
Make expressions/statements work as expected in pdb
..
.. date: 2023-08-23-22-08-32
.. gh-issue: 108277
.. nonce: KLV-6T
.. section: Library
Add :func:`os.timerfd_create`, :func:`os.timerfd_settime`,
:func:`os.timerfd_gettime`, :func:`os.timerfd_settime_ns`, and
:func:`os.timerfd_gettime_ns` to provide a low level interface for Linux's
timer notification file descriptor.
..
.. date: 2023-08-23-17-34-39
.. gh-issue: 107811
.. nonce: 3Fng72
.. section: Library
:mod:`tarfile`: extraction of members with overly large UID or GID (e.g. on
an OS with 32-bit :c:type:`!id_t`) now fails in the same way as failing to
set the ID.
..
.. date: 2023-08-22-22-29-42
.. gh-issue: 64662
.. nonce: jHl_Bt
.. section: Library
Fix support for virtual tables in :meth:`sqlite3.Connection.iterdump`. Patch
by Aviv Palivoda.
..
.. date: 2023-08-22-17-27-12
.. gh-issue: 108111
.. nonce: N7a4u_
.. section: Library
Fix a regression introduced in GH-101251 for 3.12, resulting in an incorrect
offset calculation in :meth:`gzip.GzipFile.seek`.
..
.. date: 2023-08-22-16-18-49
.. gh-issue: 108294
.. nonce: KEeUcM
.. section: Library
:func:`time.sleep` now raises an auditing event.
..
.. date: 2023-08-22-13-51-10
.. gh-issue: 108278
.. nonce: 11d_qG
.. section: Library
Deprecate passing name, number of arguments, and the callable as keyword
arguments, for the following :class:`sqlite3.Connection` APIs:
* :meth:`~sqlite3.Connection.create_function`
* :meth:`~sqlite3.Connection.create_aggregate`
The affected parameters will become positional-only in Python 3.15.
Patch by Erlend E. Aasland.
..
.. date: 2023-08-22-12-05-47
.. gh-issue: 108322
.. nonce: kf3NJX
.. section: Library
Speed-up NormalDist.samples() by using the inverse CDF method instead of
calling random.gauss().
..
.. date: 2023-08-18-22-58-07
.. gh-issue: 83417
.. nonce: 61J4yM
.. section: Library
Add the ability for venv to create a ``.gitignore`` file which causes the
created environment to be ignored by Git. It is on by default when venv is
called via its CLI.
..
.. date: 2023-08-17-14-45-25
.. gh-issue: 105736
.. nonce: NJsH7r
.. section: Library
Harmonized the pure Python version of :class:`~collections.OrderedDict` with
the C version. Now, both versions set up their internal state in
``__new__``. Formerly, the pure Python version did the set up in
``__init__``.
..
.. date: 2023-08-17-12-59-35
.. gh-issue: 108083
.. nonce: 9J7UcT
.. section: Library
Fix bugs in the constructor of :mod:`sqlite3.Connection` and
:meth:`sqlite3.Connection.close` where exceptions could be leaked. Patch by
Erlend E. Aasland.
..
.. date: 2023-08-16-21-20-55
.. gh-issue: 107932
.. nonce: I7hFsp
.. section: Library
Fix ``dis`` module to properly report and display bytecode that do not have
source lines.
..
.. date: 2023-08-16-14-30-13
.. gh-issue: 105539
.. nonce: 29lA6c
.. section: Library
:mod:`sqlite3` now emits an :exc:`ResourceWarning` if a
:class:`sqlite3.Connection` object is not :meth:`closed
<sqlite3.connection.close>` explicitly. Patch by Erlend E. Aasland.
..
.. date: 2023-08-16-00-24-07
.. gh-issue: 107995
.. nonce: TlTp5t
.. section: Library
The ``__module__`` attribute on instances of
:class:`functools.cached_property` is now set to the name of the module in
which the cached_property is defined, rather than "functools". This means
that doctests in ``cached_property`` docstrings are now properly collected
by the :mod:`doctest` module. Patch by Tyler Smart.
..
.. date: 2023-08-15-18-20-00
.. gh-issue: 107963
.. nonce: 20g5BG
.. section: Library
Fix :func:`multiprocessing.set_forkserver_preload` to check the given list
of modules names. Patch by Donghee Na.
..
.. date: 2023-08-14-23-11-11
.. gh-issue: 106242
.. nonce: 71HMym
.. section: Library
Fixes :func:`os.path.normpath` to handle embedded null characters without
truncating the path.
..
.. date: 2023-08-14-20-18-59
.. gh-issue: 81555
.. nonce: cWdP4a
.. section: Library
:mod:`xml.dom.minidom` now only quotes ``"`` in attributes.
..
.. date: 2023-08-14-20-01-14
.. gh-issue: 50002
.. nonce: E-bpj8
.. section: Library
:mod:`xml.dom.minidom` now preserves whitespaces in attributes.
..
.. date: 2023-08-14-19-49-02
.. gh-issue: 93057
.. nonce: 5nJwO5
.. section: Library
Passing more than one positional argument to :func:`sqlite3.connect` and the
:class:`sqlite3.Connection` constructor is deprecated. The remaining
parameters will become keyword-only in Python 3.15. Patch by Erlend E.
Aasland.
..
.. date: 2023-08-14-17-15-59
.. gh-issue: 76913
.. nonce: LLD0rT
.. section: Library
Add *merge_extra* parameter/feature to :class:`logging.LoggerAdapter`
..
.. date: 2023-08-14-11-18-13
.. gh-issue: 107913
.. nonce: 4ooY6i
.. section: Library
Fix possible losses of ``errno`` and ``winerror`` values in :exc:`OSError`
exceptions if they were cleared or modified by the cleanup code before
creating the exception object.
..
.. date: 2023-08-10-17-36-22
.. gh-issue: 107845
.. nonce: dABiMJ
.. section: Library
:func:`tarfile.data_filter` now takes the location of symlinks into account
when determining their target, so it will no longer reject some valid
tarballs with ``LinkOutsideDestinationError``.
..
.. date: 2023-08-09-15-37-20
.. gh-issue: 107812
.. nonce: CflAXa
.. section: Library
Extend socket's netlink support to the FreeBSD platform.
..
.. date: 2023-08-09-13-49-37
.. gh-issue: 107805
.. nonce: ezem0k
.. section: Library
Fix signatures of module-level generated functions in :mod:`turtle`.
..
.. date: 2023-08-08-19-57-45
.. gh-issue: 107782
.. nonce: mInjFE
.. section: Library
:mod:`pydoc` is now able to show signatures which are not representable in
Python, e.g. for ``getattr`` and ``dict.pop``.
..
.. date: 2023-08-08-16-09-59
.. gh-issue: 56166
.. nonce: WUMhYG
.. section: Library
Deprecate passing optional arguments *maxsplit*, *count* and *flags* in
module-level functions :func:`re.split`, :func:`re.sub` and :func:`re.subn`
as positional. They should only be passed by keyword.
..
.. date: 2023-08-07-14-24-42
.. gh-issue: 107710
.. nonce: xfOCfj
.. section: Library
Speed up :func:`logging.getHandlerNames`.
..
.. date: 2023-08-07-14-12-07
.. gh-issue: 107715
.. nonce: 238r2f
.. section: Library
Fix :meth:`doctest.DocTestFinder.find` in presence of class names with
special characters. Patch by Gertjan van Zwieten.
..
.. date: 2023-08-06-15-29-00
.. gh-issue: 100814
.. nonce: h195gW
.. section: Library
Passing a callable object as an option value to a Tkinter image now raises
the expected TclError instead of an AttributeError.
..
.. date: 2023-08-06-10-52-12
.. gh-issue: 72684
.. nonce: Ls2mSf
.. section: Library
Add :mod:`tkinter` widget methods: :meth:`!tk_busy_hold`,
:meth:`!tk_busy_configure`, :meth:`!tk_busy_cget`, :meth:`!tk_busy_forget`,
:meth:`!tk_busy_current`, and :meth:`!tk_busy_status`.
..
.. date: 2023-08-05-05-10-41
.. gh-issue: 106684
.. nonce: P9zRXb
.. section: Library
Raise :exc:`ResourceWarning` when :class:`asyncio.StreamWriter` is not
closed leading to memory leaks. Patch by Kumar Aditya.
..
.. date: 2023-08-04-19-00-53
.. gh-issue: 107465
.. nonce: Vc1Il3
.. section: Library
Add :meth:`pathlib.Path.from_uri` classmethod.
..
.. 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-08-01-21-43-58
.. gh-issue: 105481
.. nonce: cl2ajS
.. section: Library
Remove ``opcode.is_pseudo``, ``opcode.MIN_PSEUDO_OPCODE`` and
``opcode.MAX_PSEUDO_OPCODE``, which were added in 3.12, were never
documented and were not intended to be used externally.
..
.. date: 2023-08-01-15-17-20
.. gh-issue: 105481
.. nonce: vMbmj_
.. section: Library
:data:`opcode.ENABLE_SPECIALIZATION` (which was added in 3.12 but never
documented or intended for external usage) is moved to
:data:`_opcode.ENABLE_SPECIALIZATION` where tests can access it.
..
.. date: 2023-07-31-07-36-24
.. gh-issue: 107396
.. nonce: 3_Kh6D
.. section: Library
tarfiles; Fixed use before assignment of self.exception for gzip
decompression
..
.. date: 2023-07-29-02-36-50
.. gh-issue: 107409
.. nonce: HG27Nu
.. section: Library
Set :attr:`!__wrapped__` attribute in :func:`reprlib.recursive_repr`.
..
.. date: 2023-07-29-02-01-24
.. gh-issue: 107406
.. nonce: ze6sQP
.. section: Library
Implement new :meth:`__repr__` method for :class:`struct.Struct`. Now it
returns ``Struct(<format repr>)``.
..
.. date: 2023-07-28-14-56-35
.. gh-issue: 107369
.. nonce: bvTq8F
.. section: Library
Optimize :func:`textwrap.indent`. It is ~30% faster for large input. Patch
by Inada Naoki.
..
.. date: 2023-07-26-22-52-48
.. gh-issue: 78722
.. nonce: 6SKBLt
.. section: Library
Fix issue where :meth:`pathlib.Path.iterdir` did not raise :exc:`OSError`
until iterated.
..
.. date: 2023-07-23-13-05-32
.. gh-issue: 105578
.. nonce: XAQtyR
.. section: Library
Deprecate :class:`typing.AnyStr` in favor of the new Type Parameter syntax.
See PEP 695.
..
.. 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-21-57-34
.. gh-issue: 107089
.. nonce: Dnget2
.. section: Library
Shelves opened with :func:`shelve.open` have a much faster :meth:`clear`
method. Patch by James Cave.
..
.. date: 2023-07-22-16-44-58
.. gh-issue: 82500
.. nonce: cQYoPj
.. section: Library
Fix overflow on 32-bit systems with :mod:`asyncio` :func:`os.sendfile`
implemention.
..
.. 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-14-29-34
.. gh-issue: 65495
.. nonce: fw84qM
.. section: Library
Use lowercase ``mail from`` and ``rcpt to`` in :class:`smptlib.SMTP`.
..
.. 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-20-06-00-35
.. gh-issue: 106739
.. nonce: W1hygr
.. section: Library
Add the ``rtype_cache`` to the warning message (as an addition to the type
of leaked objects and the number of leaked objects already included in the
message) to make debugging leaked objects easier when the multiprocessing
resource tracker process finds leaked objects at shutdown. This helps more
quickly identify what was leaked and/or why the leaked object was not
properly cleaned up.
..
.. date: 2023-07-19-10-45-24
.. gh-issue: 106751
.. nonce: 3HJ1of
.. section: Library
Optimize :meth:`SelectSelector.select` for many iteration case. Patch By
Donghee Na.
..
.. date: 2023-07-19-09-11-08
.. gh-issue: 106751
.. nonce: U9nD_B
.. section: Library
Optimize :meth:`_PollLikeSelector.select` for many iteration case.
..
.. date: 2023-07-18-23-05-12
.. gh-issue: 106751
.. nonce: tVvzN_
.. section: Library
Optimize :meth:`KqueueSelector.select` for many iteration case. Patch By
Donghee Na.
..
.. 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-17-16-46-00
.. gh-issue: 105481
.. nonce: fek_Nn
.. section: Library
The various opcode lists in the :mod:`dis` module are now generated from
bytecodes.c instead of explicitly constructed in opcode.py.
..
.. date: 2023-07-16-23-59-33
.. gh-issue: 106727
.. nonce: bk3uCu
.. section: Library
Make :func:`inspect.getsource` smarter for class for same name definitions
..
.. date: 2023-07-16-10-40-34
.. gh-issue: 106789
.. nonce: NvyE3C
.. section: Library
Remove import of :mod:`pprint` from :mod:`sysconfig`.
..
.. date: 2023-07-15-12-52-50
.. gh-issue: 105726
.. nonce: NGthO8
.. section: Library
Added ``__slots__`` to :class:`contextlib.AbstractContextManager` and
:class:`contextlib.AbstractAsyncContextManager` so that child classes can
use ``__slots__``.
..
.. 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-20-31-09
.. gh-issue: 106751
.. nonce: 52F6yQ
.. section: Library
:mod:`selectors`: Optimize ``EpollSelector.select()`` code by moving some
code outside of the loop.
..
.. date: 2023-07-14-16-54-13
.. gh-issue: 106752
.. nonce: BT1Yxw
.. section: Library
Fixed several bugs in zipfile.Path, including: in
:meth:`zipfile.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-14-14-53-58
.. gh-issue: 105293
.. nonce: kimf_i
.. section: Library
Remove call to ``SSL_CTX_set_session_id_context`` during client side context
creation in the :mod:`ssl` module.
..
.. date: 2023-07-14-01-47-39
.. gh-issue: 106734
.. nonce: eMYSoz
.. section: Library
Disable tab completion in multiline mode of :mod:`pdb`
..
.. date: 2023-07-13-16-04-15
.. gh-issue: 105481
.. nonce: pYSwMj
.. section: Library
Expose opcode metadata through :mod:`_opcode`.
..
.. date: 2023-07-12-10-59-08
.. gh-issue: 106670
.. nonce: goQ2Sy
.. section: Library
Add the new ``exceptions`` command to the Pdb debugger. It makes it possible
to move between chained exceptions when using post mortem debugging.
..
.. date: 2023-07-12-04-58-45
.. gh-issue: 106602
.. nonce: dGCcXe
.. section: Library
Add __copy__ and __deepcopy__ in :mod:`enum`
..
.. date: 2023-07-12-03-04-45
.. gh-issue: 106664
.. nonce: ZeUG78
.. section: Library
:mod:`selectors`: Add ``_SelectorMapping.get()`` method and optimize
``_SelectorMapping.__getitem__()``.
..
.. date: 2023-07-11-16-36-22
.. gh-issue: 106628
.. nonce: Kx8Zvc
.. section: Library
Speed up parsing of emails by about 20% by not compiling a new regular
expression for every single email.
..
.. date: 2023-07-11-12-34-04
.. gh-issue: 89427
.. nonce: GOkCp9
.. section: Library
Set the environment variable ``VIRTUAL_ENV_PROMPT`` at :mod:`venv`
activation, even when ``VIRTUAL_ENV_DISABLE_PROMPT`` is set.
..
.. 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-11-08-56-40
.. gh-issue: 106584
.. nonce: g-SBtC
.. section: Library
Fix exit code for ``unittest`` if all tests are skipped. Patch by Egor
Eliseev.
..
.. date: 2023-07-09-13-10-54
.. gh-issue: 106566
.. nonce: NN35-U
.. section: Library
Optimize ``(?!)`` (pattern which alwais fails) in regular expressions.
..
.. date: 2023-07-09-01-59-24
.. gh-issue: 106554
.. nonce: 37c53J
.. section: Library
:mod:`selectors`: Reduce Selector overhead by using a ``dict.get()`` to
lookup file descriptors.
..
.. date: 2023-07-09-00-36-33
.. gh-issue: 106558
.. nonce: Zqsj6F
.. section: Library
Remove ref cycle in callers of
:func:`~multiprocessing.managers.convert_to_error` by deleting ``result``
from scope in a ``finally`` block.
..
.. date: 2023-07-07-21-15-17
.. gh-issue: 100502
.. nonce: Iici1B
.. section: Library
Add :attr:`pathlib.PurePath.pathmod` class attribute that stores the
implementation of :mod:`os.path` used for low-level path operations: either
``posixpath`` or ``ntpath``.
..
.. date: 2023-07-07-18-22-07
.. gh-issue: 106527
.. nonce: spHQ0W
.. section: Library
Reduce overhead to add and remove :mod:`asyncio` readers and writers.
..
.. date: 2023-07-07-17-44-03
.. gh-issue: 106524
.. nonce: XkBV8h
.. section: Library
Fix crash in :func:`!_sre.template` with templates containing invalid group
indices.
..
.. date: 2023-07-07-16-19-59
.. gh-issue: 106531
.. nonce: eMfNm8
.. section: Library
Removed ``_legacy`` and the names it provided from ``importlib.resources``:
``Resource``, ``contents``, ``is_resource``, ``open_binary``, ``open_text``,
``path``, ``read_binary``, and ``read_text``.
..
.. date: 2023-07-07-14-52-31
.. gh-issue: 106052
.. nonce: ak8nbs
.. section: Library
:mod:`re` module: fix the matching of possessive quantifiers in the case of
a subpattern containing backtracking.
..
.. date: 2023-07-07-13-47-28
.. gh-issue: 106510
.. nonce: 9n5BdC
.. section: Library
Improve debug output for atomic groups in regular expressions.
..
.. date: 2023-07-07-03-05-58
.. gh-issue: 106503
.. nonce: ltfeiH
.. section: Library
Fix ref cycle in :class:`!asyncio._SelectorSocketTransport` by removing
``_write_ready`` in ``close``.
..
.. date: 2023-07-05-14-34-10
.. gh-issue: 105497
.. nonce: HU5u89
.. section: Library
Fix flag mask inversion when unnamed flags exist.
..
.. date: 2023-07-05-13-08-23
.. gh-issue: 90876
.. nonce: Qvlkfl
.. section: Library
Prevent :mod:`multiprocessing.spawn` from failing to *import* in
environments where ``sys.executable`` is ``None``. This regressed in 3.11
with the addition of support for path-like objects in multiprocessing.
..
.. 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-20-23-56
.. gh-issue: 89812
.. nonce: cFkDOE
.. section: Library
Add private ``pathlib._PathBase`` class, which provides experimental support
for virtual filesystems, and may be made public in a future version of
Python.
..
.. date: 2023-07-03-15-09-44
.. gh-issue: 106292
.. nonce: 3npldV
.. section: Library
Check for an instance-dict cached value in the :meth:`__get__` method of
:func:`functools.cached_property`. This better matches the pre-3.12 behavior
and improves compatibility for users subclassing
:func:`functools.cached_property` and adding a :meth:`__set__` method.
..
.. 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-07-02-10-56-41
.. gh-issue: 106330
.. nonce: QSkIUH
.. section: Library
Fix incorrect matching of empty paths in :meth:`pathlib.PurePath.match`.
This bug was introduced in Python 3.12.0 beta 1.
..
.. date: 2023-07-01-16-51-55
.. gh-issue: 106309
.. nonce: hSlB17
.. section: Library
Deprecate :func:`typing.no_type_check_decorator`. No major type checker ever
added support for this decorator. Patch by Alex Waygood.
..
.. date: 2023-07-01-16-40-54
.. gh-issue: 102541
.. nonce: C1ahtk
.. section: Library
Make pydoc.doc catch bad module ImportError when output stream is not None.
..
.. 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-29-15-10-44
.. gh-issue: 106236
.. nonce: EAIX4l
.. section: Library
Replace ``assert`` statements with ``raise RuntimeError`` in
:mod:`threading`, so that ``_DummyThread`` cannot be joined even with
``-OO``.
..
.. date: 2023-06-29-12-40-52
.. gh-issue: 106238
.. nonce: VulKb9
.. section: Library
Fix rare concurrency bug in lock acquisition by the logging package.
..
.. date: 2023-06-27-23-22-37
.. gh-issue: 106152
.. nonce: ya5jBT
.. section: Library
Added PY_THROW event hook for :mod:`cProfile` for generators
..
.. date: 2023-06-25-12-28-55
.. gh-issue: 106075
.. nonce: W7tMRb
.. section: Library
Added ``asyncio.taskgroups.__all__`` to ``asyncio.__all__`` for export in
star imports.
..
.. date: 2023-06-25-06-57-24
.. gh-issue: 104527
.. nonce: TJEUkd
.. section: Library
Zipapp will now skip over apending an archive to itself.
..
.. date: 2023-06-23-22-52-24
.. gh-issue: 106046
.. nonce: OdLiLJ
.. section: Library
Improve the error message from :func:`os.fspath` if called on an object
where ``__fspath__`` is set to ``None``. Patch by Alex Waygood.
..
.. date: 2023-06-22-15-21-11
.. gh-issue: 105987
.. nonce: T7Kzrb
.. section: Library
Fix crash due to improper reference counting in :mod:`asyncio` eager task
factory internal routines.
..
.. date: 2023-06-21-19-04-27
.. gh-issue: 105974
.. nonce: M47n3t
.. section: Library
Fix bug where a :class:`typing.Protocol` class that had one or more
non-callable members would raise :exc:`TypeError` when :func:`issubclass`
was called against it, even if it defined a custom ``__subclasshook__``
method. The behaviour in Python 3.11 and lower -- which has now been
restored -- was not to raise :exc:`TypeError` in these situations if a
custom ``__subclasshook__`` method was defined. Patch by Alex Waygood.
..
.. date: 2023-06-20-23-18-45
.. gh-issue: 96145
.. nonce: o5dTRM
.. section: Library
Reverted addition of ``json.AttrDict``.
..
.. date: 2023-06-19-22-20-41
.. gh-issue: 89812
.. nonce: z2l_e8
.. section: Library
Add :exc:`pathlib.UnsupportedOperation`, which is raised instead of
:exc:`NotImplementedError` when a path operation isn't supported.
..
.. date: 2023-06-19-11-31-55
.. gh-issue: 105808
.. nonce: NL-quu
.. section: Library
Fix a regression introduced in GH-101251 for 3.12, causing
:meth:`gzip.GzipFile.flush` to not flush the compressor (nor pass along the
``zip_mode`` argument).
..
.. date: 2023-06-17-12-13-57
.. gh-issue: 105481
.. nonce: KgBH5w
.. section: Library
:func:`~dis.stack_effect` no longer raises an exception if an ``oparg`` is
provided for an ``opcode`` that doesn't use its arg, or when it is not
provided for an ``opcode`` that does use it. In the latter case, the stack
effect is returned for ``oparg=0``.
..
.. date: 2023-06-15-18-11-47
.. gh-issue: 104799
.. nonce: BcLzbP
.. section: Library
Enable :func:`ast.unparse` to unparse function and class definitions created
without the new ``type_params`` field from :pep:`695`. Patch by Jelle
Zijlstra.
..
.. date: 2023-06-14-18-41-18
.. gh-issue: 105793
.. nonce: YSoykM
.. section: Library
Add *follow_symlinks* keyword-only argument to :meth:`pathlib.Path.is_dir`
and :meth:`~pathlib.Path.is_file`, defaulting to ``True``.
..
.. date: 2023-06-14-14-32-31
.. gh-issue: 105570
.. nonce: sFTtQU
.. section: Library
Deprecate two methods of creating :class:`typing.TypedDict` classes with 0
fields using the functional syntax: ``TD = TypedDict("TD")`` and ``TD =
TypedDict("TD", None)``. Both will be disallowed in Python 3.15. To create a
``TypedDict`` class with 0 fields, either use ``class TD(TypedDict): pass``
or ``TD = TypedDict("TD", {})``.
..
.. date: 2023-06-14-10-27-34
.. gh-issue: 105745
.. nonce: l1ttOQ
.. section: Library
Fix ``webbrowser.Konqueror.open`` method.
..
.. date: 2023-06-13-19-38-12
.. gh-issue: 105733
.. nonce: WOp0mG
.. section: Library
:mod:`ctypes`: Deprecate undocumented :func:`!ctypes.SetPointerType` and
:func:`!ctypes.ARRAY` functions. Patch by Victor Stinner.
..
.. date: 2023-06-12-15-17-34
.. gh-issue: 105687
.. nonce: ZUonKm
.. section: Library
Remove deprecated ``re.template``, ``re.T``, ``re.TEMPLATE``,
``sre_constans.SRE_FLAG_TEMPLATE``.
..
.. date: 2023-06-12-10-40-38
.. gh-issue: 105684
.. nonce: yiHkFD
.. section: Library
Supporting :meth:`asyncio.Task.set_name` is now mandatory for third party
task implementations. The undocumented :func:`!_set_task_name` function
(deprecated since 3.8) has been removed. Patch by Kumar Aditya.
..
.. date: 2023-06-11-22-46-06
.. gh-issue: 105375
.. nonce: YkhSNt
.. section: Library
Fix a bug in :c:func:`!_Unpickler_SetInputStream` where an exception could
end up being overwritten in case of failure.
..
.. 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 ``{}``.
..
.. date: 2023-06-09-23-46-23
.. gh-issue: 105375
.. nonce: 9KaioS
.. section: Library
Fix bugs in :mod:`sys` where exceptions could end up being overwritten
because of deferred error handling.
..
.. date: 2023-06-09-23-00-13
.. gh-issue: 105605
.. nonce: YuwqxY
.. section: Library
Harden :mod:`pyexpat` error handling during module initialisation to prevent
exceptions from possibly being overwritten, and objects from being
dereferenced twice.
..
.. date: 2023-06-09-22-52-45
.. gh-issue: 105375
.. nonce: 6igkhn
.. section: Library
Fix bug in :mod:`decimal` where an exception could end up being overwritten.
..
.. date: 2023-06-09-22-45-26
.. gh-issue: 105375
.. nonce: 9rp6tG
.. section: Library
Fix bugs in :mod:`!_datetime` where exceptions could be overwritten in case
of module initialisation failure.
..
.. date: 2023-06-09-22-16-46
.. gh-issue: 105375
.. nonce: EgVJOP
.. section: Library
Fix bugs in :mod:`!_ssl` initialisation which could lead to leaked
references and overwritten exceptions.
..
.. date: 2023-06-09-21-46-52
.. gh-issue: 105375
.. nonce: yrJelV
.. section: Library
Fix a bug in :class:`array.array` where an exception could end up being
overwritten.
..
.. date: 2023-06-09-21-40-45
.. gh-issue: 105375
.. nonce: _sZilh
.. section: Library
Fix bugs in :mod:`_ctypes` where exceptions could end up being overwritten.
..
.. date: 2023-06-09-21-30-59
.. gh-issue: 105375
.. nonce: eewafp
.. section: Library
Fix a bug in the :mod:`posix` module where an exception could be
overwritten.
..
.. date: 2023-06-09-21-25-14
.. gh-issue: 105375
.. nonce: 95g1eI
.. section: Library
Fix bugs in :mod:`!_elementtree` where exceptions could be overwritten.
..
.. date: 2023-06-09-21-11-28
.. gh-issue: 105375
.. nonce: 4Mxn7t
.. section: Library
Fix bugs in :mod:`zoneinfo` where exceptions could be overwritten.
..
.. date: 2023-06-09-21-04-39
.. gh-issue: 105375
.. nonce: bTcqS9
.. section: Library
Fix bugs in :mod:`errno` where exceptions could be overwritten.
..
.. date: 2023-06-09-20-34-23
.. gh-issue: 105566
.. nonce: YxlGg1
.. section: Library
Deprecate creating a :class:`typing.NamedTuple` class using keyword
arguments to denote the fields (``NT = NamedTuple("NT", x=int, y=str)``).
This will be disallowed in Python 3.15. Use the class-based syntax or the
functional syntax instead.
Two methods of creating ``NamedTuple`` classes with 0 fields using the
functional syntax are also deprecated, and will be disallowed in Python
3.15: ``NT = NamedTuple("NT")`` and ``NT = NamedTuple("NT", None)``. To
create a ``NamedTuple`` class with 0 fields, either use ``class
NT(NamedTuple): pass`` or ``NT = NamedTuple("NT", [])``.
..
.. date: 2023-06-09-08-38-30
.. gh-issue: 105545
.. nonce: 2q3ysu
.. section: Library
Remove deprecated in 3.11 ``webbrowser.MacOSXOSAScript._name`` attribute.
..
.. date: 2023-06-08-17-49-46
.. gh-issue: 105497
.. nonce: K6Q8nU
.. section: Library
Fix flag inversion when alias/mask members exist.
..
.. date: 2023-06-08-15-56-45
.. gh-issue: 105509
.. nonce: YIG57j
.. section: Library
:data:`typing.Annotated` is now implemented as an instance of
``typing._SpecialForm`` rather than a class. This should have no user-facing
impact for users of the :mod:`typing` module public API.
..
.. date: 2023-06-08-08-58-36
.. gh-issue: 105375
.. nonce: bTcqS9
.. section: Library
Fix bugs in :mod:`pickle` where exceptions could be overwritten.
..
.. date: 2023-06-07-00-13-00
.. gh-issue: 70303
.. nonce: frwUKH
.. section: Library
Emit :exc:`FutureWarning` from :meth:`pathlib.Path.glob` and
:meth:`~pathlib.Path.rglob` if the given pattern ends with "``**``". In a
future Python release, patterns with this ending will match both files and
directories. Add a trailing slash to only match directories.
..
.. date: 2023-06-07-00-09-52
.. gh-issue: 105375
.. nonce: Y_9D4n
.. section: Library
Fix a bug in :mod:`sqlite3` where an exception could be overwritten in the
:meth:`collation <sqlite3.Connection.create_collation>` callback.
..
.. date: 2023-06-06-16-00-03
.. gh-issue: 105382
.. nonce: A1LgzA
.. section: Library
Remove *cafile*, *capath* and *cadefault* parameters of the
:func:`urllib.request.urlopen` function, deprecated in Python 3.6. Patch by
Victor Stinner.
..
.. date: 2023-06-06-15-32-44
.. gh-issue: 105376
.. nonce: W4oDQp
.. section: Library
:mod:`logging`: Remove undocumented and untested ``Logger.warn()`` and
``LoggerAdapter.warn()`` methods and ``logging.warn()`` function. Deprecated
since Python 3.3, they were aliases to the :meth:`logging.Logger.warning`
method, :meth:`!logging.LoggerAdapter.warning` method and
:func:`logging.warning` function. Patch by Victor Stinner.
..
.. date: 2023-06-06-11-50-33
.. gh-issue: 105332
.. nonce: tmpgRA
.. section: Library
Revert pickling method from by-name back to by-value.
..
.. date: 2023-06-05-14-43-56
.. gh-issue: 104554
.. nonce: pwfKIo
.. section: Library
Add RTSPS scheme support in urllib.parse
..
.. date: 2023-06-04-23-20-56
.. gh-issue: 105292
.. nonce: ns6XQR
.. section: Library
Add option to :func:`traceback.format_exception_only` to recurse into the
nested exception of a :exc:`BaseExceptionGroup`.
..
.. date: 2023-06-04-12-16-47
.. gh-issue: 105280
.. nonce: srRbCe
.. section: Library
Fix bug where ``isinstance([], collections.abc.Mapping)`` could evaluate to
``True`` if garbage collection happened at the wrong time. The bug was
caused by changes to the implementation of :class:`typing.Protocol` in
Python 3.12.
..
.. date: 2023-06-02-23-32-17
.. gh-issue: 80480
.. nonce: savBw9
.. section: Library
:mod:`array`: Add ``'w'`` typecode that represents ``Py_UCS4``.
..
.. date: 2023-06-02-14-57-11
.. gh-issue: 105239
.. nonce: SAmuuj
.. section: Library
Fix longstanding bug where ``issubclass(object, typing.Protocol)`` would
evaluate to ``True`` in some edge cases. Patch by Alex Waygood.
..
.. date: 2023-06-02-14-23-41
.. gh-issue: 104310
.. nonce: UamCOB
.. section: Library
In the beta 1 release we added a utility function for extension module
authors, to use when testing their module for support in multiple
interpreters or under a per-interpreter GIL. The name of that function has
changed from ``allowing_all_extensions`` to
``_incompatible_extension_module_restrictions``. The default for the
"disable_check" argument has change from ``True`` to ``False``, to better
match the new function name.
..
.. date: 2023-06-02-02-38-26
.. gh-issue: 105080
.. nonce: 2imGMg
.. section: Library
Fixed inconsistent signature on derived classes for
:func:`inspect.signature`
..
.. date: 2023-05-31-16-58-42
.. gh-issue: 105144
.. nonce: Oqfn0V
.. section: Library
Fix a recent regression in the :mod:`typing` module. The regression meant
that doing ``class Foo(X, typing.Protocol)``, where ``X`` was a class that
had :class:`abc.ABCMeta` as its metaclass, would then cause subsequent
``isinstance(1, X)`` calls to erroneously raise :exc:`TypeError`. Patch by
Alex Waygood.
..
.. date: 2023-05-30-18-45-02
.. gh-issue: 62948
.. nonce: 1-5wMR
.. section: Library
The :class:`io.IOBase` finalizer now logs the ``close()`` method errors with
:data:`sys.unraisablehook`. Previously, errors were ignored silently by
default, and only logged in :ref:`Python Development Mode <devmode>` or on
:ref:`Python built on debug mode <debug-build>`. Patch by Victor Stinner.
..
.. date: 2023-05-30-17-39-03
.. gh-issue: 105096
.. nonce: pw00FW
.. section: Library
:mod:`wave`: Deprecate the ``getmark()``, ``setmark()`` and ``getmarkers()``
methods of the :class:`wave.Wave_read` and :class:`wave.Wave_write` classes.
They will be removed in Python 3.15. Patch by Victor Stinner.
..
.. date: 2023-05-26-21-33-24
.. gh-issue: 104992
.. nonce: dbq9WK
.. section: Library
Remove the untested and undocumented :meth:`!unittest.TestProgram.usageExit`
method, deprecated in Python 3.11. Patch by Hugo van Kemenade.
..
.. date: 2023-05-26-21-24-06
.. gh-issue: 104996
.. nonce: aaW78g
.. section: Library
Improve performance of :class:`pathlib.PurePath` initialisation by deferring
joining of paths when multiple arguments are given.
..
.. date: 2023-05-26-01-31-30
.. gh-issue: 101588
.. nonce: RaqxFy
.. section: Library
Deprecate undocumented copy/deepcopy/pickle support for itertools.
..
.. date: 2023-05-25-23-34-54
.. gh-issue: 103631
.. nonce: x5Urye
.. section: Library
Fix ``pathlib.PurePosixPath(pathlib.PureWindowsPath(...))`` not converting
path separators to restore 3.11 compatible behavior.
..
.. date: 2023-05-25-22-54-20
.. gh-issue: 104947
.. nonce: hi6TUr
.. section: Library
Make comparisons between :class:`pathlib.PureWindowsPath` objects consistent
across Windows and Posix to match 3.11 behavior.
..
.. date: 2023-05-25-17-25-16
.. gh-issue: 104773
.. nonce: O6TOMc
.. section: Library
:pep:`594`: Remove the :mod:`!audioop` module, deprecated in Python 3.11.
Patch by Victor Stinner.
..
.. date: 2023-05-25-16-50-43
.. gh-issue: 104773
.. nonce: pmg0Fr
.. section: Library
:pep:`594`: Remove the :mod:`!aifc` module, deprecated in Python 3.11. Patch
by Victor Stinner.
..
.. date: 2023-05-25-15-54-02
.. gh-issue: 104773
.. nonce: nW-5MI
.. section: Library
:pep:`594`: Remove the :mod:`!uu` module, deprecated in Python 3.11. Patch
by Victor Stinner.
..
.. date: 2023-05-25-08-50-47
.. gh-issue: 104935
.. nonce: -rm1BR
.. section: Library
Fix bugs with the interaction between :func:`typing.runtime_checkable` and
:class:`typing.Generic` that were introduced by the :pep:`695`
implementation. Patch by Jelle Zijlstra.
..
.. date: 2023-05-25-00-53-08
.. gh-issue: 104773
.. nonce: Iyjtt0
.. section: Library
:pep:`594`: Remove the :mod:`!crypt` module and its private :mod:`!_crypt`
extension, deprecated in Python 3.11. Patch by Victor Stinner.
..
.. date: 2023-05-24-23-40-22
.. gh-issue: 104773
.. nonce: FHA99J
.. section: Library
:pep:`594`: Remove the :mod:`!nis` module, deprecated in Python 3.11. Patch
by Victor Stinner.
..
.. date: 2023-05-24-22-50-21
.. gh-issue: 104898
.. nonce: UbT2S4
.. section: Library
Add missing :attr:`~object.__slots__` to :class:`os.PathLike`.
..
.. date: 2023-05-24-22-47-13
.. gh-issue: 104773
.. nonce: itOIf3
.. section: Library
:pep:`594`: Remove the :mod:`!xdrlib` module, deprecated in Python 3.11.
Patch by Victor Stinner.
..
.. date: 2023-05-24-22-22-03
.. gh-issue: 104773
.. nonce: NwpjhZ
.. section: Library
:pep:`594`: Remove the :mod:`!nntplib` module, deprecated in Python 3.11.
Patch by Victor Stinner.
..
.. date: 2023-05-24-21-30-40
.. gh-issue: 104886
.. nonce: 8TuV-_
.. section: Library
Remove the undocumented :class:`!configparser.LegacyInterpolation` class,
deprecated in the docstring since Python 3.2, and with a deprecation warning
since Python 3.11. Patch by Hugo van Kemenade.
..
.. date: 2023-05-24-20-21-27
.. gh-issue: 104786
.. nonce: SmgT5_
.. section: Library
Remove kwargs-based :class:`typing.TypedDict` creation
..
.. date: 2023-05-24-19-48-16
.. gh-issue: 104876
.. nonce: Z00Qnk
.. section: Library
Remove the :meth:`!turtle.RawTurtle.settiltangle` method, deprecated in docs
since Python 3.1 and with a deprecation warning since Python 3.11. Patch by
Hugo van Kemenade.
..
.. date: 2023-05-24-18-48-10
.. gh-issue: 104773
.. nonce: TrgUeO
.. section: Library
:pep:`594`: Removed the :mod:`!msilib` package, deprecated in Python 3.11.
..
.. date: 2023-05-24-17-47-25
.. gh-issue: 104773
.. nonce: TzUSY2
.. section: Library
:pep:`594`: Remove the :mod:`!spwd` module, deprecated in Python 3.11: the
`python-pam project <https://pypi.org/project/python-pam/>`_ can be used
instead. Patch by Victor Stinner.
..
.. date: 2023-05-24-17-22-56
.. gh-issue: 75552
.. nonce: _QlrpQ
.. section: Library
Removed the ``tkinter.tix`` module, deprecated since Python 3.6.
..
.. date: 2023-05-24-15-57-34
.. gh-issue: 104773
.. nonce: IHWRgg
.. section: Library
:pep:`594`: Remove the :mod:`!chunk` module, deprecated in Python 3.11.
Patch by Victor Stinner.
..
.. date: 2023-05-24-15-17-05
.. gh-issue: 104773
.. nonce: EmFIQ5
.. section: Library
:pep:`594`: Remove the :mod:`!mailcap` module, deprecated in Python 3.11.
Patch by Victor Stinner.
..
.. date: 2023-05-24-14-58-13
.. gh-issue: 104773
.. nonce: sQaXrY
.. section: Library
:pep:`594`: Remove the :mod:`!sunau` module, deprecated in Python 3.11.
Patch by Victor Stinner.
..
.. date: 2023-05-24-14-30-14
.. gh-issue: 104780
.. nonce: nXGIJt
.. section: Library
:pep:`594`: Remove the :mod:`!ossaudiodev` module, deprecated in Python
3.11. Patch Victor Stinner.
..
.. date: 2023-05-24-11-45-22
.. gh-issue: 104773
.. nonce: R0Br4-
.. section: Library
:pep:`594`: Remove the :mod:`!pipes` module, deprecated in Python 3.11.
Patch by Victor Stinner.
..
.. date: 2023-05-24-09-55-33
.. gh-issue: 104873
.. nonce: BKQ54y
.. section: Library
Add :func:`typing.get_protocol_members` to return the set of members
defining a :class:`typing.Protocol`. Add :func:`typing.is_protocol` to
check whether a class is a :class:`typing.Protocol`. Patch by Jelle
Zijlstra.
..
.. date: 2023-05-24-09-34-23
.. gh-issue: 104874
.. nonce: oqyJSy
.. section: Library
Document the ``__name__`` and ``__supertype__`` attributes of
:class:`typing.NewType`. Patch by Jelle Zijlstra.
..
.. date: 2023-05-24-08-45-04
.. gh-issue: 104835
.. nonce: bN_B-B
.. section: Library
Removed the following :mod:`unittest` functions, deprecated in Python 3.11:
* :func:`!unittest.findTestCases`
* :func:`!unittest.makeSuite`
* :func:`!unittest.getTestCaseNames`
Use :class:`~unittest.TestLoader` methods instead:
* :meth:`unittest.TestLoader.loadTestsFromModule`
* :meth:`unittest.TestLoader.loadTestsFromTestCase`
* :meth:`unittest.TestLoader.getTestCaseNames`
Patch by Hugo van Kemenade.
..
.. date: 2023-05-23-21-25-54
.. gh-issue: 104804
.. nonce: 78fiE6
.. section: Library
Remove the untested and undocumented :mod:`webbrowser` :class:`!MacOSX`
class, deprecated in Python 3.11. Patch by Hugo van Kemenade.
..
.. date: 2023-05-23-19-53-18
.. gh-issue: 83863
.. nonce: eRI5JG
.. section: Library
Support for using :class:`pathlib.Path` objects as context managers has been
removed. Before Python 3.9, exiting the context manager marked a path as
"closed", which caused some (but not all!) methods to raise when called.
Since Python 3.9, using a path as a context manager does nothing.
..
.. date: 2023-05-23-18-31-49
.. gh-issue: 104799
.. nonce: MJYOw6
.. section: Library
Adjust the location of the (see :pep:`695`) ``type_params`` field on
:class:`ast.ClassDef`, :class:`ast.AsyncFunctionDef`, and
:class:`ast.FunctionDef` to better preserve backward compatibility. Patch by
Jelle Zijlstra
..
.. date: 2023-05-23-17-43-52
.. gh-issue: 104797
.. nonce: NR7KzF
.. section: Library
Allow :class:`typing.Protocol` classes to inherit from
:class:`collections.abc.Buffer`. Patch by Jelle Zijlstra.
..
.. date: 2023-05-23-04-01-27
.. gh-issue: 104783
.. nonce: QyhIoq
.. section: Library
Remove ``locale.resetlocale()`` function deprecated in Python 3.11. Patch by
Victor Stinner.
..
.. date: 2023-05-23-03-36-47
.. gh-issue: 104780
.. nonce: P4e3Yf
.. section: Library
Remove the ``2to3`` program and the :mod:`!lib2to3` module, deprecated in
Python 3.11. Patch by Victor Stinner.
..
.. date: 2023-05-23-02-20-13
.. gh-issue: 104773
.. nonce: 7K59zr
.. section: Library
:pep:`594`: Remove the :mod:`!telnetlib` module, deprecated in Python 3.11.
Patch by Victor Stinner.
..
.. date: 2023-05-23-02-13-11
.. gh-issue: 104773
.. nonce: JNiEjv
.. section: Library
:pep:`594`: Remove the :mod:`!imghdr` module, deprecated in Python 3.11.
Patch by Victor Stinner.
..
.. date: 2023-05-23-01-47-57
.. gh-issue: 104773
.. nonce: I6MQhb
.. section: Library
:pep:`594`: Remove the :mod:`!cgi`` and :mod:`!cgitb` modules, deprecated in
Python 3.11. Patch by Victor Stinner.
..
.. date: 2023-05-23-01-37-40
.. gh-issue: 104773
.. nonce: 8c-GsG
.. section: Library
:pep:`594`: Remove the :mod:`!sndhdr` module, deprecated in Python 3.11.
Patch by Victor Stinner.
..
.. date: 2023-05-22-18-39-53
.. gh-issue: 104372
.. nonce: 7tDRaK
.. section: Library
On Linux where :mod:`subprocess` can use the ``vfork()`` syscall for faster
spawning, prevent the parent process from blocking other threads by dropping
the GIL while it waits for the vfork'ed child process ``exec()`` outcome.
This prevents spawning a binary from a slow filesystem from blocking the
rest of the application.
..
.. date: 2023-05-19-19-46-22
.. gh-issue: 99108
.. nonce: wqCg0t
.. section: Library
We now release the GIL around built-in :mod:`hashlib` computations of
reasonable size for the SHA families and MD5 hash functions, matching what
our OpenSSL backed hash computations already does.
..
.. date: 2023-05-15-18-57-42
.. gh-issue: 102613
.. nonce: YD9yx-
.. section: Library
Improve performance of :meth:`pathlib.Path.glob` when expanding a pattern
with a non-terminal "``**``" component by filtering walked paths through a
regular expression, rather than calling :func:`os.scandir` more than once on
each directory.
..
.. date: 2023-05-11-23-03-00
.. gh-issue: 104399
.. nonce: MMatTP
.. section: Library
Prepare the ``_tkinter`` module for building with Tcl 9.0 and future
libtommath by replacing usage of deprecated functions
:c:func:`mp_to_unsigned_bin_n` and :c:func:`mp_unsigned_bin_size` when
necessary.
..
.. date: 2023-04-28-09-31-21
.. gh-issue: 102676
.. nonce: J8qDRa
.. section: Library
Add fields ``start_offset``, ``cache_offset``, ``end_offset``,
``baseopname``, ``baseopcode``, ``jump_target`` and ``oparg`` to
:class:`dis.Instruction`.
..
.. date: 2023-04-15-23-26-16
.. gh-issue: 103558
.. nonce: w9OzK4
.. section: Library
Fixed ``parent`` argument validation mechanism of :mod:`argparse`. Improved
test coverage.
..
.. date: 2023-04-12-03-03-27
.. gh-issue: 103464
.. nonce: Oa_8IW
.. section: Library
Provide helpful usage messages when parsing incorrect :mod:`pdb` commands.
..
.. date: 2023-04-09-05-30-41
.. gh-issue: 103384
.. nonce: zAV7iB
.. section: Library
Generalize the regex pattern ``BaseConfigurator.INDEX_PATTERN`` to allow
spaces and non-alphanumeric characters in keys.
..
.. date: 2023-04-09-03-53-02
.. gh-issue: 103124
.. nonce: JspiNN
.. section: Library
Added multiline statement support for :mod:`pdb`
..
.. date: 2023-04-08-12-43-52
.. gh-issue: 101162
.. nonce: yOCd_J
.. section: Library
Forbid using :func:`builtins.issubclass` with :class:`types.GenericAlias` as
the first argument.
..
.. date: 2023-04-03-08-09-40
.. gh-issue: 103200
.. nonce: lq1Etz
.. section: Library
Fix cache repopulation semantics of zipimport.invalidate_caches(). The cache
is now repopulated upon retrieving files with an invalid cache, not when the
cache is invalidated.
..
.. date: 2023-03-14-01-19-57
.. gh-issue: 100061
.. nonce: CiXJYn
.. section: Library
Fix a bug that causes wrong matches for regular expressions with possessive
qualifier.
..
.. date: 2023-03-12-03-37-03
.. gh-issue: 77609
.. nonce: aOQttm
.. section: Library
Add *follow_symlinks* argument to :meth:`pathlib.Path.glob` and
:meth:`~pathlib.Path.rglob`, defaulting to false.
..
.. date: 2023-03-12-01-17-15
.. gh-issue: 102541
.. nonce: LK1adc
.. section: Library
Hide traceback in :func:`help` prompt, when import failed.
..
.. date: 2023-03-08-19-30-53
.. gh-issue: 102120
.. nonce: xkQ5Wr
.. section: Library
Added a stream mode to ``tarfile`` that allows for reading archives without
caching info about the inner files.
..
.. date: 2023-02-20-15-41-59
.. gh-issue: 102029
.. nonce: 9ZPG99
.. section: Library
Deprecate passing any arguments to :func:`threading.RLock`.
..
.. date: 2023-02-20-12-00-11
.. gh-issue: 88233
.. nonce: o5Zb0t
.. section: Library
Refactored ``zipfile._strip_extra`` to use higher level abstactions for
extras instead of a heavy-state loop.
..
.. date: 2023-02-18-22-55-48
.. gh-issue: 102024
.. nonce: RUmg_D
.. section: Library
Reduce calls of ``_idle_semaphore.release()`` in
:func:`concurrent.futures.thread._worker`.
..
.. date: 2023-02-17-18-56-46
.. gh-issue: 73435
.. nonce: 7sTJHk
.. section: Library
Add support for recursive wildcards in :meth:`pathlib.PurePath.match`.
..
.. date: 2022-12-24-12-50-54
.. gh-issue: 84867
.. nonce: OhaLbU
.. section: Library
:class:`unittest.TestLoader` no longer loads test cases from exact
:class:`unittest.TestCase` and :class:`unittest.FunctionTestCase` classes.
..
.. date: 2022-11-26-22-05-22
.. gh-issue: 99203
.. nonce: j0DUae
.. section: Library
Restore following CPython <= 3.10.5 behavior of :func:`shutil.make_archive`:
do not create an empty archive if ``root_dir`` is not a directory, and, in
that case, raise :class:`FileNotFoundError` or :class:`NotADirectoryError`
regardless of ``format`` choice. Beyond the brought-back behavior, the
function may now also raise these exceptions in ``dry_run`` mode.
..
.. date: 2022-08-07-11-10-26
.. gh-issue: 80480
.. nonce: IFccj3
.. section: Library
Emit :exc:`DeprecationWarning` for :mod:`array`'s ``'u'`` type code,
deprecated in docs since Python 3.3.
..
.. date: 2022-07-18-14-20-56
.. gh-issue: 94924
.. nonce: X0buz2
.. section: Library
:func:`unittest.mock.create_autospec` now properly returns coroutine
functions compatible with :func:`inspect.iscoroutinefunction`
..
.. date: 2022-07-12-18-45-13
.. gh-issue: 94777
.. nonce: mOybx7
.. section: Library
Fix hanging :mod:`multiprocessing` ``ProcessPoolExecutor`` when a child
process crashes while data is being written in the call queue.
..
.. date: 2022-05-17-10-46-44
.. gh-issue: 92871
.. nonce: GVogrT
.. section: Library
Remove the ``typing.io`` and ``typing.re`` namespaces, deprecated since
Python 3.8. All items are still available from the main :mod:`typing`
module.
..
.. bpo: 43633
.. date: 2021-10-31-16-06-28
.. nonce: vflwXv
.. section: Library
Improve the textual representation of IPv4-mapped IPv6 addresses
(:rfc:`4291` Sections 2.2, 2.5.5.2) in :mod:`ipaddress`. Patch by Oleksandr
Pavliuk.
..
.. bpo: 44850
.. date: 2021-08-16-17-52-26
.. nonce: r8jx5u
.. section: Library
Improve performance of :func:`operator.methodcaller` using the :pep:`590`
``vectorcall`` convention. Patch by Anthony Lee and Pieter Eendebak.
..
.. bpo: 44185
.. date: 2021-06-24-20-45-03
.. nonce: ZHb8yJ
.. section: Library
:func:`unittest.mock.mock_open` will call the :func:`close` method of the
file handle mock when it is exiting from the context manager. Patch by Samet
Yaslan.
..
.. bpo: 40988
.. date: 2020-11-10-07-04-15
.. nonce: 5kBC-O
.. section: Library
Improve performance of :class:`functools.singledispatchmethod` by caching
the generated dispatch wrapper. Optimization suggested by frederico. Patch
by @mental32, Alex Waygood and Pieter Eendebak.
..
.. bpo: 41768
.. date: 2020-09-16-16-53-06
.. nonce: 8_fWkC
.. section: Library
:mod:`unittest.mock` speccing no longer calls class properties. Patch by
Melanie Witt.
..
.. 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)``.
..
.. bpo: 17013
.. date: 2019-09-13-13-28-10
.. nonce: NWcgE3
.. section: Library
Add ``ThreadingMock`` to :mod:`unittest.mock` that can be used to create
Mock objects that can wait until they are called. Patch by Karthikeyan
Singaravelan and Mario Corchero.
..
.. date: 2023-09-10-02-39-06
.. gh-issue: 109209
.. nonce: 0LBewo
.. section: Documentation
The minimum Sphinx version required for the documentation is now 4.2.
..
.. date: 2023-09-03-13-43-49
.. gh-issue: 108826
.. nonce: KG7abS
.. section: Documentation
:mod:`dis` module command-line interface is now mentioned in documentation.
..
.. 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-06-30-19-28-59
.. gh-issue: 106232
.. nonce: hQ4-tz
.. section: Documentation
Make timeit doc command lines compatible with Windows by using double quotes
for arguments. This works on linux and macOS also.
..
.. date: 2023-05-31-23-05-51
.. gh-issue: 105172
.. nonce: SVfvkD
.. section: Documentation
Fixed :func:`functools.lru_cache` docstring accounting for ``typed``
argument's different handling of str and int. Patch by Bar Harel.
..
.. date: 2023-05-29-14-10-24
.. gh-issue: 105052
.. nonce: MGFwbm
.. section: Documentation
Update ``timeit`` doc to specify that time in seconds is just the default.
..
.. date: 2023-05-28-21-01-00
.. gh-issue: 89455
.. nonce: qAKRrA
.. section: Documentation
Add missing documentation for the ``max_group_depth`` and
``max_group_width`` parameters and the ``exceptions`` attribute of the
:class:`traceback.TracebackException` class.
..
.. date: 2023-05-28-19-08-42
.. gh-issue: 89412
.. nonce: j4cg7K
.. section: Documentation
Add missing documentation for the ``end_lineno`` and ``end_offset``
attributes of the :class:`traceback.TracebackException` class.
..
.. date: 2023-05-25-22-34-31
.. gh-issue: 104943
.. nonce: J2v1Pc
.. section: Documentation
Remove mentions of old Python versions in :class:`typing.NamedTuple`.
..
.. 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-03-19-09-39-31
.. gh-issue: 102823
.. nonce: OzsOz0
.. section: Documentation
Document the return type of ``x // y`` when ``x`` and ``y`` have type
:class:`float`.
..
.. date: 2023-03-16-15-39-26
.. gh-issue: 102759
.. nonce: ehpHw6
.. section: Documentation
Align function signature for ``functools.reduce`` in documentation and
docstring with the C implementation.
..
.. date: 2023-10-10-23-20-13
.. gh-issue: 110647
.. nonce: jKG3sY
.. section: Tests
Fix test_stress_modifying_handlers() of test_signal. Patch by Victor
Stinner.
..
.. date: 2023-10-06-02-32-18
.. gh-issue: 103053
.. nonce: VfxBLI
.. section: Tests
Fix test_tools.test_freeze on FreeBSD: run "make distclean" instead of "make
clean" in the copied source directory to remove also the "python" program.
Patch by Victor Stinner.
..
.. date: 2023-10-05-19-33-49
.. gh-issue: 110167
.. nonce: mIdj3v
.. section: Tests
Fix a deadlock in test_socket when server fails with a timeout but the
client is still running in its thread. Don't hold a lock to call cleanup
functions in doCleanups(). One of the cleanup function waits until the
client completes, whereas the client could deadlock if it called
addCleanup() in such situation. Patch by Victor Stinner.
..
.. date: 2023-10-05-14-22-48
.. gh-issue: 110388
.. nonce: 1-HQJO
.. section: Tests
Add tests for :mod:`tty`.
..
.. date: 2023-10-05-13-46-50
.. gh-issue: 81002
.. nonce: bOcuV6
.. section: Tests
Add tests for :mod:`termios`.
..
.. date: 2023-10-04-18-27-47
.. gh-issue: 110367
.. nonce: Nnq1I7
.. section: Tests
regrtest: When using worker processes (-jN) with --verbose3 option, regrtest
can now display the worker output even if a worker process does crash.
Previously, sys.stdout and sys.stderr were replaced and so the worker output
was lost on a crash. Patch by Victor Stinner.
..
.. date: 2023-10-03-10-54-09
.. gh-issue: 110267
.. nonce: O-c47G
.. section: Tests
Add tests for pickling and copying PyStructSequence objects. Patched by
Xuehai Pan.
..
.. date: 2023-10-01-10-27-02
.. gh-issue: 110171
.. nonce: ZPlo0h
.. section: Tests
``libregrtest`` now always sets and shows ``random.seed``, so tests are more
reproducible. Use ``--randseed`` flag to pass the explicit random seed for
tests.
..
.. date: 2023-09-30-20-18-38
.. gh-issue: 110152
.. nonce: 4Kxve1
.. section: Tests
Remove ``Tools/scripts/run_tests.py`` and ``make hostrunnertest``. Just run
``./python -m test --slow-ci``, ``make buildbottest`` or ``make test``
instead. Python test runner (regrtest) now handles cross-compilation and
HOSTRUNNER. It also adds options to Python such fast ``-u -E -W default
-bb`` when ``--fast-ci`` or ``--slow-ci`` option is used. Patch by Victor
Stinner.
..
.. date: 2023-09-29-14-11-30
.. gh-issue: 110031
.. nonce: fQnFnc
.. section: Tests
Skip test_threading tests using thread+fork if Python is built with Address
Sanitizer (ASAN). Patch by Victor Stinner.
..
.. date: 2023-09-29-12-48-42
.. gh-issue: 110088
.. nonce: qUhRga
.. section: Tests
Fix test_asyncio timeouts: don't measure the maximum duration, a test should
not measure a CI performance. Only measure the minimum duration when a task
has a timeout or delay. Add ``CLOCK_RES`` to ``test_asyncio.utils``. Patch
by Victor Stinner.
..
.. date: 2023-09-29-00-19-21
.. gh-issue: 109974
.. nonce: Sh_g-r
.. section: Tests
Fix race conditions in test_threading lock tests. Wait until a condition is
met rather than using :func:`time.sleep` with a hardcoded number of seconds.
Patch by Victor Stinner.
..
.. date: 2023-09-28-18-14-52
.. gh-issue: 110033
.. nonce: 2yHMx0
.. section: Tests
Fix ``test_interprocess_signal()`` of ``test_signal``. Make sure that the
``subprocess.Popen`` object is deleted before the test raising an exception
in a signal handler. Otherwise, ``Popen.__del__()`` can get the exception
which is logged as ``Exception ignored in: ...`` and the test fails. Patch
by Victor Stinner.
..
.. date: 2023-09-28-14-47-14
.. gh-issue: 109594
.. nonce: DB5KPP
.. section: Tests
Fix test_timeout() of test_concurrent_futures.test_wait. Remove the future
which may or may not complete depending if it takes longer than the timeout
ot not. Keep the second future which does not complete before wait()
timeout. Patch by Victor Stinner.
..
.. date: 2023-09-28-12-25-19
.. gh-issue: 109972
.. nonce: GYnwIP
.. section: Tests
Split test_gdb.py file into a test_gdb package made of multiple tests, so
tests can now be run in parallel. Patch by Victor Stinner.
..
.. date: 2023-09-26-18-12-01
.. gh-issue: 109566
.. nonce: CP0Vhf
.. section: Tests
regrtest: When ``--fast-ci`` or ``--slow-ci`` option is used, regrtest now
replaces the current process with a new process to add ``-u -W default -bb
-E`` options to Python. Patch by Victor Stinner.
..
.. date: 2023-09-26-00-49-18
.. gh-issue: 109748
.. nonce: nxlT1i
.. section: Tests
Fix ``test_zippath_from_non_installed_posix()`` of test_venv: don't copy
``__pycache__/`` sub-directories, because they can be modified by other
Python tests running in parallel. Patch by Victor Stinner.
..
.. date: 2023-09-25-23-59-37
.. gh-issue: 109739
.. nonce: MUn7K5
.. section: Tests
regrtest: Fix reference leak check on Windows. Disable the load tracker on
Windows in the reference leak check mode (-R option). Patch by Victor
Stinner.
..
.. date: 2023-09-25-14-41-18
.. gh-issue: 109276
.. nonce: uC_cWo
.. section: Tests
regrtest: When a test fails with "env changed" and the --rerun option is
used, the test is now re-run in verbose mode in a fresh process. Patch by
Victor Stinner.
..
.. date: 2023-09-20-02-32-17
.. gh-issue: 103053
.. nonce: AoUJuK
.. section: Tests
Skip test_freeze_simple_script() of test_tools.test_freeze if Python is
built with ``./configure --enable-optimizations``, which means with Profile
Guided Optimization (PGO): it just makes the test too slow. The freeze tool
is tested by many other CIs with other (faster) compiler flags. Patch by
Victor Stinner.
..
.. date: 2023-09-19-19-08-22
.. gh-issue: 109580
.. nonce: G02Zam
.. section: Tests
Skip ``test_perf_profiler`` if Python is built with ASAN, MSAN or UBSAN
sanitizer. Python does crash randomly in this test on such build. Patch by
Victor Stinner.
..
.. date: 2023-09-19-13-33-20
.. gh-issue: 109566
.. nonce: aX0g9o
.. section: Tests
regrtest: Add ``--fast-ci`` and ``--slow-ci`` options. ``--fast-ci`` uses a
default timeout of 10 minutes and ``-u all,-cpu`` (skip slowest tests).
``--slow-ci`` uses a default timeout of 20 minues and ``-u all`` (run all
tests). Patch by Victor Stinner.
..
.. date: 2023-09-14-23-27-40
.. gh-issue: 109425
.. nonce: j-uFep
.. section: Tests
libregrtest now decodes stdout of test worker processes with the
"backslashreplace" error handler to log corrupted stdout, instead of failing
with an error and not logging the stdout. Patch by Victor Stinner.
..
.. date: 2023-09-14-22-58-47
.. gh-issue: 109396
.. nonce: J1a4jR
.. section: Tests
Fix ``test_socket.test_hmac_sha1()`` in FIPS mode. Use a longer key: FIPS
mode requires at least of at least 112 bits. The previous key was only 32
bits. Patch by Victor Stinner.
..
.. date: 2023-09-13-05-58-09
.. gh-issue: 104736
.. nonce: lA25Fu
.. section: Tests
Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex: Fedora
38). Search patterns in gdb "bt" command output to detect when gdb fails to
retrieve the traceback. For example, skip a test if ``Backtrace stopped:
frame did not save the PC`` is found. Patch by Victor Stinner.
..
.. date: 2023-09-11-19-11-57
.. gh-issue: 109276
.. nonce: qxI4OG
.. section: Tests
libregrtest now calls :func:`random.seed()` before running each test file
when ``-r/--randomize`` command line option is used. Moreover, it's also
called in worker processes. It should help to make tests more
deterministic. Previously, it was only called once in the main process
before running all test files and it was not called in worker processes.
Patch by Victor Stinner.
..
.. date: 2023-09-11-18-19-52
.. gh-issue: 109276
.. nonce: btfFtT
.. section: Tests
libregrtest now uses a separated file descriptor to write test result as
JSON. Previously, if a test wrote debug messages late around the JSON, the
main test process failed to parse JSON. Patch by Victor Stinner.
..
.. date: 2023-09-10-23-05-50
.. gh-issue: 108996
.. nonce: tJBru6
.. section: Tests
Fix and enable ``test_msvcrt``.
..
.. date: 2023-09-10-22-32-20
.. gh-issue: 109237
.. nonce: SvgKwD
.. section: Tests
Fix ``test_site.test_underpth_basic()`` when the working directory contains
at least one non-ASCII character: encode the ``._pth`` file to UTF-8 and
enable the UTF-8 Mode to use UTF-8 for the child process stdout. Patch by
Victor Stinner.
..
.. date: 2023-09-10-19-59-57
.. gh-issue: 109230
.. nonce: SRNLFQ
.. section: Tests
Fix ``test_pyexpat.test_exception()``: it can now be run from a directory
different than Python source code directory. Before, the test failed in this
case. Skip the test if Modules/pyexpat.c source is not available. Skip also
the test on Python implementations other than CPython. Patch by Victor
Stinner.
..
.. date: 2023-09-06-22-06-22
.. gh-issue: 108996
.. nonce: IBhR3U
.. section: Tests
Add tests for ``msvcrt``.
..
.. date: 2023-09-06-18-27-53
.. gh-issue: 109015
.. nonce: 1dS1AQ
.. section: Tests
Fix test_asyncio, test_imaplib and test_socket tests on FreeBSD if the TCP
blackhole is enabled (``sysctl net.inet.tcp.blackhole``). Skip the few tests
which failed with ``ETIMEDOUT`` which such non standard configuration.
Currently, the `FreeBSD GCP image enables TCP and UDP blackhole
<https://reviews.freebsd.org/D41751>`_ (``sysctl net.inet.tcp.blackhole=2``
and ``sysctl net.inet.udp.blackhole=1``). Patch by Victor Stinner.
..
.. date: 2023-09-06-15-36-51
.. gh-issue: 91960
.. nonce: P3nD5v
.. section: Tests
Skip ``test_gdb`` if gdb is unable to retrieve Python frame objects: if a
frame is ``<optimized out>``. When Python is built with "clang -Og", gdb can
fail to retrive the *frame* parameter of ``_PyEval_EvalFrameDefault()``. In
this case, tests like ``py_bt()`` are likely to fail. Without getting access
to Python frames, ``python-gdb.py`` is mostly clueless on retrieving the
Python traceback. Moreover, ``test_gdb`` is no longer skipped on macOS if
Python is built with Clang. Patch by Victor Stinner.
..
.. date: 2023-09-05-23-00-09
.. gh-issue: 108962
.. nonce: R4NwuU
.. section: Tests
Skip ``test_tempfile.test_flags()`` if ``chflags()`` fails with "OSError:
[Errno 45] Operation not supported" (ex: on FreeBSD 13). Patch by Victor
Stinner.
..
.. date: 2023-09-05-21-42-54
.. gh-issue: 91960
.. nonce: abClTs
.. section: Tests
FreeBSD 13.2 CI coverage for pull requests is now provided by Cirrus-CI (a
hosted CI service that supports Linux, macOS, Windows, and FreeBSD).
..
.. date: 2023-09-04-15-18-14
.. gh-issue: 89392
.. nonce: 8A4T5p
.. section: Tests
Removed support of ``test_main()`` function in tests. They now always use
normal unittest test runner.
..
.. date: 2023-09-03-21-41-10
.. gh-issue: 108851
.. nonce: xFTYOE
.. section: Tests
Fix ``test_tomllib`` recursion tests for WASI buildbots: reduce the
recursion limit and compute the maximum nested array/dict depending on the
current available recursion limit. Patch by Victor Stinner.
..
.. date: 2023-09-03-21-18-35
.. gh-issue: 108851
.. nonce: CCuHyI
.. section: Tests
Add ``get_recursion_available()`` and ``get_recursion_depth()`` functions to
the :mod:`test.support` module. Patch by Victor Stinner.
..
.. date: 2023-09-03-20-15-49
.. gh-issue: 108834
.. nonce: Osvmhf
.. section: Tests
Add ``--fail-rerun option`` option to regrtest: if a test failed when then
passed when rerun in verbose mode, exit the process with exit code 2
(error), instead of exit code 0 (success). Patch by Victor Stinner.
..
.. date: 2023-09-03-06-17-12
.. gh-issue: 108834
.. nonce: fjV-CJ
.. section: Tests
Rename regrtest ``--verbose2`` option (``-w``) to ``--rerun``. Keep
``--verbose2`` as a deprecated alias. Patch by Victor Stinner.
..
.. date: 2023-09-03-02-01-55
.. gh-issue: 108834
.. nonce: iAwXzj
.. section: Tests
When regrtest reruns failed tests in verbose mode (``./python -m test
--rerun``), tests are now rerun in fresh worker processes rather than being
executed in the main process. If a test does crash or is killed by a
timeout, the main process can detect and handle the killed worker process.
Tests are rerun in parallel if the ``-jN`` option is used to run tests in
parallel. Patch by Victor Stinner.
..
.. date: 2023-09-02-19-06-52
.. gh-issue: 108822
.. nonce: arTbBI
.. section: Tests
``regrtest`` now computes statistics on all tests: successes, failures and
skipped. ``test_netrc``, ``test_pep646_syntax`` and ``test_xml_etree`` now
return results in their ``test_main()`` function. Patch by Victor Stinner
and Alex Waygood.
..
.. date: 2023-09-02-05-13-38
.. gh-issue: 108794
.. nonce: tGHXBt
.. section: Tests
The :meth:`doctest.DocTestRunner.run` method now counts the number of
skipped tests. Add :attr:`doctest.DocTestRunner.skips` and
:attr:`doctest.TestResults.skipped` attributes. Patch by Victor Stinner.
..
.. date: 2023-08-24-06-10-36
.. gh-issue: 108388
.. nonce: YCVB0D
.. section: Tests
Convert test_concurrent_futures to a package of 7 sub-tests. Patch by Victor
Stinner.
..
.. date: 2023-08-24-04-23-35
.. gh-issue: 108388
.. nonce: mr0MeE
.. section: Tests
Split test_multiprocessing_fork, test_multiprocessing_forkserver and
test_multiprocessing_spawn into test packages. Each package is made of 4
sub-tests: processes, threads, manager and misc. It allows running more
tests in parallel and so reduce the total test duration. Patch by Victor
Stinner.
..
.. date: 2023-08-23-04-08-18
.. gh-issue: 105776
.. nonce: oE6wp_
.. section: Tests
Fix test_cppext when the C compiler command ``-std=c11`` option: remove
``-std=`` options from the compiler command. Patch by Victor Stinner.
..
.. date: 2023-08-05-14-01-07
.. gh-issue: 107652
.. nonce: 5OxOlT
.. section: Tests
Set up CIFuzz to run fuzz targets in GitHub Actions. Patch by Illia
Volochii.
..
.. 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-24-16-56-59
.. gh-issue: 107178
.. nonce: Gq1usE
.. section: Tests
Add the C API test for functions in the Mapping Protocol, the Sequence
Protocol and some functions in the Object Protocol.
..
.. 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-12-14-07-07
.. gh-issue: 106690
.. nonce: NDz-oG
.. section: Tests
Add .coveragerc to cpython repository for use with coverage package.
..
.. date: 2023-06-28-02-51-08
.. gh-issue: 101634
.. nonce: Rayczr
.. section: Tests
When running the Python test suite with ``-jN`` option, if a worker stdout
cannot be decoded from the locale encoding report a failed testn so the
exitcode is non-zero. Patch by Victor Stinner.
..
.. date: 2023-05-29-14-49-46
.. gh-issue: 105084
.. nonce: lvVvoj
.. section: Tests
When the Python build is configured ``--with-wheel-pkg-dir``, tests
requiring the ``setuptools`` and ``wheel`` wheels will search for the wheels
in ``WHEEL_PKG_DIR``.
..
.. date: 2023-05-19-08-06-06
.. gh-issue: 81005
.. nonce: -q7m9W
.. section: Tests
String tests are modified to reflect that ``str`` and ``unicode`` are merged
in Python 3. Patch by Daniel Fortunov.
..
.. date: 2023-04-05-06-45-20
.. gh-issue: 103186
.. nonce: 640Eg-
.. section: Tests
Suppress and assert expected RuntimeWarnings in test_sys_settrace.py
..
.. date: 2022-06-09-21-27-38
.. gh-issue: 69714
.. nonce: 49tyHW
.. section: Tests
Add additional tests to :mod:`calendar` to achieve full test coverage.
..
.. date: 2023-10-06-02-15-23
.. gh-issue: 103053
.. nonce: --7JUF
.. section: Build
"make check-clean-src" now also checks if the "python" program is found in
the source directory: fail with an error if it does exist. Patch by Victor
Stinner.
..
.. date: 2023-10-05-11-46-20
.. gh-issue: 109191
.. nonce: imUkVN
.. section: Build
Fix compile error when building with recent versions of libedit.
..
.. date: 2023-10-03-17-55-09
.. gh-issue: 110276
.. nonce: luaKRg
.. section: Build
No longer ignore :envvar:`PROFILE_TASK` failure silently: command used by
Profile Guided Optimization (PGO). Patch by Victor Stinner.
..
.. date: 2023-09-29-21-01-48
.. gh-issue: 109566
.. nonce: _enldb
.. section: Build
Remove ``make testall`` target: use ``make buildbottest`` instead. Patch by
Victor Stinner.
..
.. date: 2023-09-26-16-00-50
.. gh-issue: 109740
.. nonce: wboWdQ
.. section: Build
The experimental ``--disable-gil`` configure flag now includes "t" (for
"threaded") in extension ABI tags.
..
.. date: 2023-09-07-19-58-05
.. gh-issue: 109054
.. nonce: 5r3S3l
.. section: Build
Fix building the ``_testcapi`` extension on Linux AArch64 which requires
linking to libatomic when ``<cpython/pyatomic.h>`` is used: the
``_Py_atomic_or_uint64()`` function requires libatomic
``__atomic_fetch_or_8()`` on this platform. The configure script now checks
if linking to libatomic is needed and generates a new LIBATOMIC variable
used to build the _testcapi extension. Patch by Victor Stinner.
..
.. date: 2023-09-02-18-04-15
.. gh-issue: 63760
.. nonce: r8hJ6q
.. section: Build
Fix Solaris build: no longer redefine the ``gethostname()`` function.
Solaris defines the function since 2005. Patch by Victor Stinner, original
patch by Jakub KulĂk.
..
.. date: 2023-09-01-01-39-26
.. gh-issue: 108740
.. nonce: JHExAQ
.. section: Build
Fix a race condition in ``make regen-all``. The ``deepfreeze.c`` source and
files generated by Argument Clinic are now generated or updated before
generating "global objects". Previously, some identifiers may miss depending
on the order in which these files were generated. Patch by Victor Stinner.
..
.. date: 2023-08-30-02-52-52
.. gh-issue: 108634
.. nonce: 3dpBvf
.. section: Build
Python built with :file:`configure` :option:`--with-trace-refs` (tracing
references) is now ABI compatible with Python release build and :ref:`debug
build <debug-build>`. Patch by Victor Stinner.
..
.. date: 2023-08-29-15-05-09
.. gh-issue: 85283
.. nonce: tlK7G7
.. section: Build
The ``_stat`` C extension is now built with the :ref:`limited C API
<limited-c-api>`. Patch by Victor Stinner.
..
.. date: 2023-08-24-18-36-31
.. gh-issue: 108447
.. nonce: Ofsygr
.. section: Build
Fix x86_64 GNU/Hurd build
..
.. date: 2023-08-09-17-05-33
.. gh-issue: 107814
.. nonce: c0Oapq
.. section: Build
When calling ``find_python.bat`` with ``-q`` it did not properly silence the
output of nuget. That is now fixed.
..
.. date: 2023-08-01-17-12-53
.. gh-issue: 105481
.. nonce: 42nsDE
.. section: Build
Remove the make target ``regen-opcode-targets``, merge its work into
``regen-opcode`` which repeats most of the calculation. This simplifies the
code for the build and reduces code duplication.
..
.. 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-25-02-30-00
.. gh-issue: 95855
.. nonce: wA7rAf
.. section: Build
Refactor platform triplet detection code and add detection for MIPS soft
float and musl libc.
..
.. date: 2023-07-23-00-38-51
.. gh-issue: 106962
.. nonce: VVYrWB
.. section: Build
Detect MPI compilers in :file:`configure`.
..
.. date: 2023-06-26-21-56-29
.. gh-issue: 106118
.. nonce: 0cCfhl
.. section: Build
Fix compilation for platforms without :data:`!O_CLOEXEC`. The issue was
introduced with Python 3.12b1 in :gh:`103295`. Patch by Erlend Aasland.
..
.. date: 2023-06-16-23-40-49
.. gh-issue: 105875
.. nonce: naj8v5
.. section: Build
SQLite 3.15.2 or newer is required to build the :mod:`sqlite3` extension
module. Patch by Erlend Aasland.
..
.. date: 2023-06-06-09-08-10
.. gh-issue: 90005
.. nonce: 8mmeJQ
.. section: Build
Fix a regression in :file:`configure` where we could end up unintentionally
linking with ``libbsd``.
..
.. date: 2023-06-02-19-12-45
.. gh-issue: 102404
.. nonce: Ry9piA
.. section: Build
Document how to perform a WASI build on Linux. Also add
Tools/wasm/build_wasi.sh as a reference implementation of the docs.
..
.. date: 2023-05-26-15-44-20
.. gh-issue: 89886
.. nonce: _iSW-p
.. section: Build
Autoconf 2.71 and aclocal 1.16.4 is now required to regenerate
:file:`!configure`.
..
.. date: 2023-05-20-23-49-30
.. gh-issue: 104692
.. nonce: s5UIu5
.. section: Build
Include ``commoninstall`` as a prerequisite for ``bininstall``
This ensures that ``commoninstall`` is completed before ``bininstall`` is
started when parallel builds are used (``make -j install``), and so the
``python3`` symlink is only installed after all standard library modules are
installed.
..
.. 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-10-06-14-20-14
.. gh-issue: 110437
.. nonce: xpYy9q
.. section: Windows
Allows overriding the source of VC redistributables so that releases can be
guaranteed to never downgrade between updates.
..
.. date: 2023-10-05-15-23-23
.. gh-issue: 109286
.. nonce: N8OzMg
.. section: Windows
Update Windows installer to use SQLite 3.43.1.
..
.. date: 2023-10-03-12-30-59
.. gh-issue: 82367
.. nonce: nxwfMx
.. section: Windows
:func:`os.path.realpath` now resolves MS-DOS style file names even if the
file is not accessible. Patch by Moonsik Park.
..
.. date: 2023-09-28-17-09-23
.. gh-issue: 109991
.. nonce: CIMftz
.. section: Windows
Update Windows build to use OpenSSL 3.0.11.
..
.. date: 2023-08-22-00-36-57
.. gh-issue: 106242
.. nonce: q24ITw
.. section: Windows
Fixes :func:`~os.path.realpath` to behave consistently when passed a path
containing an embedded null character on Windows. In strict mode, it now
raises :exc:`OSError` instead of the unexpected :exc:`ValueError`, and in
non-strict mode will make the path absolute.
..
.. date: 2023-08-18-00-01-21
.. gh-issue: 83180
.. nonce: DdLffv
.. section: Windows
Changes the :ref:`launcher` to prefer an active virtual environment when the
launched script has a shebang line using a Unix-like virtual command, even
if the command requests a specific version of Python.
..
.. date: 2023-07-18-13-01-26
.. gh-issue: 106844
.. nonce: mci4xO
.. section: Windows
Fix integer overflow and truncating by the null character in
:func:`!_winapi.LCMapStringEx` which affects :func:`ntpath.normcase`.
..
.. date: 2023-06-08-11-30-17
.. gh-issue: 105436
.. nonce: 1qlDxw
.. section: Windows
Ensure that an empty environment block is terminated by two null characters,
as is required by Windows.
..
.. date: 2023-05-31-16-14-31
.. gh-issue: 105146
.. nonce: gNjqq8
.. section: Windows
Updated the links at the end of the installer to point to Discourse rather
than the mailing lists.
..
.. date: 2023-05-29-17-09-31
.. gh-issue: 103646
.. nonce: U8oGQx
.. section: Windows
When installed from the Microsoft Store, ``pip`` no longer defaults to
per-user installs. However, as the install directory is unwritable, it
should automatically decide to do a per-user install anyway. This should
resolve issues when ``pip`` is passed an option that conflicts with
``--user``.
..
.. date: 2023-05-29-11-38-53
.. gh-issue: 88745
.. nonce: cldf9G
.. section: Windows
Improve performance of :func:`shutil.copy2` by using the operating system's
``CopyFile2`` function. This may result in subtle changes to metadata copied
along with some files, bringing them in line with normal OS behavior.
..
.. date: 2023-05-24-21-00-57
.. gh-issue: 104820
.. nonce: ibyrpp
.. section: Windows
Fixes :func:`~os.stat` and related functions on file systems that do not
support file ID requests. This includes FAT32 and exFAT.
..
.. date: 2023-05-23-19-26-28
.. gh-issue: 104803
.. nonce: gqxYml
.. section: Windows
Add :func:`os.path.isdevdrive` to detect whether a path is on a Windows Dev
Drive. Returns ``False`` on platforms that do not support Dev Drive, and is
absent on non-Windows platforms.
..
.. date: 2023-10-04-23-38-24
.. gh-issue: 109286
.. nonce: 1ZLMaq
.. section: macOS
Update macOS installer to use SQLite 3.43.1.
..
.. date: 2023-09-27-22-35-22
.. gh-issue: 109991
.. nonce: -xJzaF
.. section: macOS
Update macOS installer to use OpenSSL 3.0.11.
..
.. 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-05-23-17-19-49
.. gh-issue: 104719
.. nonce: rvYXH-
.. section: IDLE
Remove IDLE's modification of tokenize.tabsize and test other uses of
tokenize data and methods.
..
.. date: 2023-09-27-23-31-54
.. gh-issue: 109991
.. nonce: sUUYY8
.. section: Tools/Demos
Update GitHub CI workflows to use OpenSSL 3.0.11 and multissltests to use
1.1.1w, 3.0.11, and 3.1.3.
..
.. date: 2023-08-25-22-40-12
.. gh-issue: 108494
.. nonce: 4RbDdu
.. section: Tools/Demos
`Argument Clinic <https://devguide.python.org/development-tools/clinic/>`__
now has a partial support of the :ref:`Limited API <limited-c-api>`: see
`documentation in the Python Developer's Guide
<https://devguide.python.org/development-tools/clinic/#clinic-howto-limited-capi>`__
Patch by Victor Stinner.
..
.. date: 2023-08-15-19-50-49
.. gh-issue: 107704
.. nonce: Uu84vd
.. section: Tools/Demos
It is now possible to deprecate passing keyword arguments for
keyword-or-positional parameters with Argument Clinic, using the new ``/
[from X.Y]`` syntax. (To be read as *"positional-only from Python version
X.Y"*.) See `documentation in the Python Developer's Guide
<https://devguide.python.org/development-tools/clinic/#clinic-howto-deprecate-keyword>`__
for more information.
..
.. date: 2023-08-13-11-18-06
.. gh-issue: 107880
.. nonce: gBVVQ7
.. section: Tools/Demos
Argument Clinic can now clone :meth:`!__init__` and :meth:`!__new__`
methods.
..
.. date: 2023-08-08-12-21-41
.. gh-issue: 104683
.. nonce: DRsAQE
.. section: Tools/Demos
Add ``--exclude`` option to Argument Clinic CLI.
..
.. date: 2023-08-07-16-30-48
.. gh-issue: 95065
.. nonce: -im4R5
.. section: Tools/Demos
Argument Clinic now supports overriding automatically generated signature by
using directive ``@text_signature``. See `documentation in the Python
Developer's Guide
<https://devguide.python.org/development-tools/clinic/#clinic-howto-override-signature>`__
..
.. date: 2023-08-04-00-04-40
.. gh-issue: 107609
.. nonce: 2DqgtL
.. section: Tools/Demos
Fix duplicate module check in Argument Clinic. Previously, a duplicate
definition would incorrectly be silently accepted. Patch by Erlend E.
Aasland.
..
.. date: 2023-07-30-23-32-16
.. gh-issue: 107467
.. nonce: 5O9p3G
.. section: Tools/Demos
The Argument Clinic command-line tool now prints to stderr instead of stdout
on failure.
..
.. 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-07-13-12-08-35
.. gh-issue: 106706
.. nonce: 29zp8E
.. section: Tools/Demos
Change bytecode syntax for families to remove redundant name matching pseudo
syntax.
..
.. date: 2023-07-03-14-06-19
.. gh-issue: 106359
.. nonce: RfJuR0
.. section: Tools/Demos
Argument Clinic now explicitly forbids "kwarg splats" in function calls used
as annotations.
..
.. 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: 2022-07-23-00-33-28
.. gh-issue: 95065
.. nonce: NfCCpp
.. section: Tools/Demos
It is now possible to deprecate passing parameters positionally with
Argument Clinic, using the new ``* [from X.Y]`` syntax. (To be read as
*"keyword-only from Python version X.Y"*.) See `documentation in the Python
Developer's Guide
<https://devguide.python.org/development-tools/clinic/#clinic-howto-deprecate-positional>`__
for more information. Patch by Erlend E. Aasland with help from Alex
Waygood, Nikita Sobolev, and Serhiy Storchaka.
..
.. date: 2023-10-11-17-29-52
.. gh-issue: 85283
.. nonce: OsqIBF
.. section: C API
If the :c:macro:`Py_LIMITED_API` macro is defined,
:c:macro:`!Py_BUILD_CORE`, :c:macro:`!Py_BUILD_CORE_BUILTIN` and
:c:macro:`!Py_BUILD_CORE_MODULE` macros are now undefined by ``<Python.h>``.
Patch by Victor Stinner.
..
.. date: 2023-10-03-19-01-20
.. gh-issue: 110289
.. nonce: YBIHEz
.. section: C API
Add :c:func:`PyUnicode_EqualToUTF8AndSize` and
:c:func:`PyUnicode_EqualToUTF8` functions.
..
.. date: 2023-10-03-06-19-10
.. gh-issue: 110235
.. nonce: uec5AG
.. section: C API
Raise :exc:`TypeError` for duplicate/unknown fields in ``PyStructSequence``
constructor. Patched by Xuehai Pan.
..
.. date: 2023-10-02-13-39-57
.. gh-issue: 110014
.. nonce: gfQ4jU
.. section: C API
Remove undocumented ``PY_TIMEOUT_MAX`` constant from the limited C API.
Patch by Victor Stinner.
..
.. date: 2023-09-17-21-47-31
.. gh-issue: 109521
.. nonce: JDF6i9
.. section: C API
:c:func:`PyImport_GetImporter` now sets RuntimeError if it fails to get
:data:`sys.path_hooks` or :data:`sys.path_importer_cache` or they are not
list and dict correspondingly. Previously it could return NULL without
setting error in obscure cases, crash or raise SystemError if these
attributes have wrong type.
..
.. date: 2023-09-12-13-09-36
.. gh-issue: 108724
.. nonce: -yMsC8
.. section: C API
Add :c:type:`PyMutex` internal-only lightweight locking API.
..
.. date: 2023-09-06-00-14-49
.. gh-issue: 85283
.. nonce: GKY0Cc
.. section: C API
Add :c:func:`PySys_AuditTuple` function: similar to :c:func:`PySys_Audit`,
but pass event arguments as a Python :class:`tuple` object. Patch by Victor
Stinner.
..
.. date: 2023-09-04-11-47-12
.. gh-issue: 108867
.. nonce: Cr_LKd
.. section: C API
Add :c:func:`PyThreadState_GetUnchecked()` function: similar to
:c:func:`PyThreadState_Get()`, but don't kill the process with a fatal error
if it is NULL. The caller is responsible to check if the result is NULL.
Previously, the function was private and known as
``_PyThreadState_UncheckedGet()``. Patch by Victor Stinner.
..
.. date: 2023-09-02-22-35-55
.. gh-issue: 108765
.. nonce: 4TOdBT
.. section: C API
``Python.h`` no longer includes the ``<ctype.h>`` standard header file. If
needed, it should now be included explicitly. For example, it provides
``isalpha()`` and ``tolower()`` functions which are locale dependent. Python
provides locale independent functions, like :c:func:`!Py_ISALPHA` and
:c:func:`!Py_TOLOWER`. Patch by Victor Stinner.
..
.. date: 2023-09-01-21-10-29
.. gh-issue: 108765
.. nonce: eeXtYF
.. section: C API
``Python.h`` no longer includes the ``<unistd.h>`` standard header file. If
needed, it should now be included explicitly. For example, it provides the
functions: ``close()``, ``getpagesize()``, ``getpid()`` and ``sysconf()``.
Patch by Victor Stinner.
..
.. date: 2023-09-01-20-41-49
.. gh-issue: 108765
.. nonce: 5dXc1r
.. section: C API
``Python.h`` no longer includes the ``<ieeefp.h>`` standard header. It was
included for the ``finite()`` function which is now provided by the
``<math.h>`` header. It should now be included explicitly if needed. Remove
also the ``HAVE_IEEEFP_H`` macro. Patch by Victor Stinner.
..
.. date: 2023-09-01-18-42-31
.. gh-issue: 108765
.. nonce: IyYNDu
.. section: C API
``Python.h`` no longer includes these standard header files: ``<time.h>``,
``<sys/select.h>`` and ``<sys/time.h>``. If needed, they should now be
included explicitly. For example, ``<time.h>`` provides the ``clock()`` and
``gmtime()`` functions, ``<sys/select.h>`` provides the ``select()``
function, and ``<sys/time.h>`` provides the ``futimes()``,
``gettimeofday()`` and ``setitimer()`` functions. Patch by Victor Stinner.
..
.. date: 2023-09-01-16-28-09
.. gh-issue: 108511
.. nonce: gg-QDG
.. section: C API
Add functions :c:func:`PyObject_HasAttrWithError`,
:c:func:`PyObject_HasAttrStringWithError`,
:c:func:`PyMapping_HasKeyWithError` and
:c:func:`PyMapping_HasKeyStringWithError`.
..
.. date: 2023-09-01-15-35-05
.. gh-issue: 107073
.. nonce: zCz0iN
.. section: C API
Add :c:func:`PyObject_VisitManagedDict` and
:c:func:`PyObject_ClearManagedDict` functions which must be called by the
traverse and clear functions of a type using
:c:macro:`Py_TPFLAGS_MANAGED_DICT` flag. Patch by Victor Stinner.
..
.. date: 2023-08-30-02-54-06
.. gh-issue: 108634
.. nonce: oV3Xzk
.. section: C API
Python built with :file:`configure` :option:`--with-trace-refs` (tracing
references) now supports the :ref:`Limited API <limited-c-api>`. Patch by
Victor Stinner.
..
.. date: 2023-08-24-20-08-02
.. gh-issue: 108014
.. nonce: 20DOSS
.. section: C API
Add :c:func:`PyLong_AsInt` function: similar to :c:func:`PyLong_AsLong`, but
store the result in a C :c:expr:`int` instead of a C :c:expr:`long`.
Previously, it was known as the private function :c:func:`!_PyLong_AsInt`
(with an underscore prefix). Patch by Victor Stinner.
..
.. date: 2023-08-22-18-45-20
.. gh-issue: 108314
.. nonce: nOlmwq
.. section: C API
Add :c:func:`PyDict_ContainsString` function: same as
:c:func:`PyDict_Contains`, but *key* is specified as a :c:expr:`const char*`
UTF-8 encoded bytes string, rather than a :c:expr:`PyObject*`. Patch by
Victor Stinner.
..
.. date: 2023-08-22-13-00-54
.. gh-issue: 108337
.. nonce: wceHZm
.. section: C API
Add atomic operations on additional data types in pyatomic.h.
..
.. date: 2023-08-16-17-16-19
.. gh-issue: 108014
.. nonce: wXN3CF
.. section: C API
Add :c:func:`Py_IsFinalizing` function: check if the main Python interpreter
is :term:`shutting down <interpreter shutdown>`. Patch by Victor Stinner.
..
.. date: 2023-08-14-10-59-03
.. gh-issue: 107916
.. nonce: KH4Muo
.. section: C API
C API functions :c:func:`PyErr_SetFromErrnoWithFilename`,
:c:func:`PyErr_SetExcFromWindowsErrWithFilename` and
:c:func:`PyErr_SetFromWindowsErrWithFilename` save now the error code before
calling :c:func:`PyUnicode_DecodeFSDefault`.
..
.. date: 2023-08-13-12-33-00
.. gh-issue: 107915
.. nonce: jQ0wOi
.. section: C API
Such C API functions as ``PyErr_SetString()``, ``PyErr_Format()``,
``PyErr_SetFromErrnoWithFilename()`` and many others no longer crash or
ignore errors if it failed to format the error message or decode the
filename. Instead, they keep a corresponding error.
..
.. date: 2023-08-10-11-12-25
.. gh-issue: 107810
.. nonce: oJ40Qx
.. section: C API
Improve :exc:`DeprecationWarning` for uses of :c:type:`PyType_Spec` with
metaclasses that have custom ``tp_new``.
..
.. date: 2023-07-25-17-23-08
.. gh-issue: 107249
.. nonce: xqk2ke
.. section: C API
Implement the :c:macro:`Py_UNUSED` macro for Windows MSVC compiler. Patch by
Victor Stinner.
..
.. 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.
..
.. date: 2023-07-22-14-40-48
.. gh-issue: 106320
.. nonce: H3u7x4
.. section: C API
Remove private ``_PyUnicode_AsString()`` alias to
:c:func:`PyUnicode_AsUTF8`. It was kept for backward compatibility with
Python 3.0 - 3.2. The :c:func:`PyUnicode_AsUTF8` is available since Python
3.3. The :c:func:`PyUnicode_AsUTF8String` function can be used to keep
compatibility with Python 3.2 and older. Patch by Victor Stinner.
..
.. date: 2023-07-11-01-07-39
.. gh-issue: 106572
.. nonce: y1b35X
.. section: C API
Convert :c:func:`PyObject_DelAttr` and :c:func:`PyObject_DelAttrString`
macros to functions. Patch by Victor Stinner.
..
.. date: 2023-07-08-12-24-17
.. gh-issue: 106307
.. nonce: FVnkBw
.. section: C API
Add :c:func:`PyMapping_GetOptionalItem` function.
..
.. date: 2023-07-07-19-14-00
.. gh-issue: 106521
.. nonce: Veh9f3
.. section: C API
Add :c:func:`PyObject_GetOptionalAttr` and
:c:func:`PyObject_GetOptionalAttrString` functions.
..
.. date: 2023-07-02-00-00-20
.. gh-issue: 106320
.. nonce: tZWcvG
.. section: C API
Remove ``_PyInterpreterState_Get()`` alias to
:c:func:`PyInterpreterState_Get()` which was kept for backward compatibility
with Python 3.8. Patch by Victor Stinner.
..
.. date: 2023-07-01-21-23-33
.. gh-issue: 106316
.. nonce: hp2Ijw
.. section: C API
Remove ``cpython/pytime.h`` header file: it only contained private
functions. Patch by Victor Stinner.
..
.. date: 2023-06-30-09-33-25
.. gh-issue: 106023
.. nonce: YvYiE4
.. section: C API
Remove private ``_PyObject_FastCall()`` function: use
``PyObject_Vectorcall()`` which is available since Python 3.8 (:pep:`590`).
Patch by Victor Stinner.
..
.. date: 2023-06-28-02-30-50
.. gh-issue: 106168
.. nonce: NFOZPv
.. section: C API
If Python is built in :ref:`debug mode <debug-build>` or :option:`with
assertions <--with-assertions>`, :c:func:`PyTuple_SET_ITEM` and
:c:func:`PyList_SET_ITEM` now check the index argument with an assertion. If
the assertion fails, make sure that the size is set before. Patch by Victor
Stinner.
..
.. date: 2023-06-25-18-01-27
.. gh-issue: 106084
.. nonce: PEzqU3
.. section: C API
Remove the old aliases to functions calling functions which were kept for
backward compatibility with Python 3.8 provisional API:
* ``_PyObject_CallMethodNoArgs()``: use ``PyObject_CallMethodNoArgs()``
* ``_PyObject_CallMethodOneArg()``: use ``PyObject_CallMethodOneArg()``
* ``_PyObject_CallOneArg()``: use ``PyObject_CallOneArg()``
* ``_PyObject_FastCallDict()``: use ``PyObject_VectorcallDict()``
* ``_PyObject_Vectorcall()``: use ``PyObject_Vectorcall()``
* ``_PyObject_VectorcallMethod()``: use ``PyObject_VectorcallMethod()``
* ``_PyVectorcall_Function()``: use ``PyVectorcall_Function()``
Just remove the underscore prefix to update your code. Patch by Victor
Stinner.
..
.. date: 2023-06-23-02-57-15
.. gh-issue: 106004
.. nonce: -OToh6
.. section: C API
Adds :c:func:`PyDict_GetItemRef` and :c:func:`PyDict_GetItemStringRef`
functions: similar to :c:func:`PyDict_GetItemWithError` but returning a
:term:`strong reference` instead of a :term:`borrowed reference`. Patch by
Victor Stinner.
..
.. date: 2023-06-22-00-25-55
.. gh-issue: 105927
.. nonce: GRxZtI
.. section: C API
Deprecate the :c:func:`PyWeakref_GetObject` and
:c:func:`PyWeakref_GET_OBJECT` functions: use the new
:c:func:`PyWeakref_GetRef` function instead. Patch by Victor Stinner.
..
.. date: 2023-06-20-08-59-05
.. gh-issue: 105927
.. nonce: DfGeEA
.. section: C API
Add :c:func:`PyWeakref_GetRef` function: similar to
:c:func:`PyWeakref_GetObject` but returns a :term:`strong reference`, or
``NULL`` if the referent is no longer live. Patch by Victor Stinner.
..
.. date: 2023-06-19-20-02-16
.. gh-issue: 105922
.. nonce: o4T6wO
.. section: C API
Add :c:func:`PyImport_AddModuleRef`: similar to
:c:func:`PyImport_AddModule`, but return a :term:`strong reference` instead
of a :term:`borrowed reference`. Patch by Victor Stinner.
..
.. date: 2023-06-13-14-24-55
.. gh-issue: 105227
.. nonce: HDL9aF
.. section: C API
The new :c:func:`PyType_GetDict` provides the dictionary for the given type
object that is normally exposed by ``cls.__dict__``. Normally it's
sufficient to use :c:member:`~PyTypeObject.tp_dict`, but for the static
builtin types :c:member:`!tp_dict` is now always ``NULL``.
:c:func:`!PyType_GetDict()` provides the correct dict object instead.
..
.. date: 2023-06-09-23-34-25
.. gh-issue: 105375
.. nonce: n7amiF
.. section: C API
Fix a bug in :c:func:`PyErr_WarnExplicit` where an exception could end up
being overwritten if the API failed internally.
..
.. date: 2023-06-09-19-16-57
.. gh-issue: 105603
.. nonce: -z6G22
.. section: C API
We've renamed the new (in 3.12) ``PyInterpreterConfig.own_gil`` to
``PyInterpreterConfig.gil`` and changed the meaning of the value from "bool"
to an integer with supported values of ``PyInterpreterConfig_DEFAULT_GIL``,
``PyInterpreterConfig_SHARED_GIL``, and ``PyInterpreterConfig_OWN_GIL``. The
default is "shared".
..
.. date: 2023-06-09-12-35-55
.. gh-issue: 105387
.. nonce: wM_oL-
.. section: C API
In the limited C API version 3.12, :c:func:`Py_INCREF` and
:c:func:`Py_DECREF` functions are now implemented as opaque function calls
to hide implementation details. Patch by Victor Stinner.
..
.. date: 2023-06-06-17-43-28
.. gh-issue: 105396
.. nonce: FQJG5B
.. section: C API
Deprecate the :c:func:`PyImport_ImportModuleNoBlock` function which is just
an alias to :c:func:`PyImport_ImportModule` since Python 3.3. Patch by
Victor Stinner.
..
.. date: 2023-06-06-14-14-41
.. gh-issue: 103968
.. nonce: BTO6II
.. section: C API
:c:func:`PyType_FromMetaclass` now allows metaclasses with ``tp_new`` set to
``NULL``.
..
.. date: 2023-06-06-10-57-18
.. gh-issue: 105268
.. nonce: OTJUko
.. section: C API
Remove the old private, undocumented and untested ``_PyGC_FINALIZED()``
macro which was kept for backward compatibility with Python 3.8 and older.
Patch by Victor Stinner.
..
.. date: 2023-06-01-11-24-03
.. gh-issue: 105182
.. nonce: l5sCw4
.. section: C API
Remove ``PyEval_AcquireLock()`` and ``PyEval_ReleaseLock()`` functions,
deprecated in Python 3.2. Patch by Victor Stinner.
..
.. date: 2023-06-01-11-23-28
.. gh-issue: 105182
.. nonce: kLEHl-
.. section: C API
Remove ``PyEval_InitThreads()`` and ``PyEval_ThreadsInitialized()``
functions, deprecated in Python 3.9. Patch by Victor Stinner.
..
.. date: 2023-06-01-09-40-30
.. gh-issue: 105145
.. nonce: WOOE-w
.. section: C API
Deprecate old Python initialization functions:
* :c:func:`PySys_ResetWarnOptions`
* :c:func:`Py_GetExecPrefix`
* :c:func:`Py_GetPath`
* :c:func:`Py_GetPrefix`
* :c:func:`Py_GetProgramFullPath`
* :c:func:`Py_GetProgramName`
* :c:func:`Py_GetPythonHome`
Patch by Victor Stinner.
..
.. date: 2023-05-31-19-38-45
.. gh-issue: 85275
.. nonce: doojgE
.. section: C API
``PyObject_AsCharBuffer()``, ``PyObject_AsReadBuffer()``,
``PyObject_CheckReadBuffer()``, and ``PyObject_AsWriteBuffer()`` are
removed. Please migrate to new buffer protocol; :c:func:`PyObject_GetBuffer`
and :c:func:`PyBuffer_Release`.
..
.. date: 2023-05-31-18-37-57
.. gh-issue: 105156
.. nonce: R4El5V
.. section: C API
Deprecate the old ``Py_UNICODE`` and ``PY_UNICODE_TYPE`` types: use directly
the :c:type:`wchar_t` type instead. Since Python 3.3, ``Py_UNICODE`` and
``PY_UNICODE_TYPE`` are just aliases to :c:type:`wchar_t`. Patch by Victor
Stinner.
..
.. date: 2023-05-31-16-51-18
.. gh-issue: 105145
.. nonce: b3B6lJ
.. section: C API
Remove the following old functions to configure the Python initialization,
deprecated in Python 3.11:
* ``PySys_AddWarnOptionUnicode()``
* ``PySys_AddWarnOption()``
* ``PySys_AddXOption()``
* ``PySys_HasWarnOptions()``
* ``PySys_SetArgvEx()``
* ``PySys_SetArgv()``
* ``PySys_SetPath()``
* ``Py_SetPath()``
* ``Py_SetProgramName()``
* ``Py_SetPythonHome()``
* ``Py_SetStandardStreamEncoding()``
* ``_Py_SetProgramFullPath()``
Patch by Victor Stinner.
..
.. date: 2023-05-30-19-11-09
.. gh-issue: 105107
.. nonce: YQwMnm
.. section: C API
Remove functions deprecated in Python 3.9.
* ``PyEval_CallObject()``, ``PyEval_CallObjectWithKeywords()``: use
:c:func:`PyObject_CallNoArgs` and :c:func:`PyObject_Call` (positional
arguments must not be *NULL*) instead.
* ``PyEval_CallFunction()``: use :c:func:`PyObject_CallFunction` instead.
* ``PyEval_CallMethod()``: use :c:func:`PyObject_CallMethod` instead.
* ``PyCFunction_Call()``: use :c:func:`PyObject_Call` instead.
Patch by Victor Stinner.
..
.. date: 2023-05-30-17-45-32
.. gh-issue: 105115
.. nonce: iRho1K
.. section: C API
``PyTypeObject.tp_bases`` (and ``tp_mro``) for builtin static types are now
shared by all interpreters, whereas in 3.12-beta1 they were stored on
``PyInterpreterState``. Also note that now the tuples are immortal objects.
..
.. date: 2023-05-30-10-15-13
.. gh-issue: 105071
.. nonce: dPtp7c
.. section: C API
Add ``PyUnstable_Exc_PrepReraiseStar`` to the unstable C api to expose the
implementation of :keyword:`except* <except_star>`.
..
.. date: 2023-05-29-16-09-27
.. gh-issue: 104922
.. nonce: L23qaU
.. section: C API
``PY_SSIZE_T_CLEAN`` is no longer required to use ``'#'`` formats in APIs
like :c:func:`PyArg_ParseTuple` and :c:func:`Py_BuildValue`. They uses
``Py_ssize_t`` for ``'#'`` regardless ``PY_SSIZE_T_CLEAN``.
..
.. date: 2023-05-25-15-44-48
.. gh-issue: 104584
.. nonce: cSAoRh
.. section: C API
Add an unstable C API for hooking in an optimizer. This is mainly internal,
but marked "unstable" to allow third-party experimentation.
..
.. date: 2023-05-19-10-22-34
.. gh-issue: 104668
.. nonce: MLX1g9
.. section: C API
Don't call :c:var:`PyOS_InputHook` or :c:var:`PyOS_ReadlineFunctionPointer`
in subinterpreters, since it's generally difficult to avoid using global
state in their registered callbacks. This also avoids situations where
extensions may find themselves running in a subinterpreter they don't
support (or haven't yet been loaded in).
..
.. bpo: 42327
.. date: 2020-11-11-22-36-29
.. nonce: ODSZBM
.. section: C API
Add :c:func:`PyModule_Add` function: similar to
:c:func:`PyModule_AddObjectRef` and :c:func:`PyModule_AddObject`, but always
steals a reference to the value.
..
.. bpo: 40309
.. date: 2020-06-25-09-44-59
.. nonce: CuoGoQ
.. section: C API
Properly handle trailing spaces before closing parenthesis in
:c:func:`Py_BuildValue` format strings.
|