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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
# Auto-generated from cpython_chunk_15.txt

TEXT_DATA = r"""
.. date: 2022-12-05-01-39-10
.. gh-issue: 100001
.. nonce: uD05Fc
.. release date: 2022-12-06
.. section: Security
``python -m http.server`` no longer allows terminal control characters sent
within a garbage request to be printed to the stderr server log.
This is done by changing the :mod:`http.server`
:class:`BaseHTTPRequestHandler` ``.log_message`` method to replace control
characters with a :samp:`\\x{HH}` hex escape before printing.
..
.. date: 2022-11-11-12-50-28
.. gh-issue: 87604
.. nonce: OtwH5L
.. section: Security
Avoid publishing list of active per-interpreter audit hooks via the
:mod:`gc` module
..
.. date: 2022-11-30-11-09-40
.. gh-issue: 99891
.. nonce: 9VomwB
.. section: Core and Builtins
Fix a bug in the tokenizer that could cause infinite recursion when showing
syntax warnings that happen in the first line of the source. Patch by Pablo
Galindo
..
.. date: 2022-11-27-13-50-13
.. gh-issue: 91054
.. nonce: oox_kW
.. section: Core and Builtins
Add :c:func:`PyCode_AddWatcher` and :c:func:`PyCode_ClearWatcher` APIs to
register callbacks to receive notification on creation and destruction of
code objects.
..
.. date: 2022-11-26-04-00-41
.. gh-issue: 99729
.. nonce: A3ovwQ
.. section: Core and Builtins
Fix an issue that could cause frames to be visible to Python code as they
are being torn down, possibly leading to memory corruption or hard crashes
of the interpreter.
..
.. date: 2022-11-23-18-16-18
.. gh-issue: 99708
.. nonce: 7MuaiR
.. section: Core and Builtins
Fix bug where compiler crashes on an if expression with an empty body block.
..
.. date: 2022-11-21-11-27-14
.. gh-issue: 99578
.. nonce: DcKoBJ
.. section: Core and Builtins
Fix a reference bug in :func:`!_imp.create_builtin` after the creation of
the first sub-interpreter for modules ``builtins`` and ``sys``. Patch by
Victor Stinner.
..
.. date: 2022-11-19-22-27-52
.. gh-issue: 99581
.. nonce: yKYPbf
.. section: Core and Builtins
Fixed a bug that was causing a buffer overflow if the tokenizer copies a
line missing the newline character from a file that is as long as the
available tokenizer buffer. Patch by Pablo galindo
..
.. date: 2022-11-18-11-24-25
.. gh-issue: 99553
.. nonce: F64h-n
.. section: Core and Builtins
Fix bug where an :exc:`ExceptionGroup` subclass can wrap a
:exc:`BaseException`.
..
.. date: 2022-11-16-21-35-30
.. gh-issue: 99547
.. nonce: p_c_bp
.. section: Library
Add a function to os.path to check if a path is a junction: isjunction. Add
similar functionality to pathlib.Path as is_junction.
..
.. date: 2022-11-12-01-39-57
.. gh-issue: 99370
.. nonce: _cu32j
.. section: Library
Fix zip path for venv created from a non-installed python on POSIX
platforms.
..
.. date: 2022-11-11-14-04-01
.. gh-issue: 99377
.. nonce: -CJvWn
.. section: Core and Builtins
Add audit events for thread creation and clear operations.
..
.. date: 2022-11-10-17-09-16
.. gh-issue: 98686
.. nonce: bmAKwr
.. section: Core and Builtins
Remove the ``BINARY_OP_GENERIC`` and ``COMPARE_OP_GENERIC``
"specializations".
..
.. date: 2022-11-10-16-53-40
.. gh-issue: 99298
.. nonce: HqRJES
.. section: Core and Builtins
Remove the remaining error paths for attribute specializations, and refuse
to specialize attribute accesses on types that haven't had
:c:func:`PyType_Ready` called on them yet.
..
.. date: 2022-11-05-22-26-35
.. gh-issue: 99127
.. nonce: Btk7ih
.. section: Core and Builtins
Allow some features of :mod:`syslog` to the main interpreter only. Patch by
Donghee Na.
..
.. date: 2022-10-05-11-44-52
.. gh-issue: 91053
.. nonce: f5Bo3p
.. section: Core and Builtins
Optimizing interpreters and JIT compilers may need to invalidate internal
metadata when functions are modified. This change adds the ability to
provide a callback that will be invoked each time a function is created,
modified, or destroyed.
..
.. date: 2022-09-17-17-08-01
.. gh-issue: 90994
.. nonce: f0H2Yd
.. section: Core and Builtins
Improve error messages when there's a syntax error with call arguments. The
following three cases are covered: - No value is assigned to a named
argument, eg ``foo(a=)``. - A value is assigned to a star argument, eg
``foo(*args=[0])``. - A value is assigned to a double-star keyword argument,
eg ``foo(**kwarg={'a': 0})``.
..
.. bpo: 45026
.. date: 2021-08-29-15-55-19
.. nonce: z7nTA3
.. section: Core and Builtins
Optimize the :class:`range` object iterator. It is now smaller, faster
iteration of ranges containing large numbers. Smaller pickles, faster
unpickling.
..
.. bpo: 31718
.. date: 2020-02-23-23-48-15
.. nonce: sXko5e
.. section: Core and Builtins
Raise :exc:`ValueError` instead of :exc:`SystemError` when methods of
uninitialized :class:`io.IncrementalNewlineDecoder` objects are called.
Patch by Oren Milman.
..
.. bpo: 38031
.. date: 2019-09-04-19-09-49
.. nonce: Yq4L72
.. section: Core and Builtins
Fix a possible assertion failure in :class:`io.FileIO` when the opener
returns an invalid file descriptor.
..
.. date: 2022-12-05-13-40-15
.. gh-issue: 100001
.. nonce: 78ReYp
.. section: Library
Also \ escape \s in the http.server BaseHTTPRequestHandler.log_message so
that it is technically possible to parse the line and reconstruct what the
original data was.  Without this a \xHH is ambiguous as to if it is a hex
replacement we put in or the characters r"\x" came through in the original
request line.
..
.. date: 2022-12-03-05-58-48
.. gh-issue: 99957
.. nonce: jLYYgN
.. section: Library
Add ``frozen_default`` parameter to :func:`typing.dataclass_transform`.
..
.. date: 2022-11-22-19-31-26
.. gh-issue: 79033
.. nonce: MW6kHq
.. section: Library
Fix :func:`asyncio.Server.wait_closed` to actually do what the docs promise
-- wait for all existing connections to complete, after closing the server.
..
.. date: 2022-11-21-17-56-18
.. gh-issue: 51524
.. nonce: nTykx8
.. section: Library
Fix bug when calling trace.CoverageResults with valid infile.
..
.. date: 2022-11-21-13-49-03
.. gh-issue: 99645
.. nonce: 9w1QKq
.. section: Library
Fix a bug in handling class cleanups in :class:`unittest.TestCase`.  Now
``addClassCleanup()`` uses separate lists for different ``TestCase``
subclasses, and ``doClassCleanups()`` only cleans up the particular class.
..
.. date: 2022-11-21-10-45-54
.. gh-issue: 99508
.. nonce: QqVbby
.. section: Library
Fix ``TypeError`` in ``Lib/importlib/_bootstrap_external.py`` while calling
``_imp.source_hash()``.
..
.. date: 2022-11-17-10-56-47
.. gh-issue: 66285
.. nonce: KvjlaB
.. section: Library
Fix :mod:`asyncio` to not share event loop and signal wakeupfd in forked
processes. Patch by Kumar Aditya.
..
.. date: 2022-11-15-10-55-24
.. gh-issue: 97001
.. nonce: KeQuVF
.. section: Library
Release the GIL when calling termios APIs to avoid blocking threads.
..
.. date: 2022-11-15-04-08-25
.. gh-issue: 92647
.. nonce: cZcjnJ
.. section: Library
Use final status of an enum to determine lookup or creation branch of
functional API.
..
.. date: 2022-11-14-08-21-56
.. gh-issue: 99388
.. nonce: UWSlwp
.. section: Library
Add *loop_factory* parameter to :func:`asyncio.run` to allow specifying a
custom event loop factory. Patch by Kumar Aditya.
..
.. date: 2022-11-13-02-06-56
.. gh-issue: 99341
.. nonce: 8-OlwB
.. section: Library
Fix :func:`ast.increment_lineno` to also cover :class:`ast.TypeIgnore` when
changing line numbers.
..
.. date: 2022-11-12-12-15-30
.. gh-issue: 99382
.. nonce: dKg_rW
.. section: Library
Check the number of arguments in substitution in user generics containing a
:class:`~typing.TypeVarTuple` and one or more :class:`~typing.TypeVar`.
..
.. date: 2022-11-12-12-10-23
.. gh-issue: 99379
.. nonce: bcGhxF
.. section: Library
Fix substitution of :class:`~typing.ParamSpec` followed by
:class:`~typing.TypeVarTuple` in generic aliases.
..
.. date: 2022-11-12-12-08-34
.. gh-issue: 99344
.. nonce: 7M_u8G
.. section: Library
Fix substitution of :class:`~typing.TypeVarTuple` and
:class:`~typing.ParamSpec` together in user generics.
..
.. date: 2022-11-09-12-36-12
.. gh-issue: 99284
.. nonce: 9p4J2l
.. section: Library
Remove ``_use_broken_old_ctypes_structure_semantics_`` old untested and
undocumented hack from :mod:`ctypes`.
..
.. date: 2022-11-09-03-34-29
.. gh-issue: 99201
.. nonce: lDJ7xI
.. section: Library
Fix :exc:`IndexError` when initializing the config variables on Windows if
``HAVE_DYNAMIC_LOADING`` is not set.
..
.. date: 2022-11-08-15-54-43
.. gh-issue: 99240
.. nonce: MhYwcz
.. section: Library
Fix double-free bug in Argument Clinic ``str_converter`` by extracting
memory clean up to a new ``post_parsing`` section.
..
.. date: 2022-11-08-11-18-51
.. gh-issue: 64490
.. nonce: VcBgrN
.. section: Library
Fix refcount error when arguments are packed to tuple in Argument Clinic.
..
.. date: 2022-11-02-23-47-07
.. gh-issue: 99029
.. nonce: 7uCiIB
.. section: Library
:meth:`pathlib.PurePath.relative_to` now treats naked Windows drive paths
as relative. This brings its behaviour in line with other parts of pathlib.
..
.. date: 2022-10-24-11-01-05
.. gh-issue: 98253
.. nonce: HVd5v4
.. section: Library
The implementation of the typing module is now more resilient to reference
leaks in binary extension modules.
Previously, a reference leak in a typed C API-based extension module could
leak internals of the typing module, which could in turn introduce leaks in
essentially any other package with typed function signatures. Although the
typing package is not the original source of the problem, such non-local
dependences exacerbate debugging of large-scale projects, and the
implementation was therefore changed to reduce harm by providing better
isolation.
..
.. date: 2022-10-19-18-31-53
.. gh-issue: 98458
.. nonce: vwyq7O
.. section: Library
Fix infinite loop in unittest when a self-referencing chained exception is
raised
..
.. date: 2022-10-19-13-37-23
.. gh-issue: 93453
.. nonce: wTB_sH
.. section: Library
:func:`asyncio.get_event_loop` and many other :mod:`asyncio` functions like
:func:`asyncio.ensure_future`, :func:`asyncio.shield` or
:func:`asyncio.gather`, and also the
:meth:`~asyncio.BaseDefaultEventLoopPolicy.get_event_loop` method of
:class:`asyncio.BaseDefaultEventLoopPolicy` now raise a :exc:`RuntimeError`
if called when there is no running event loop and the current event loop was
not set. Previously they implicitly created and set a new current event
loop. :exc:`DeprecationWarning` is no longer emitted if there is no running
event loop but the current event loop was set.
..
.. date: 2022-10-16-18-52-00
.. gh-issue: 97966
.. nonce: humlhz
.. section: Library
On ``uname_result``, restored expectation that ``_fields`` and ``_asdict``
would include all six properties including ``processor``.
..
.. date: 2022-10-13-22-13-54
.. gh-issue: 98248
.. nonce: lwyygy
.. section: Library
Provide informative error messages in :func:`struct.pack` when its integral
arguments are not in range.
..
.. date: 2022-10-08-19-20-33
.. gh-issue: 98108
.. nonce: WUObqM
.. section: Library
``zipfile.Path`` is now pickleable if its initialization parameters were
pickleable (e.g. for file system paths).
..
.. date: 2022-10-08-15-41-00
.. gh-issue: 98098
.. nonce: DugpWi
.. section: Library
Created packages from zipfile and test_zipfile modules, separating
``zipfile.Path`` functionality.
..
.. date: 2022-10-02-12-38-22
.. gh-issue: 82836
.. nonce: OvYLmC
.. section: Library
Fix :attr:`~ipaddress.IPv4Address.is_private` properties in the
:mod:`ipaddress` module. Previously non-private networks (0.0.0.0/0) would
return ``True`` from this method; now they correctly return ``False``.
..
.. date: 2022-09-14-21-56-15
.. gh-issue: 96828
.. nonce: ZoOY5G
.. section: Library
Add an :const:`~ssl.OP_ENABLE_KTLS` option for enabling the use of the kernel
TLS (kTLS). Patch by Illia Volochii.
..
.. date: 2022-08-06-12-18-07
.. gh-issue: 88863
.. nonce: NnqsuJ
.. section: Library
To avoid apparent memory leaks when :func:`asyncio.open_connection` raises,
break reference cycles generated by local exception and future instances
(which has exception instance as its member var). Patch by Dong Uk, Kang.
..
.. date: 2022-04-23-03-46-37
.. gh-issue: 91078
.. nonce: 87-hkp
.. section: Library
:meth:`TarFile.next` now returns ``None`` when called on an empty tarfile.
..
.. bpo: 47220
.. date: 2022-04-04-22-54-11
.. nonce: L9jYu4
.. section: Library
Document the optional *callback* parameter of :class:`WeakMethod`. Patch by
Géry Ogam.
..
.. bpo: 44817
.. date: 2021-08-03-05-31-00
.. nonce: wOW_Qn
.. section: Library
Ignore WinError 53 (ERROR_BAD_NETPATH), 65 (ERROR_NETWORK_ACCESS_DENIED) and
161 (ERROR_BAD_PATHNAME) when using ntpath.realpath().
..
.. bpo: 41260
.. date: 2020-08-02-23-46-22
.. nonce: Q2BNzY
.. section: Library
Rename the *fmt* parameter of the pure Python implementation of
:meth:`datetime.date.strftime` to *format*.
..
.. bpo: 15999
.. date: 2019-08-30-10-48-53
.. nonce: QqsRRi
.. section: Library
All built-in functions now accept arguments of any type instead of just
``bool`` and ``int`` for boolean parameters.
..
.. date: 2022-12-02-17-08-08
.. gh-issue: 99931
.. nonce: wC46hE
.. section: Documentation
Use `sphinxext-opengraph <https://sphinxext-opengraph.readthedocs.io/>`__ to
generate `OpenGraph metadata <https://ogp.me/>`__.
..
.. date: 2022-11-26-21-43-05
.. gh-issue: 89682
.. nonce: DhKoTM
.. section: Documentation
Reworded docstring of the default ``__contains__`` to clarify that it
returns a :class:`bool`.
..
.. date: 2022-11-26-15-51-23
.. gh-issue: 88330
.. nonce: B_wFq8
.. section: Documentation
Improved the description of what a resource is in importlib.resources docs.
..
.. date: 2022-11-16-12-52-23
.. gh-issue: 92892
.. nonce: TS-P0j
.. section: Documentation
Document that calling variadic functions with ctypes requires special care
on macOS/arm64 (and possibly other platforms).
..
.. bpo: 41825
.. date: 2020-09-22-12-32-16
.. nonce: npcaCb
.. section: Documentation
Restructured the documentation for the :func:`os.wait* <os.wait>` family of
functions, and improved the docs for :func:`os.waitid` with more explanation
of the possible argument constants.
..
.. date: 2022-12-05-16-12-56
.. gh-issue: 99892
.. nonce: sz_eW8
.. section: Tests
Skip test_normalization() of test_unicodedata if it fails to download
NormalizationTest.txt file from pythontest.net. Patch by Victor Stinner.
..
.. date: 2022-12-01-18-55-18
.. gh-issue: 99934
.. nonce: Ox3Fqf
.. section: Tests
Correct test_marsh on (32 bit) x86: test_deterministic sets was failing.
..
.. date: 2022-11-23-18-32-16
.. gh-issue: 99741
.. nonce: q4R7NH
.. section: Tests
We've implemented multi-phase init (PEP 489/630/687) for the internal (for
testing) _xxsubinterpreters module.
..
.. date: 2022-11-21-19-21-30
.. gh-issue: 99659
.. nonce: 4gP0nm
.. section: Tests
Optional big memory tests in ``test_sqlite3`` now catch the correct
:exc:`sqlite.DataError` exception type in case of too large strings and/or
blobs passed.
..
.. date: 2022-11-19-13-34-28
.. gh-issue: 99593
.. nonce: 8ZfCkj
.. section: Tests
Cover the Unicode C API with tests.
..
.. date: 2022-08-22-15-49-14
.. gh-issue: 96002
.. nonce: 4UE9UE
.. section: Tests
Add functional test for Argument Clinic.
..
.. date: 2022-11-24-02-58-10
.. gh-issue: 99086
.. nonce: DV_4Br
.. section: Build
Fix ``-Wimplicit-int``, ``-Wstrict-prototypes``, and
``-Wimplicit-function-declaration`` compiler warnings in
:program:`configure` checks.
..
.. date: 2022-11-15-08-40-22
.. gh-issue: 99337
.. nonce: 5LoQDE
.. section: Build
Fix a compilation issue with GCC 12 on macOS.
..
.. date: 2022-11-09-14-42-48
.. gh-issue: 99289
.. nonce: X7wFE1
.. section: Build
Add a ``COMPILEALL_OPTS`` variable in Makefile to override :mod:`compileall`
options (default: ``-j0``) in ``make install``. Also merged the
``compileall`` commands into a single command building .pyc files for the
all optimization levels (0, 1, 2) at once. Patch by Victor Stinner.
..
.. date: 2022-11-03-08-10-49
.. gh-issue: 98872
.. nonce: gdsR8X
.. section: Build
Fix a possible fd leak in ``Programs/_freeze_module.c`` introduced in Python
3.11.
..
.. date: 2022-10-16-12-49-24
.. gh-issue: 88226
.. nonce: BsnQ4k
.. section: Build
Always define ``TARGET_*`` labels in ``Python/ceval.c``, even if
``USE_COMPUTED_GOTOS`` is disabled.  This allows breakpoints to be set at
those labels in (for instance) ``gdb``.
..
.. date: 2022-11-23-17-17-16
.. gh-issue: 99345
.. nonce: jOa3-f
.. section: Windows
Use faster initialization functions to detect install location for Windows
Store package
..
.. date: 2022-11-21-19-50-18
.. gh-issue: 98629
.. nonce: tMmB_B
.. section: Windows
Fix initialization of :data:`sys.version` and ``sys._git`` on Windows
..
.. date: 2022-11-16-19-03-21
.. gh-issue: 99442
.. nonce: 6Dgk3Q
.. section: Windows
Fix handling in :ref:`launcher` when ``argv[0]`` does not include a file
extension.
..
.. bpo: 40882
.. date: 2020-06-06-15-10-37
.. nonce: UvNbdj
.. section: Windows
Fix a memory leak in :class:`multiprocessing.shared_memory.SharedMemory` on
Windows.
..
.. date: 2022-11-25-09-23-20
.. gh-issue: 87235
.. nonce: SifjCD
.. section: macOS
On macOS ``python3 /dev/fd/9 9</path/to/script.py`` failed for any script
longer than a couple of bytes.
..
.. date: 2022-11-01-10-32-23
.. gh-issue: 98940
.. nonce: W3YzC_
.. section: macOS
Fix ``Mac/Extras.install.py`` file filter bug.
..
.. date: 2022-08-11-09-58-15
.. gh-issue: 64490
.. nonce: PjwhM4
.. section: Tools/Demos
Argument Clinic varargs bugfixes
* Fix out-of-bounds error in :c:func:`!_PyArg_UnpackKeywordsWithVararg`.
* Fix incorrect check which allowed more than one varargs in clinic.py.
* Fix miscalculation of ``noptargs`` in generated code.
* Do not generate ``noptargs`` when there is a vararg argument and no optional argument.
..
.. date: 2022-12-05-17-30-13
.. gh-issue: 98680
.. nonce: FiMCxZ
.. section: C API
``PyBUF_*`` constants were marked as part of Limited API of Python 3.11+.
These were available in 3.11.0 with :c:macro:`Py_LIMITED_API` defined for
3.11, and are necessary to use the buffer API.
..
.. date: 2022-11-20-09-52-50
.. gh-issue: 99612
.. nonce: eBHksg
.. section: C API
Fix :c:func:`PyUnicode_DecodeUTF8Stateful` for ASCII-only data:
``*consumed`` was not set.
..
.. date: 2022-11-02-16-51-24
.. gh-issue: 47146
.. nonce: dsYDtI
.. section: C API
The ``structmember.h`` header is deprecated. Its non-deprecated contents are
now available just by including ``Python.h``, with a ``Py_`` prefix added if
it was missing. (Deprecated contents are :c:macro:`T_OBJECT`,
:c:macro:`T_NONE`, and no-op flags.) Patch by Petr Viktorin, based on
earlier work by Alexander Belopolsky and Matthias Braun.

.. bpo: 29781
.. date: 2017-09-05-15-26-30
.. nonce: LwYtBP
.. release date: 2017-09-19
.. section: Security
SSLObject.version() now correctly returns None when handshake over BIO has
not been performed yet.
..
.. bpo: 29505
.. date: 2017-08-23-17-02-55
.. nonce: BL6Yt8
.. section: Security
Add fuzz tests for float(str), int(str), unicode(str); for oss-fuzz.
..
.. bpo: 30947
.. date: 2017-08-16-16-35-59
.. nonce: iNMmm4
.. section: Security
Upgrade libexpat embedded copy from version 2.2.1 to 2.2.3 to get security
fixes.
..
.. bpo: 30730
.. date: 0347
.. nonce: rJsyTH
.. original section: Library
.. section: Security
Prevent environment variables injection in subprocess on Windows.  Prevent
passing other environment variables and command arguments.
..
.. bpo: 30694
.. date: 0344
.. nonce: WkMWM_
.. original section: Library
.. section: Security
Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple security
vulnerabilities including: :cve:`2017-9233` (External entity infinite loop
DoS), :cve:`2016-9063` (Integer overflow, re-fix), :cve:`2016-0718` (Fix
regression bugs from 2.2.0's fix to :cve:`2016-0718`) and :cve:`2012-0876`
(Counter hash flooding with SipHash). Note: the :cve:`2016-5300` (Use
os-specific entropy sources like getrandom) doesn't impact Python, since Python
already gets entropy from the OS to set the expat secret using
``XML_SetHashSalt()``.
..
.. bpo: 30500
.. date: 0342
.. nonce: 1VG7R-
.. original section: Library
.. section: Security
Fix urllib.parse.splithost() to correctly parse fragments. For example,
``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the
``127.0.0.1`` host, instead of treating ``@evil.com`` as the host in an
authentication (``login@host``).
..
.. bpo: 29591
.. date: 0338
.. nonce: ExKblw
.. original section: Library
.. section: Security
Update expat copy from 2.1.1 to 2.2.0 to get fixes of :cve:`2016-0718` and
:cve:`2016-4472`. See https://sourceforge.net/p/expat/bugs/537/ for more
information.
..
.. bpo: 31490
.. date: 2017-09-16-13-32-35
.. nonce: r7m2sj
.. section: Core and Builtins
Fix an assertion failure in ``ctypes`` class definition, in case the class has
an attribute whose name is specified in ``_anonymous_`` but not in
``_fields_``. Patch by Oren Milman.
..
.. bpo: 31471
.. date: 2017-09-14-19-47-57
.. nonce: 0yiA5Q
.. section: Core and Builtins
Fix an assertion failure in ``subprocess.Popen()`` on Windows, in case the env
argument has a bad ``keys()`` method. Patch by Oren Milman.
..
.. bpo: 31418
.. date: 2017-09-13-13-03-52
.. nonce: rS-FlC
.. section: Core and Builtins
Fix an assertion failure in ``PyErr_WriteUnraisable()`` in case of an
exception with a bad ``__module__`` attribute. Patch by Oren Milman.
..
.. bpo: 31416
.. date: 2017-09-11-12-54-35
.. nonce: 2hlQFd
.. section: Core and Builtins
Fix assertion failures in case of a bad warnings.filters or
warnings.defaultaction. Patch by Oren Milman.
..
.. bpo: 28411
.. date: 2017-09-11-09-24-21
.. nonce: 12SpAm
.. section: Core and Builtins
Change direct usage of PyInterpreterState.modules to
PyImport_GetModuleDict(). Also introduce more uniformity in other code that
deals with sys.modules. This helps reduce complications when working on
sys.modules.
..
.. bpo: 28411
.. date: 2017-09-11-09-11-20
.. nonce: Ax91lz
.. section: Core and Builtins
Switch to the abstract API when dealing with ``PyInterpreterState.modules``.
This allows later support for all dict subclasses and other Mapping
implementations.  Also add a ``PyImport_GetModule()`` function to reduce a
bunch of duplicated code.
..
.. bpo: 31411
.. date: 2017-09-11-08-50-41
.. nonce: HZz82I
.. section: Core and Builtins
Raise a TypeError instead of SystemError in case warnings.onceregistry is
not a dictionary. Patch by Oren Milman.
..
.. bpo: 31344
.. date: 2017-09-06-20-25-47
.. nonce: XpFs-q
.. section: Core and Builtins
For finer control of tracing behaviour when testing the interpreter, two new
frame attributes have been added to control the emission of particular trace
events: ``f_trace_lines`` (``True`` by default) to turn off per-line trace
events; and ``f_trace_opcodes`` (``False`` by default) to turn on per-opcode
trace events.
..
.. bpo: 31373
.. date: 2017-09-06-15-25-59
.. nonce: dC4jd4
.. section: Core and Builtins
Fix several possible instances of undefined behavior due to floating-point
demotions.
..
.. bpo: 30465
.. date: 2017-09-06-10-47-29
.. nonce: oe-3GD
.. section: Core and Builtins
Location information (``lineno`` and ``col_offset``) in f-strings is now
(mostly) correct.  This fixes tools like flake8 from showing warnings on the
wrong line (typically the first line of the file).
..
.. bpo: 30860
.. date: 2017-09-05-13-47-49
.. nonce: MROpZw
.. section: Core and Builtins
Consolidate CPython's global runtime state under a single struct.  This
improves discoverability of the runtime state.
..
.. bpo: 31347
.. date: 2017-09-04-16-35-06
.. nonce: KDuf2w
.. section: Core and Builtins
Fix possible undefined behavior in _PyObject_FastCall_Prepend.
..
.. bpo: 31343
.. date: 2017-09-04-14-57-27
.. nonce: Kl_fS5
.. section: Core and Builtins
Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C library
plans to remove the functions from sys/types.h.
..
.. bpo: 31291
.. date: 2017-08-28-11-51-29
.. nonce: t8QggK
.. section: Core and Builtins
Fix an assertion failure in ``zipimport.zipimporter.get_data`` on Windows,
when the return value of ``pathname.replace('/','\\')`` isn't a string.
Patch by Oren Milman.
..
.. bpo: 31271
.. date: 2017-08-25-20-43-22
.. nonce: YMduKF
.. section: Core and Builtins
Fix an assertion failure in the ``write()`` method of ``io.TextIOWrapper``, when
the encoder doesn't return a bytes object. Patch by Oren Milman.
..
.. bpo: 31243
.. date: 2017-08-24-13-34-49
.. nonce: dRJzqR
.. section: Core and Builtins
Fix a crash in some methods of ``io.TextIOWrapper``, when the decoder's state
is invalid. Patch by Oren Milman.
..
.. bpo: 30721
.. date: 2017-08-18-15-15-20
.. nonce: Hmc56z
.. section: Core and Builtins
``print`` now shows correct usage hint for using Python 2 redirection
syntax.  Patch by Sanyam Khurana.
..
.. bpo: 31070
.. date: 2017-08-09-09-40-54
.. nonce: oDyLiI
.. section: Core and Builtins
Fix a race condition in importlib _get_module_lock().
..
.. bpo: 30747
.. date: 2017-08-08-12-00-29
.. nonce: g2kZRT
.. section: Core and Builtins
Add a non-dummy implementation of _Py_atomic_store and _Py_atomic_load on
MSVC.
..
.. bpo: 31095
.. date: 2017-08-01-18-48-30
.. nonce: bXWZDb
.. section: Core and Builtins
Fix potential crash during GC caused by ``tp_dealloc`` which doesn't call
``PyObject_GC_UnTrack()``.
..
.. bpo: 31071
.. date: 2017-07-31-13-28-53
.. nonce: P9UBDy
.. section: Core and Builtins
Avoid masking original TypeError in call with * unpacking when other
arguments are passed.
..
.. bpo: 30978
.. date: 2017-07-21-07-39-05
.. nonce: f0jODc
.. section: Core and Builtins
str.format_map() now passes key lookup exceptions through. Previously any
exception was replaced with a KeyError exception.
..
.. bpo: 30808
.. date: 2017-07-17-12-12-59
.. nonce: bA3zOv
.. section: Core and Builtins
Use _Py_atomic API for concurrency-sensitive signal state.
..
.. bpo: 30876
.. date: 2017-07-11-06-31-32
.. nonce: x35jZX
.. section: Core and Builtins
Relative import from unloaded package now reimports the package instead of
failing with SystemError.  Relative import from non-package now fails with
ImportError rather than SystemError.
..
.. bpo: 30703
.. date: 2017-06-28-21-07-32
.. nonce: ULCdFp
.. section: Core and Builtins
Improve signal delivery.
Avoid using Py_AddPendingCall from signal handler, to avoid calling
signal-unsafe functions. The tests I'm adding here fail without the rest of the
patch, on Linux and OS X. This means our signal delivery logic had defects
(some signals could be lost).
..
.. bpo: 30765
.. date: 2017-06-26-14-29-50
.. nonce: Q5iBmf
.. section: Core and Builtins
Avoid blocking in pthread_mutex_lock() when PyThread_acquire_lock() is asked
not to block.
..
.. bpo: 31161
.. date: 0470
.. nonce: FcUAA0
.. section: Core and Builtins
Make sure the 'Missing parentheses' syntax error message is only applied to
SyntaxError, not to subclasses. Patch by Martijn Pieters.
..
.. bpo: 30814
.. date: 0469
.. nonce: HcYsfM
.. section: Core and Builtins
Fixed a race condition when import a submodule from a package.
..
.. bpo: 30736
.. date: 0468
.. nonce: kA4J9v
.. section: Core and Builtins
The internal unicodedata database has been upgraded to Unicode 10.0.
..
.. bpo: 30604
.. date: 0467
.. nonce: zGPGoX
.. section: Core and Builtins
Move co_extra_freefuncs from per-thread to per-interpreter to avoid crashes.
..
.. bpo: 30597
.. date: 0466
.. nonce: 7erHiP
.. section: Core and Builtins
``print`` now shows expected input in custom error message when used as a
Python 2 statement. Patch by Sanyam Khurana.
..
.. bpo: 30682
.. date: 0465
.. nonce: zZm88E
.. section: Core and Builtins
Removed a too-strict assertion that failed for certain f-strings, such as
eval("f'\\\n'") and eval("f'\\\r'").
..
.. bpo: 30501
.. date: 0464
.. nonce: BWJByG
.. section: Core and Builtins
The compiler now produces more optimal code for complex condition
expressions in the "if", "while" and "assert" statement, the "if"
expression, and generator expressions and comprehensions.
..
.. bpo: 28180
.. date: 0463
.. nonce: f_IHor
.. section: Core and Builtins
Implement :pep:`538` (legacy C locale coercion). This means that when a
suitable coercion target locale is available, both the core interpreter and
locale-aware C extensions will assume the use of UTF-8 as the default text
encoding, rather than ASCII.
..
.. bpo: 30486
.. date: 0462
.. nonce: KZi3nB
.. section: Core and Builtins
Allows setting cell values for __closure__. Patch by Lisa Roach.
..
.. bpo: 30537
.. date: 0461
.. nonce: sGC27r
.. section: Core and Builtins
itertools.islice now accepts integer-like objects (having an __index__
method) as start, stop, and slice arguments
..
.. bpo: 25324
.. date: 0460
.. nonce: l12VjO
.. section: Core and Builtins
Tokens needed for parsing in Python moved to C. ``COMMENT``, ``NL`` and
``ENCODING``. This way the tokens and tok_names in the token module don't
get changed when you import the tokenize module.
..
.. bpo: 29104
.. date: 0459
.. nonce: u26yCx
.. section: Core and Builtins
Fixed parsing backslashes in f-strings.
..
.. bpo: 27945
.. date: 0458
.. nonce: p29r3O
.. section: Core and Builtins
Fixed various segfaults with dict when input collections are mutated during
searching, inserting or comparing.  Based on patches by Duane Griffin and
Tim Mitchell.
..
.. bpo: 25794
.. date: 0457
.. nonce: xfPwqm
.. section: Core and Builtins
Fixed type.__setattr__() and type.__delattr__() for non-interned attribute
names.  Based on patch by Eryk Sun.
..
.. bpo: 30039
.. date: 0456
.. nonce: e0u4DG
.. section: Core and Builtins
If a KeyboardInterrupt happens when the interpreter is in the middle of
resuming a chain of nested 'yield from' or 'await' calls, it's now correctly
delivered to the innermost frame.
..
.. bpo: 28974
.. date: 0455
.. nonce: jVewS0
.. section: Core and Builtins
``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather than
``format(str(self), '')``.
..
.. bpo: 30024
.. date: 0454
.. nonce: kSOlED
.. section: Core and Builtins
Circular imports involving absolute imports with binding a submodule to a
name are now supported.
..
.. bpo: 12414
.. date: 0453
.. nonce: T9ix8O
.. section: Core and Builtins
sys.getsizeof() on a code object now returns the sizes which includes the
code struct and sizes of objects which it references. Patch by Donghee Na.
..
.. bpo: 29839
.. date: 0452
.. nonce: rUmfay
.. section: Core and Builtins
len() now raises ValueError rather than OverflowError if __len__() returned
a large negative integer.
..
.. bpo: 11913
.. date: 0451
.. nonce: 5uiMX9
.. section: Core and Builtins
README.rst is now included in the list of distutils standard READMEs and
therefore included in source distributions.
..
.. bpo: 29914
.. date: 0450
.. nonce: nqFSRR
.. section: Core and Builtins
Fixed default implementations of __reduce__ and __reduce_ex__().
object.__reduce__() no longer takes arguments, object.__reduce_ex__() now
requires one argument.
..
.. bpo: 29949
.. date: 0449
.. nonce: DevGPS
.. section: Core and Builtins
Fix memory usage regression of set and frozenset object.
..
.. bpo: 29935
.. date: 0448
.. nonce: vgjdJo
.. section: Core and Builtins
Fixed error messages in the index() method of tuple, list and deque when
pass indices of wrong type.
..
.. bpo: 29816
.. date: 0447
.. nonce: 0H75Nl
.. section: Core and Builtins
Shift operation now has less opportunity to raise OverflowError. ValueError
always is raised rather than OverflowError for negative counts. Shifting
zero with non-negative count always returns zero.
..
.. bpo: 24821
.. date: 0446
.. nonce: 4DINGV
.. section: Core and Builtins
Fixed the slowing down to 25 times in the searching of some unlucky Unicode
characters.
..
.. bpo: 29102
.. date: 0445
.. nonce: AW4YPj
.. section: Core and Builtins
Add a unique ID to PyInterpreterState.  This makes it easier to identify
each subinterpreter.
..
.. bpo: 29894
.. date: 0444
.. nonce: Vev6t-
.. section: Core and Builtins
The deprecation warning is emitted if __complex__ returns an instance of a
strict subclass of complex.  In a future versions of Python this can be an
error.
..
.. bpo: 29859
.. date: 0443
.. nonce: Z1MLcA
.. section: Core and Builtins
Show correct error messages when any of the pthread_* calls in
thread_pthread.h fails.
..
.. bpo: 29849
.. date: 0442
.. nonce: hafvBD
.. section: Core and Builtins
Fix a memory leak when an ImportError is raised during from import.
..
.. bpo: 28856
.. date: 0441
.. nonce: AFRmo4
.. section: Core and Builtins
Fix an oversight that %b format for bytes should support objects follow the
buffer protocol.
..
.. bpo: 29723
.. date: 0440
.. nonce: M5omgP
.. section: Core and Builtins
The ``sys.path[0]`` initialization change for bpo-29139 caused a regression
by revealing an inconsistency in how sys.path is initialized when executing
``__main__`` from a zipfile, directory, or other import location. The
interpreter now consistently avoids ever adding the import location's parent
directory to ``sys.path``, and ensures no other ``sys.path`` entries are
inadvertently modified when inserting the import location named on the
command line.
..
.. bpo: 29568
.. date: 0439
.. nonce: 3EtOC-
.. section: Core and Builtins
Escaped percent "%%" in the format string for classic string formatting no
longer allows any characters between two percents.
..
.. bpo: 29714
.. date: 0438
.. nonce: z-BhVd
.. section: Core and Builtins
Fix a regression that bytes format may fail when containing zero bytes
inside.
..
.. bpo: 29695
.. date: 0437
.. nonce: z75xXa
.. section: Core and Builtins
bool(), float(), list() and tuple() no longer take keyword arguments. The
first argument of int() can now be passes only as positional argument.
..
.. bpo: 28893
.. date: 0436
.. nonce: WTKnpj
.. section: Core and Builtins
Set correct __cause__ for errors about invalid awaitables returned from
__aiter__ and __anext__.
..
.. bpo: 28876
.. date: 0435
.. nonce: cU-sGT
.. section: Core and Builtins
``bool(range)`` works even if ``len(range)`` raises :exc:`OverflowError`.
..
.. bpo: 29683
.. date: 0434
.. nonce: G5iS-P
.. section: Core and Builtins
Fixes to memory allocation in _PyCode_SetExtra.  Patch by Brian Coleman.
..
.. bpo: 29684
.. date: 0433
.. nonce: wTgEoh
.. section: Core and Builtins
Fix minor regression of PyEval_CallObjectWithKeywords. It should raise
TypeError when kwargs is not a dict.  But it might cause segv when args=NULL
and kwargs is not a dict.
..
.. bpo: 28598
.. date: 0432
.. nonce: QxbzQn
.. section: Core and Builtins
Support __rmod__ for subclasses of str being called before str.__mod__.
Patch by Martijn Pieters.
..
.. bpo: 29607
.. date: 0431
.. nonce: 7NvBA1
.. section: Core and Builtins
Fix stack_effect computation for CALL_FUNCTION_EX. Patch by Matthieu
Dartiailh.
..
.. bpo: 29602
.. date: 0430
.. nonce: qyyskC
.. section: Core and Builtins
Fix incorrect handling of signed zeros in complex constructor for complex
subclasses and for inputs having a __complex__ method. Patch by Serhiy
Storchaka.
..
.. bpo: 29347
.. date: 0429
.. nonce: 1RPPGN
.. section: Core and Builtins
Fixed possibly dereferencing undefined pointers when creating weakref
objects.
..
.. bpo: 29463
.. date: 0428
.. nonce: h2bg8A
.. section: Core and Builtins
Add ``docstring`` field to Module, ClassDef, FunctionDef, and
AsyncFunctionDef ast nodes.  docstring is not first stmt in their body
anymore.  It affects ``co_firstlineno`` and ``co_lnotab`` of code object for
module and class. (Reverted in :issue:`32911`.)
..
.. bpo: 29438
.. date: 0427
.. nonce: IKxD6I
.. section: Core and Builtins
Fixed use-after-free problem in key sharing dict.
..
.. bpo: 29546
.. date: 0426
.. nonce: PS1I1T
.. section: Core and Builtins
Set the 'path' and 'name' attribute on ImportError for ``from ... import
...``.
..
.. bpo: 29546
.. date: 0425
.. nonce: O1rmG_
.. section: Core and Builtins
Improve from-import error message with location
..
.. bpo: 29478
.. date: 0424
.. nonce: rTQ-qy
.. section: Core and Builtins
If max_line_length=None is specified while using the Compat32 policy, it is
no longer ignored.  Patch by Mircea Cosbuc.
..
.. bpo: 29319
.. date: 0423
.. nonce: KLDUZf
.. section: Core and Builtins
Prevent RunMainFromImporter overwriting sys.path[0].
..
.. bpo: 29337
.. date: 0422
.. nonce: bjX8AE
.. section: Core and Builtins
Fixed possible BytesWarning when compare the code objects. Warnings could be
emitted at compile time.
..
.. bpo: 29327
.. date: 0421
.. nonce: XXQarW
.. section: Core and Builtins
Fixed a crash when pass the iterable keyword argument to sorted().
..
.. bpo: 29034
.. date: 0420
.. nonce: 7-uEDT
.. section: Core and Builtins
Fix memory leak and use-after-free in os module (path_converter).
..
.. bpo: 29159
.. date: 0419
.. nonce: gEn_kP
.. section: Core and Builtins
Fix regression in bytes(x) when x.__index__() raises Exception.
..
.. bpo: 29049
.. date: 0418
.. nonce: KpVXBw
.. section: Core and Builtins
Call _PyObject_GC_TRACK() lazily when calling Python function. Calling
function is up to 5% faster.
..
.. bpo: 28927
.. date: 0417
.. nonce: 9fxf6y
.. section: Core and Builtins
bytes.fromhex() and bytearray.fromhex() now ignore all ASCII whitespace, not
only spaces.  Patch by Robert Xiao.
..
.. bpo: 28932
.. date: 0416
.. nonce: QnLx8A
.. section: Core and Builtins
Do not include <sys/random.h> if it does not exist.
..
.. bpo: 25677
.. date: 0415
.. nonce: RWhZrb
.. section: Core and Builtins
Correct the positioning of the syntax error caret for indented blocks. Based
on patch by Michael Layzell.
..
.. bpo: 29000
.. date: 0414
.. nonce: K6wQ-3
.. section: Core and Builtins
Fixed bytes formatting of octals with zero padding in alternate form.
..
.. bpo: 18896
.. date: 0413
.. nonce: Pqe0bg
.. section: Core and Builtins
Python function can now have more than 255 parameters.
collections.namedtuple() now supports tuples with more than 255 elements.
..
.. bpo: 28596
.. date: 0412
.. nonce: snIJRd
.. section: Core and Builtins
The preferred encoding is UTF-8 on Android. Patch written by Chi Hsuan Yen.
..
.. bpo: 22257
.. date: 0411
.. nonce: 2a8zxB
.. section: Core and Builtins
Clean up interpreter startup (see :pep:`432`).
..
.. bpo: 26919
.. date: 0410
.. nonce: Cm7MSa
.. section: Core and Builtins
On Android, operating system data is now always encoded/decoded to/from
UTF-8, instead of the locale encoding to avoid inconsistencies with
os.fsencode() and os.fsdecode() which are already using UTF-8.
..
.. bpo: 28991
.. date: 0409
.. nonce: lGA0FK
.. section: Core and Builtins
functools.lru_cache() was susceptible to an obscure reentrancy bug
triggerable by a monkey-patched len() function.
..
.. bpo: 28147
.. date: 0408
.. nonce: CnK_xf
.. section: Core and Builtins
Fix a memory leak in split-table dictionaries: setattr() must not convert
combined table into split table. Patch written by INADA Naoki.
..
.. bpo: 28739
.. date: 0407
.. nonce: w1fvhk
.. section: Core and Builtins
f-string expressions are no longer accepted as docstrings and by
ast.literal_eval() even if they do not include expressions.
..
.. bpo: 28512
.. date: 0406
.. nonce: i-pv6d
.. section: Core and Builtins
Fixed setting the offset attribute of SyntaxError by
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
..
.. bpo: 28918
.. date: 0405
.. nonce: SFVuPz
.. section: Core and Builtins
Fix the cross compilation of xxlimited when Python has been built with
Py_DEBUG defined.
..
.. bpo: 23722
.. date: 0404
.. nonce: e8BH5h
.. section: Core and Builtins
Rather than silently producing a class that doesn't support zero-argument
``super()`` in methods, failing to pass the new ``__classcell__`` namespace
entry up to ``type.__new__`` now results in a ``DeprecationWarning`` and a
class that supports zero-argument ``super()``.
..
.. bpo: 28797
.. date: 0403
.. nonce: _A0_Z5
.. section: Core and Builtins
Modifying the class __dict__ inside the __set_name__ method of a descriptor
that is used inside that class no longer prevents calling the __set_name__
method of other descriptors.
..
.. bpo: 28799
.. date: 0402
.. nonce: cP6V1N
.. section: Core and Builtins
Remove the ``PyEval_GetCallStats()`` function and deprecate the untested and
undocumented ``sys.callstats()`` function. Remove the ``CALL_PROFILE``
special build: use the :func:`sys.setprofile` function, :mod:`!cProfile` or
:mod:`!profile` to profile function calls.
..
.. bpo: 12844
.. date: 0401
.. nonce: pdr3gY
.. section: Core and Builtins
More than 255 arguments can now be passed to a function.
..
.. bpo: 28782
.. date: 0400
.. nonce: foJV_E
.. section: Core and Builtins
Fix a bug in the implementation ``yield from`` when checking if the next
instruction is YIELD_FROM. Regression introduced by WORDCODE (issue #26647).
..
.. bpo: 28774
.. date: 0399
.. nonce: cEehAr
.. section: Core and Builtins
Fix error position of the unicode error in ASCII and Latin1 encoders when a
string returned by the error handler contains multiple non-encodable
characters (non-ASCII for the ASCII codec, characters out of the
U+0000-U+00FF range for Latin1).
..
.. bpo: 28731
.. date: 0398
.. nonce: oNF59u
.. section: Core and Builtins
Optimize _PyDict_NewPresized() to create correct size dict. Improve speed of
dict literal with constant keys up to 30%.
..
.. bpo: 28532
.. date: 0397
.. nonce: KEYJny
.. section: Core and Builtins
Show sys.version when -V option is supplied twice.
..
.. bpo: 27100
.. date: 0396
.. nonce: poVjXq
.. section: Core and Builtins
The with-statement now checks for __enter__ before it checks for __exit__.
This gives less confusing error messages when both methods are missing.
Patch by Jonathan Ellington.
..
.. bpo: 28746
.. date: 0395
.. nonce: r5MXdB
.. section: Core and Builtins
Fix the set_inheritable() file descriptor method on platforms that do not
have the ioctl FIOCLEX and FIONCLEX commands.
..
.. bpo: 26920
.. date: 0394
.. nonce: 1URwGb
.. section: Core and Builtins
Fix not getting the locale's charset upon initializing the interpreter, on
platforms that do not have langinfo.
..
.. bpo: 28648
.. date: 0393
.. nonce: z7B52W
.. section: Core and Builtins
Fixed crash in Py_DecodeLocale() in debug build on Mac OS X when decode
astral characters.  Patch by Xiang Zhang.
..
.. bpo: 28665
.. date: 0392
.. nonce: v4nx86
.. section: Core and Builtins
Improve speed of the STORE_DEREF opcode by 40%.
..
.. bpo: 19398
.. date: 0391
.. nonce: RYbEGH
.. section: Core and Builtins
Extra slash no longer added to sys.path components in case of empty
compile-time PYTHONPATH components.
..
.. bpo: 28621
.. date: 0390
.. nonce: eCD7n-
.. section: Core and Builtins
Sped up converting int to float by reusing faster bits counting
implementation.  Patch by Adrian Wielgosik.
..
.. bpo: 28580
.. date: 0389
.. nonce: 8bqBmG
.. section: Core and Builtins
Optimize iterating split table values. Patch by Xiang Zhang.
..
.. bpo: 28583
.. date: 0388
.. nonce: F-QAx1
.. section: Core and Builtins
PyDict_SetDefault didn't combine split table when needed. Patch by Xiang
Zhang.
..
.. bpo: 28128
.. date: 0387
.. nonce: Lc2sFu
.. section: Core and Builtins
Deprecation warning for invalid str and byte escape sequences now prints
better information about where the error occurs. Patch by Serhiy Storchaka
and Eric Smith.
..
.. bpo: 28509
.. date: 0386
.. nonce: _Fa4Uq
.. section: Core and Builtins
dict.update() no longer allocate unnecessary large memory.
..
.. bpo: 28426
.. date: 0385
.. nonce: E_quyK
.. section: Core and Builtins
Fixed potential crash in PyUnicode_AsDecodedObject() in debug build.
..
.. bpo: 28517
.. date: 0384
.. nonce: ExPkm9
.. section: Core and Builtins
Fixed of-by-one error in the peephole optimizer that caused keeping
unreachable code.
..
.. bpo: 28214
.. date: 0383
.. nonce: 6ECJox
.. section: Core and Builtins
Improved exception reporting for problematic __set_name__ attributes.
..
.. bpo: 23782
.. date: 0382
.. nonce: lonDzj
.. section: Core and Builtins
Fixed possible memory leak in _PyTraceback_Add() and exception loss in
PyTraceBack_Here().
..
.. bpo: 28183
.. date: 0381
.. nonce: MJZeNd
.. section: Core and Builtins
Optimize and cleanup dict iteration.
..
.. bpo: 26081
.. date: 0380
.. nonce: _x5vjl
.. section: Core and Builtins
Added C implementation of asyncio.Future. Original patch by Yury Selivanov.
..
.. bpo: 28379
.. date: 0379
.. nonce: DuXlco
.. section: Core and Builtins
Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang
Zhang.
..
.. bpo: 28376
.. date: 0378
.. nonce: oPD-5D
.. section: Core and Builtins
The type of long range iterator is now registered as Iterator. Patch by Oren
Milman.
..
.. bpo: 28376
.. date: 0377
.. nonce: yTEhEo
.. section: Core and Builtins
Creating instances of range_iterator by calling range_iterator type now is
disallowed.  Calling iter() on range instance is the only way. Patch by Oren
Milman.
..
.. bpo: 26906
.. date: 0376
.. nonce: YBjcwI
.. section: Core and Builtins
Resolving special methods of uninitialized type now causes implicit
initialization of the type instead of a fail.
..
.. bpo: 18287
.. date: 0375
.. nonce: k6jffS
.. section: Core and Builtins
PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas
Koep.
..
.. bpo: 24098
.. date: 0374
.. nonce: XqlP_1
.. section: Core and Builtins
Fixed possible crash when AST is changed in process of compiling it.
..
.. bpo: 28201
.. date: 0373
.. nonce: GWUxAy
.. section: Core and Builtins
Dict reduces possibility of 2nd conflict in hash table when hashes have same
lower bits.
..
.. bpo: 28350
.. date: 0372
.. nonce: 8M5Eg9
.. section: Core and Builtins
String constants with null character no longer interned.
..
.. bpo: 26617
.. date: 0371
.. nonce: Gh5LvN
.. section: Core and Builtins
Fix crash when GC runs during weakref callbacks.
..
.. bpo: 27942
.. date: 0370
.. nonce: ZGuhns
.. section: Core and Builtins
String constants now interned recursively in tuples and frozensets.
..
.. bpo: 28289
.. date: 0369
.. nonce: l1kHlV
.. section: Core and Builtins
ImportError.__init__ now resets not specified attributes.
..
.. bpo: 21578
.. date: 0368
.. nonce: GI1bhj
.. section: Core and Builtins
Fixed misleading error message when ImportError called with invalid keyword
args.
..
.. bpo: 28203
.. date: 0367
.. nonce: LRn5vp
.. section: Core and Builtins
Fix incorrect type in complex(1.0, {2:3}) error message. Patch by Soumya
Sharma.
..
.. bpo: 28086
.. date: 0366
.. nonce: JsQPMQ
.. section: Core and Builtins
Single var-positional argument of tuple subtype was passed unscathed to the
C-defined function.  Now it is converted to exact tuple.
..
.. bpo: 28214
.. date: 0365
.. nonce: zQF8Em
.. section: Core and Builtins
Now __set_name__ is looked up on the class instead of the instance.
..
.. bpo: 27955
.. date: 0364
.. nonce: HC4pZ4
.. section: Core and Builtins
Fallback on reading /dev/urandom device when the getrandom() syscall fails
with EPERM, for example when blocked by SECCOMP.
..
.. bpo: 28192
.. date: 0363
.. nonce: eR6stU
.. section: Core and Builtins
Don't import readline in isolated mode.
..
.. bpo: 27441
.. date: 0362
.. nonce: scPKax
.. section: Core and Builtins
Remove some redundant assignments to ob_size in longobject.c. Thanks Oren
Milman.
..
.. bpo: 27222
.. date: 0361
.. nonce: 74PvFk
.. section: Core and Builtins
Clean up redundant code in long_rshift function. Thanks Oren Milman.
..
.. bpo: 0
.. date: 0360
.. nonce: 9EbOiD
.. section: Core and Builtins
Upgrade internal unicode databases to Unicode version 9.0.0.
..
.. bpo: 28131
.. date: 0359
.. nonce: owq0wW
.. section: Core and Builtins
Fix a regression in zipimport's compile_source().  zipimport should use the
same optimization level as the interpreter.
..
.. bpo: 28126
.. date: 0358
.. nonce: Qf6-uQ
.. section: Core and Builtins
Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize
memcpy().
..
.. bpo: 28120
.. date: 0357
.. nonce: e5xc1i
.. section: Core and Builtins
Fix dict.pop() for split dictionary when trying to remove a "pending key"
(Not yet inserted in split-table). Patch by Xiang Zhang.
..
.. bpo: 26182
.. date: 0356
.. nonce: jYlqTO
.. section: Core and Builtins
Raise DeprecationWarning when async and await keywords are used as
variable/attribute/class/function name.
..
.. bpo: 26182
.. date: 0355
.. nonce: a8JXK2
.. section: Core and Builtins
Fix a refleak in code that raises DeprecationWarning.
..
.. bpo: 28721
.. date: 0354
.. nonce: BO9BUF
.. section: Core and Builtins
Fix asynchronous generators aclose() and athrow() to handle
StopAsyncIteration propagation properly.
..
.. bpo: 26110
.. date: 0353
.. nonce: KRaID6
.. section: Core and Builtins
Speed-up method calls: add LOAD_METHOD and CALL_METHOD opcodes.
..
.. bpo: 31499
.. date: 2017-09-18-10-57-04
.. nonce: BydYhf
.. section: Library
xml.etree: Fix a crash when a parser is part of a reference cycle.
..
.. bpo: 31482
.. date: 2017-09-16-01-53-11
.. nonce: 39s5dS
.. section: Library
``random.seed()`` now works with bytes in version=1
..
.. bpo: 28556
.. date: 2017-09-14-11-02-56
.. nonce: EUOiYs
.. section: Library
typing.get_type_hints now finds the right globalns for classes and modules
by default (when no ``globalns`` was specified by the caller).
..
.. bpo: 28556
.. date: 2017-09-13-23-27-39
.. nonce: UmTQvv
.. section: Library
Speed improvements to the ``typing`` module.  Original PRs by Ivan
Levkivskyi and Mitar.
..
.. bpo: 31544
.. date: 2017-09-13-19-55-35
.. nonce: beTh6t
.. section: Library
The C accelerator module of ElementTree ignored exceptions raised when
looking up TreeBuilder target methods in XMLParser().
..
.. bpo: 31234
.. date: 2017-09-13-18-05-56
.. nonce: lGkcPg
.. section: Library
socket.create_connection() now fixes manually a reference cycle: clear the
variable storing the last exception on success.
..
.. bpo: 31457
.. date: 2017-09-13-13-33-39
.. nonce: bIVBtI
.. section: Library
LoggerAdapter objects can now be nested.
..
.. bpo: 31431
.. date: 2017-09-13-07-37-20
.. nonce: dj994R
.. section: Library
SSLContext.check_hostname now automatically sets SSLContext.verify_mode to
ssl.CERT_REQUIRED instead of failing with a ValueError.
..
.. bpo: 31233
.. date: 2017-09-13-02-17-11
.. nonce: r-IPIu
.. section: Library
socketserver.ThreadingMixIn now keeps a list of non-daemonic threads to wait
until all these threads complete in server_close().
..
.. bpo: 28638
.. date: 2017-09-08-14-31-15
.. nonce: lfbVyH
.. section: Library
Changed the implementation strategy for collections.namedtuple() to
substantially reduce the use of exec() in favor of precomputed methods. As a
result, the *verbose* parameter and *_source* attribute are no longer
supported.  The benefits include 1) having a smaller memory footprint for
applications using multiple named tuples, 2) faster creation of the named
tuple class (approx 4x to 6x depending on how it is measured), and 3) minor
speed-ups for instance creation using __new__, _make, and _replace.  (The
primary patch contributor is Jelle Zijlstra with further improvements by
INADA Naoki, Serhiy Storchaka, and Raymond Hettinger.)
..
.. bpo: 31400
.. date: 2017-09-08-14-19-57
.. nonce: YOTPKi
.. section: Library
Improves SSL error handling to avoid losing error numbers.
..
.. bpo: 27629
.. date: 2017-09-07-12-15-56
.. nonce: 7xJXEy
.. section: Library
Make return types of SSLContext.wrap_bio() and SSLContext.wrap_socket()
customizable.
..
.. bpo: 28958
.. date: 2017-09-06-19-41-01
.. nonce: x4-K5F
.. section: Library
ssl.SSLContext() now uses OpenSSL error information when a context cannot be
instantiated.
..
.. bpo: 28182
.. date: 2017-09-06-18-49-16
.. nonce: hRP8Bk
.. section: Library
The SSL module now raises SSLCertVerificationError when OpenSSL fails to
verify the peer's certificate. The exception contains more information about
the error.
..
.. bpo: 27340
.. date: 2017-09-06-06-50-41
.. nonce: GgekV5
.. section: Library
SSLSocket.sendall() now uses memoryview to create slices of data. This fixes
support for all bytes-like object. It is also more efficient and avoids
costly copies.
..
.. bpo: 14191
.. date: 2017-09-05-17-43-00
.. nonce: vhh2xx
.. section: Library
A new function ``argparse.ArgumentParser.parse_intermixed_args`` provides
the ability to parse command lines where there user intermixes options and
positional arguments.
..
.. bpo: 31178
.. date: 2017-09-05-14-55-28
.. nonce: JrSFo7
.. section: Library
Fix string concatenation bug in rare error path in the subprocess module
..
.. bpo: 31350
.. date: 2017-09-05-10-30-48
.. nonce: dXJ-7N
.. section: Library
Micro-optimize :func:`asyncio._get_running_loop` to become up to 10% faster.
..
.. bpo: 31170
.. date: 2017-09-04-23-41-35
.. nonce: QGmJ1t
.. section: Library
expat: Update libexpat from 2.2.3 to 2.2.4. Fix copying of partial
characters for UTF-8 input (libexpat bug 115):
https://github.com/libexpat/libexpat/issues/115
..
.. bpo: 29136
.. date: 2017-09-04-16-39-49
.. nonce: vSn1oR
.. section: Library
Add TLS 1.3 cipher suites and OP_NO_TLSv1_3.
..
.. bpo: 1198569
.. date: 2017-09-04-10-53-06
.. nonce: vhh2nY
.. section: Library
``string.Template`` subclasses can optionally define ``braceidpattern`` if
they want to specify different placeholder patterns inside and outside the
braces.  If None (the default) it falls back to ``idpattern``.
..
.. bpo: 31326
.. date: 2017-09-01-18-48-06
.. nonce: TB05tV
.. section: Library
concurrent.futures.ProcessPoolExecutor.shutdown() now explicitly closes the
call queue. Moreover, shutdown(wait=True) now also join the call queue
thread, to prevent leaking a dangling thread.
..
.. bpo: 27144
.. date: 2017-08-30-11-26-14
.. nonce: PEDJsE
.. section: Library
The ``map()`` and ``as_completed()`` iterators in ``concurrent.futures`` now
avoid keeping a reference to yielded objects.
..
.. bpo: 31281
.. date: 2017-08-29-07-14-14
.. nonce: DcFyNs
.. section: Library
Fix ``fileinput.FileInput(files, inplace=True)`` when ``files`` contain
``pathlib.Path`` objects.
..
.. bpo: 10746
.. date: 2017-08-28-13-01-05
.. nonce: nmAvfu
.. section: Library
Fix ctypes producing wrong :pep:`3118` type codes for integer types.
..
.. bpo: 27584
.. date: 2017-08-24-14-03-14
.. nonce: r11JHZ
.. section: Library
``AF_VSOCK`` has been added to the socket interface which allows
communication between virtual machines and their host.
..
.. bpo: 22536
.. date: 2017-08-23
.. nonce: _narf_
.. section: Library
The subprocess module now sets the filename when FileNotFoundError is raised
on POSIX systems due to the executable or cwd not being found.
..
.. bpo: 29741
.. date: 2017-08-23-00-31-32
.. nonce: EBn_DM
.. section: Library
Update some methods in the _pyio module to also accept integer types. Patch
by Oren Milman.
..
.. bpo: 31249
.. date: 2017-08-22-12-44-48
.. nonce: STPbb9
.. section: Library
concurrent.futures: WorkItem.run() used by ThreadPoolExecutor now breaks a
reference cycle between an exception object and the WorkItem object.
..
.. bpo: 31247
.. date: 2017-08-21-17-50-27
.. nonce: 8S3zJp
.. section: Library
xmlrpc.server now explicitly breaks reference cycles when using
sys.exc_info() in code handling exceptions.
..
.. bpo: 23835
.. date: 2017-08-21-16-06-19
.. nonce: da_4Kz
.. section: Library
configparser: reading defaults in the ``ConfigParser()`` constructor is now
using ``read_dict()``, making its behavior consistent with the rest of the
parser.  Non-string keys and values in the defaults dictionary are now being
implicitly converted to strings.  Patch by James Tocknell.
..
.. bpo: 31238
.. date: 2017-08-21-12-31-53
.. nonce: Gg0LRH
.. section: Library
pydoc: the stop() method of the private ServerThread class now waits until
DocServer.serve_until_quit() completes and then explicitly sets its
docserver attribute to None to break a reference cycle.
..
.. bpo: 5001
.. date: 2017-08-18-17-16-38
.. nonce: gwnthq
.. section: Library
Many asserts in ``multiprocessing`` are now more informative, and some error
types have been changed to more specific ones.
..
.. bpo: 31109
.. date: 2017-08-17-20-29-45
.. nonce: 7qtC64
.. section: Library
Convert zipimport to use Argument Clinic.
..
.. bpo: 30102
.. date: 2017-08-16-21-14-31
.. nonce: 1sPqmc
.. section: Library
The ssl and hashlib modules now call OPENSSL_add_all_algorithms_noconf() on
OpenSSL < 1.1.0. The function detects CPU features and enables optimizations
on some CPU architectures such as POWER8. Patch is based on research from
Gustavo Serra Scalet.
..
.. bpo: 18966
.. date: 2017-08-16-20-28-06
.. nonce: mjHWk2
.. section: Library
Non-daemonic threads created by a multiprocessing.Process are now joined on
child exit.
..
.. bpo: 31183
.. date: 2017-08-13-09-17-01
.. nonce: -2_YGj
.. section: Library
``dis`` now works with asynchronous generator and coroutine objects. Patch by
George Collins based on diagnosis by Luciano Ramalho.
..
.. bpo: 5001
.. date: 2017-08-12-09-25-55
.. nonce: huQi2Y
.. section: Library
There are a number of uninformative asserts in the ``multiprocessing`` module,
as noted in issue 5001. This change fixes two of the most potentially
problematic ones, since they are in error-reporting code, in the
``multiprocessing.managers.convert_to_error`` function. (It also makes more
informative a ValueError message.) The only potentially problematic change
is that the AssertionError is now a TypeError; however, this should also
help distinguish it from an AssertionError being *reported* by the
function/its caller (such as in issue 31169). - Patch by Allen W. Smith
(drallensmith on github).
..
.. bpo: 31185
.. date: 2017-08-11-19-30-00
.. nonce: i6TPgL
.. section: Library
Fixed miscellaneous errors in asyncio speedup module.
..
.. bpo: 31151
.. date: 2017-08-10-13-20-02
.. nonce: 730VBI
.. section: Library
socketserver.ForkingMixIn.server_close() now waits until all child processes
completed to prevent leaking zombie processes.
..
.. bpo: 31072
.. date: 2017-08-09-13-45-23
.. nonce: NLXDPV
.. section: Library
Add an ``include_file`` parameter to ``zipapp.create_archive()``
..
.. bpo: 24700
.. date: 2017-08-08-15-14-34
.. nonce: 44mvNV
.. section: Library
Optimize array.array comparison. It is now from 10x up to 70x faster when
comparing arrays holding values of the same integer type.
..
.. bpo: 31135
.. date: 2017-08-08-14-44-37
.. nonce: HH94xR
.. section: Library
ttk: fix the destroy() method of LabeledScale and OptionMenu classes. Call
the parent destroy() method even if the used attribute doesn't exist. The
LabeledScale.destroy() method now also explicitly clears label and scale
attributes to help the garbage collector to destroy all widgets.
..
.. bpo: 31107
.. date: 2017-08-02-12-48-15
.. nonce: 1t2hn5
.. section: Library
Fix ``copyreg._slotnames()`` mangled attribute calculation for classes whose
name begins with an underscore. Patch by Shane Harvey.
..
.. bpo: 31080
.. date: 2017-08-01-18-26-55
.. nonce: 2CFVCO
.. section: Library
Allow ``logging.config.fileConfig`` to accept kwargs and/or args.
..
.. bpo: 30897
.. date: 2017-08-01-15-56-50
.. nonce: OuT1-Y
.. section: Library
``pathlib.Path`` objects now include an ``is_mount()`` method (only
implemented on POSIX).  This is similar to ``os.path.ismount(p)``. Patch by
Cooper Ry Lees.
..
.. bpo: 31061
.. date: 2017-08-01-09-32-58
.. nonce: husAYX
.. section: Library
Fixed a crash when using asyncio and threads.
..
.. bpo: 30987
.. date: 2017-07-30-22-00-12
.. nonce: 228rW0
.. section: Library
Added support for CAN ISO-TP protocol in the socket module.
..
.. bpo: 30522
.. date: 2017-07-30-10-07-58
.. nonce: gAX1N-
.. section: Library
Added a ``setStream`` method to ``logging.StreamHandler`` to allow the
stream to be set after creation.
..
.. bpo: 30502
.. date: 2017-07-27-11-33-58
.. nonce: GJlfU8
.. section: Library
Fix handling of long oids in ssl.  Based on patch by Christian Heimes.
..
.. bpo: 5288
.. date: 2017-07-26-13-18-29
.. nonce: o_xEGj
.. section: Library
Support tzinfo objects with sub-minute offsets.
..
.. bpo: 30919
.. date: 2017-07-23-11-33-10
.. nonce: 5dYRru
.. section: Library
Fix shared memory performance regression in multiprocessing in 3.x.
Shared memory used anonymous memory mappings in 2.x, while 3.x mmaps actual
files. Try to be careful to do as little disk I/O as possible.
..
.. bpo: 26732
.. date: 2017-07-22-12-12-42
.. nonce: lYLWBH
.. section: Library
Fix too many fds in processes started with the "forkserver" method.
A child process would inherit as many fds as the number of still-running
children.
..
.. bpo: 29403
.. date: 2017-07-20-02-29-49
.. nonce: 3RinCV
.. section: Library
Fix ``unittest.mock``'s autospec to not fail on method-bound builtin
functions.  Patch by Aaron Gallagher.
..
.. bpo: 30961
.. date: 2017-07-18-23-47-51
.. nonce: 064jz0
.. section: Library
Fix decrementing a borrowed reference in tracemalloc.
..
.. bpo: 19896
.. date: 2017-07-18-13-24-50
.. nonce: -S0IWu
.. section: Library
Fix multiprocessing.sharedctypes to recognize typecodes ``'q'`` and ``'Q'``.
..
.. bpo: 30946
.. date: 2017-07-17-12-32-47
.. nonce: DUo-uA
.. section: Library
Remove obsolete code in readline module for platforms where GNU readline is
older than 2.1 or where select() is not available.
..
.. bpo: 25684
.. date: 2017-07-17-11-35-00
.. nonce: usELVx
.. section: Library
Change ``ttk.OptionMenu`` radiobuttons to be unique across instances of
``OptionMenu``.
..
.. bpo: 30886
.. date: 2017-07-10-12-14-22
.. nonce: nqQj34
.. section: Library
Fix multiprocessing.Queue.join_thread(): it now waits until the thread
completes, even if the thread was started by the same process which created
the queue.
..
.. bpo: 29854
.. date: 2017-07-07-02-18-57
.. nonce: J8wKb_
.. section: Library
Fix segfault in readline when using readline's history-size option.  Patch
by Nir Soffer.
..
.. bpo: 30794
.. date: 2017-07-04-22-00-20
.. nonce: qFwozm
.. section: Library
Added multiprocessing.Process.kill method to terminate using the SIGKILL
signal on Unix.
..
.. bpo: 30319
.. date: 2017-07-04-13-48-21
.. nonce: hg_3TX
.. section: Library
socket.close() now ignores ECONNRESET error.
..
.. bpo: 30828
.. date: 2017-07-04-13-10-52
.. nonce: CLvEvV
.. section: Library
Fix out of bounds write in ``asyncio.CFuture.remove_done_callback()``.
..
.. bpo: 30302
.. date: 2017-06-30-23-05-47
.. nonce: itwK_k
.. section: Library
Use keywords in the ``repr`` of ``datetime.timedelta``.
..
.. bpo: 30807
.. date: 2017-06-29-22-04-44
.. nonce: sLtjY-
.. section: Library
signal.setitimer() may disable the timer when passed a tiny value.
Tiny values (such as 1e-6) are valid non-zero values for setitimer(), which
is specified as taking microsecond-resolution intervals. However, on some
platform, our conversion routine could convert 1e-6 into a zero interval,
therefore disabling the timer instead of (re-)scheduling it.
..
.. bpo: 30441
.. date: 2017-06-29-14-25-14
.. nonce: 3Wh9kc
.. section: Library
Fix bug when modifying os.environ while iterating over it
..
.. bpo: 29585
.. date: 2017-06-29-00-17-38
.. nonce: x2V0my
.. section: Library
Avoid importing ``sysconfig`` from ``site`` to improve startup speed. Python
startup is about 5% faster on Linux and 30% faster on macOS.
..
.. bpo: 29293
.. date: 2017-06-29-00-07-22
.. nonce: Z6WZjD
.. section: Library
Add missing parameter "n" on multiprocessing.Condition.notify().
The doc claims multiprocessing.Condition behaves like threading.Condition,
but its notify() method lacked the optional "n" argument (to specify the
number of sleepers to wake up) that threading.Condition.notify() accepts.
..
.. bpo: 30532
.. date: 2017-06-26-11-01-59
.. nonce: qTeL1o
.. section: Library
Fix email header value parser dropping folding white space in certain cases.
..
.. bpo: 30596
.. date: 2017-06-24-18-55-58
.. nonce: VhB8iG
.. section: Library
Add a ``close()`` method to ``multiprocessing.Process``.
..
.. bpo: 9146
.. date: 2017-05-24-00-00-00
.. nonce: pinky_
.. section: Library
Fix a segmentation fault in _hashopenssl when standard hash functions such
as md5 are not available in the linked OpenSSL library.  As in some special
FIPS-140 build environments.
..
.. bpo: 29169
.. date: 0352
.. nonce: 8ypApm
.. section: Library
Update zlib to 1.2.11.
..
.. bpo: 30119
.. date: 0351
.. nonce: 4UMLNh
.. section: Library
ftplib.FTP.putline() now throws ValueError on commands that contains CR or
LF. Patch by Donghee Na.
..
.. bpo: 30879
.. date: 0350
.. nonce: N3KI-o
.. section: Library
os.listdir() and os.scandir() now emit bytes names when called with
bytes-like argument.
..
.. bpo: 30746
.. date: 0349
.. nonce: 7drQI0
.. section: Library
Prohibited the '=' character in environment variable names in
``os.putenv()`` and ``os.spawn*()``.
..
.. bpo: 30664
.. date: 0348
.. nonce: oyqiUl
.. section: Library
The description of a unittest subtest now preserves the order of keyword
arguments of TestCase.subTest().
..
.. bpo: 21071
.. date: 0346
.. nonce: Sw37rs
.. section: Library
struct.Struct.format type is now :class:`str` instead of :class:`bytes`.
..
.. bpo: 29212
.. date: 0345
.. nonce: HmTdef
.. section: Library
Fix concurrent.futures.thread.ThreadPoolExecutor threads to have a non
repr() based thread name by default when no thread_name_prefix is supplied.
They will now identify themselves as "ThreadPoolExecutor-y_n".
..
.. bpo: 29755
.. date: 0343
.. nonce: diQcY_
.. section: Library
Fixed the lgettext() family of functions in the gettext module. They now
always return bytes.
..
.. bpo: 30616
.. date: 0341
.. nonce: I2mDTz
.. section: Library
Functional API of enum allows to create empty enums. Patched by Donghee Na
..
.. bpo: 30038
.. date: 0340
.. nonce: vb4DWk
.. section: Library
Fix race condition between signal delivery and wakeup file descriptor. Patch
by Nathaniel Smith.
..
.. bpo: 23894
.. date: 0339
.. nonce: k2pADV
.. section: Library
lib2to3 now recognizes ``rb'...'`` and ``f'...'`` strings.
..
.. bpo: 24744
.. date: 0337
.. nonce: NKxUj3
.. section: Library
pkgutil.walk_packages function now raises ValueError if *path* is a string.
Patch by Sanyam Khurana.
..
.. bpo: 24484
.. date: 0336
.. nonce: vFem8K
.. section: Library
Avoid race condition in multiprocessing cleanup.
..
.. bpo: 30589
.. date: 0335
.. nonce: xyZGM0
.. section: Library
Fix multiprocessing.Process.exitcode to return the opposite of the signal
number when the process is killed by a signal (instead of 255) when using
the "forkserver" method.
..
.. bpo: 28994
.. date: 0334
.. nonce: 9vzun1
.. section: Library
The traceback no longer displayed for SystemExit raised in a callback
registered by atexit.
..
.. bpo: 30508
.. date: 0333
.. nonce: wNWRS2
.. section: Library
Don't log exceptions if Task/Future "cancel()" method was called.
..
.. bpo: 30645
.. date: 0332
.. nonce: xihJ4Y
.. section: Library
Fix path calculation in ``imp.load_package()``, fixing it for cases when a
package is only shipped with bytecodes. Patch by Alexandru Ardelean.
..
.. bpo: 11822
.. date: 0331
.. nonce: GQmKw3
.. section: Library
The dis.dis() function now is able to disassemble nested code objects.
..
.. bpo: 30624
.. date: 0330
.. nonce: g5oVSn
.. section: Library
selectors does not take KeyboardInterrupt and SystemExit into account,
leaving a fd in a bad state in case of error. Patch by Giampaolo Rodola'.
..
.. bpo: 30595
.. date: 0329
.. nonce: d0nRRA
.. section: Library
multiprocessing.Queue.get() with a timeout now polls its reader in
non-blocking mode if it succeeded to acquire the lock but the acquire took
longer than the timeout.
..
.. bpo: 28556
.. date: 0328
.. nonce: mESP7G
.. section: Library
Updates to typing module: Add generic AsyncContextManager, add support for
ContextManager on all versions. Original PRs by Jelle Zijlstra and Ivan
Levkivskyi
..
.. bpo: 30605
.. date: 0327
.. nonce: XqGz1r
.. section: Library
re.compile() no longer raises a BytesWarning when compiling a bytes instance
with misplaced inline modifier.  Patch by Roy Williams.
..
.. bpo: 29870
.. date: 0326
.. nonce: p960Ih
.. section: Library
Fix ssl sockets leaks when connection is aborted in asyncio/ssl
implementation. Patch by Michaël Sghaïer.
..
.. bpo: 29743
.. date: 0325
.. nonce: en2P4s
.. section: Library
Closing transport during handshake process leaks open socket. Patch by
Nikolay Kim
..
.. bpo: 27585
.. date: 0324
.. nonce: 0Ugqqu
.. section: Library
Fix waiter cancellation in asyncio.Lock. Patch by Mathieu Sornay.
..
.. bpo: 30014
.. date: 0323
.. nonce: x7Yx6o
.. section: Library
modify() method of poll(), epoll() and devpoll() based classes of selectors
module is around 10% faster.  Patch by Giampaolo Rodola'.
..
.. bpo: 30418
.. date: 0322
.. nonce: EwISQm
.. section: Library
On Windows, subprocess.Popen.communicate() now also ignore EINVAL on
stdin.write() if the child process is still running but closed the pipe.
..
.. bpo: 30463
.. date: 0321
.. nonce: CdOuSl
.. section: Library
Added empty __slots__ to abc.ABC.  This allows subclassers to deny __dict__
and __weakref__ creation.  Patch by Aaron Hall.
..
.. bpo: 30520
.. date: 0320
.. nonce: VYzaSn
.. section: Library
Loggers are now pickleable.
..
.. bpo: 30557
.. date: 0319
.. nonce: uykrLf
.. section: Library
faulthandler now correctly filters and displays exception codes on Windows
..
.. bpo: 30526
.. date: 0318
.. nonce: 7zTG30
.. section: Library
Add TextIOWrapper.reconfigure() and a TextIOWrapper.write_through attribute.
..
.. bpo: 30245
.. date: 0317
.. nonce: Xoa_8Y
.. section: Library
Fix possible overflow when organize struct.pack_into error message.  Patch
by Yuan Liu.
..
.. bpo: 30378
.. date: 0316
.. nonce: R_19_5
.. section: Library
Fix the problem that logging.handlers.SysLogHandler cannot handle IPv6
addresses.
..
.. bpo: 16500
.. date: 0315
.. nonce: 9ypo9k
.. section: Library
Allow registering at-fork handlers.
..
.. bpo: 30470
.. date: 0314
.. nonce: wAYhUc
.. section: Library
Deprecate invalid ctypes call protection on Windows.  Patch by Mariatta
Wijaya.
..
.. bpo: 30414
.. date: 0313
.. nonce: jGl1Lb
.. section: Library
multiprocessing.Queue._feed background running thread do not break from main
loop on exception.
..
.. bpo: 30003
.. date: 0312
.. nonce: BOl9HE
.. section: Library
Fix handling escape characters in HZ codec.  Based on patch by Ma Lin.
..
.. bpo: 30149
.. date: 0311
.. nonce: hE649r
.. section: Library
inspect.signature() now supports callables with variable-argument parameters
wrapped with partialmethod. Patch by Donghee Na.
..
.. bpo: 30436
.. date: 0310
.. nonce: b3zqE7
.. section: Library
importlib.find_spec() raises ModuleNotFoundError instead of AttributeError
if the specified parent module is not a package (i.e. lacks a __path__
attribute).
..
.. bpo: 30301
.. date: 0309
.. nonce: ywOkjN
.. section: Library
Fix AttributeError when using SimpleQueue.empty() under *spawn* and
*forkserver* start methods.
..
.. bpo: 30375
.. date: 0308
.. nonce: 9c8qM7
.. section: Library
Warnings emitted when compile a regular expression now always point to the
line in the user code.  Previously they could point into inners of the re
module if emitted from inside of groups or conditionals.
..
.. bpo: 30329
.. date: 0307
.. nonce: EuT36N
.. section: Library
imaplib and poplib now catch the Windows socket WSAEINVAL error (code 10022)
on shutdown(SHUT_RDWR): An invalid operation was attempted. This error
occurs sometimes on SSL connections.
..
.. bpo: 29196
.. date: 0306
.. nonce: qBq9eB
.. section: Library
Removed previously deprecated in Python 2.4 classes Plist, Dict and
_InternalDict in the plistlib module.  Dict values in the result of
functions readPlist() and readPlistFromBytes() are now normal dicts.  You no
longer can use attribute access to access items of these dictionaries.
..
.. bpo: 9850
.. date: 0305
.. nonce: c6SMxt
.. section: Library
The :mod:`macpath` is now deprecated and will be removed in Python 3.8.
..
.. bpo: 30299
.. date: 0304
.. nonce: O-5d4A
.. section: Library
Compiling regular expression in debug mode on CPython now displays the
compiled bytecode in human readable form.
..
.. bpo: 30048
.. date: 0303
.. nonce: ELRx8R
.. section: Library
Fixed ``Task.cancel()`` can be ignored when the task is running coroutine
and the coroutine returned without any more ``await``.
..
.. bpo: 30266
.. date: 0302
.. nonce: YJzHAH
.. section: Library
contextlib.AbstractContextManager now supports anti-registration by setting
__enter__ = None or __exit__ = None, following the pattern introduced in
bpo-25958. Patch by Jelle Zijlstra.
..
.. bpo: 30340
.. date: 0301
.. nonce: kvtGm-
.. section: Library
Enhanced regular expressions optimization. This increased the performance of
matching some patterns up to 25 times.
..
.. bpo: 30298
.. date: 0300
.. nonce: ZN-bWo
.. section: Library
Weaken the condition of deprecation warnings for inline modifiers. Now
allowed several subsequential inline modifiers at the start of the pattern
(e.g. ``'(?i)(?s)...'``).  In verbose mode whitespaces and comments now are
allowed before and between inline modifiers (e.g. ``'(?x) (?i) (?s)...'``).
..
.. bpo: 30285
.. date: 0299
.. nonce: s1vpsO
.. section: Library
Optimized case-insensitive matching and searching of regular expressions.
..
.. bpo: 29990
.. date: 0298
.. nonce: HWV6KE
.. section: Library
Fix range checking in GB18030 decoder.  Original patch by Ma Lin.
..
.. bpo: 29979
.. date: 0297
.. nonce: jGBMyE
.. section: Library
rewrite cgi.parse_multipart, reusing the FieldStorage class and making its
results consistent with those of FieldStorage for multipart/form-data
requests. Patch by Pierre Quentel.
..
.. bpo: 30243
.. date: 0296
.. nonce: RHQt0v
.. section: Library
Removed the __init__ methods of _json's scanner and encoder. Misusing them
could cause memory leaks or crashes.  Now scanner and encoder objects are
completely initialized in the __new__ methods.
..
.. bpo: 30215
.. date: 0295
.. nonce: SY8738
.. section: Library
Compiled regular expression objects with the re.LOCALE flag no longer depend
on the locale at compile time.  Only the locale at matching time affects the
result of matching.
..
.. bpo: 30185
.. date: 0294
.. nonce: Tiu1n8
.. section: Library
Avoid KeyboardInterrupt tracebacks in forkserver helper process when Ctrl-C
is received.
..
.. bpo: 30103
.. date: 0293
.. nonce: mmPjf5
.. section: Library
binascii.b2a_uu() and uu.encode() now support using ``'`'`` as zero instead
of space.
..
.. bpo: 28556
.. date: 0292
.. nonce: 51gjbP
.. section: Library
Various updates to typing module: add typing.NoReturn type, use
WrapperDescriptorType, minor bug-fixes.  Original PRs by Jim
Fasarakis-Hilliard and Ivan Levkivskyi.
..
.. bpo: 30205
.. date: 0291
.. nonce: BsxO34
.. section: Library
Fix getsockname() for unbound AF_UNIX sockets on Linux.
..
.. bpo: 30228
.. date: 0290
.. nonce: nF8Ov4
.. section: Library
The seek() and tell() methods of io.FileIO now set the internal seekable
attribute to avoid one syscall on open() (in buffered or text mode).
..
.. bpo: 30190
.. date: 0289
.. nonce: 5E7Hyb
.. section: Library
unittest's assertAlmostEqual and assertNotAlmostEqual provide a better
message in case of failure which includes the difference between left and
right arguments.  (patch by Giampaolo Rodola')
..
.. bpo: 30101
.. date: 0288
.. nonce: hxUqSL
.. section: Library
Add support for curses.A_ITALIC.
..
.. bpo: 29822
.. date: 0287
.. nonce: G7dX13
.. section: Library
inspect.isabstract() now works during __init_subclass__.  Patch by Nate
Soares.
..
.. bpo: 29960
.. date: 0286
.. nonce: g0wr3r
.. section: Library
Preserve generator state when _random.Random.setstate() raises an exception.
Patch by Bryan Olson.
..
.. bpo: 30070
.. date: 0285
.. nonce: XM_B41
.. section: Library
Fixed leaks and crashes in errors handling in the parser module.
..
.. bpo: 22352
.. date: 0284
.. nonce: gIQ5qC
.. section: Library
Column widths in the output of dis.dis() are now adjusted for large line
numbers and instruction offsets.
..
.. bpo: 30061
.. date: 0283
.. nonce: 2w_dX9
.. section: Library
Fixed crashes in IOBase methods __next__() and readlines() when readline()
or __next__() respectively return non-sizeable object. Fixed possible other
errors caused by not checking results of PyObject_Size(), PySequence_Size(),
or PyMapping_Size().
..
.. bpo: 30218
.. date: 0282
.. nonce: ab5oIg
.. section: Library
Fix PathLike support for shutil.unpack_archive. Patch by Jelle Zijlstra.
..
.. bpo: 10076
.. date: 0281
.. nonce: qCnwly
.. section: Library
Compiled regular expression and match objects in the re module now support
copy.copy() and copy.deepcopy() (they are considered atomic).
..
.. bpo: 30068
.. date: 0280
.. nonce: n4q47r
.. section: Library
_io._IOBase.readlines will check if it's closed first when hint is present.
..
.. bpo: 29694
.. date: 0279
.. nonce: LWKxb1
.. section: Library
Fixed race condition in pathlib mkdir with flags parents=True.  Patch by
Armin Rigo.
..
.. bpo: 29692
.. date: 0278
.. nonce: oyWrAE
.. section: Library
Fixed arbitrary unchaining of RuntimeError exceptions in
contextlib.contextmanager.  Patch by Siddharth Velankar.
..
.. bpo: 26187
.. date: 0277
.. nonce: aViyiR
.. section: Library
Test that sqlite3 trace callback is not called multiple times when schema is
changing.  Indirectly fixed by switching to use sqlite3_prepare_v2() in
bpo-9303.  Patch by Aviv Palivoda.
..
.. bpo: 30017
.. date: 0276
.. nonce: cKBuhU
.. section: Library
Allowed calling the close() method of the zip entry writer object multiple
times.  Writing to a closed writer now always produces a ValueError.
..
.. bpo: 29998
.. date: 0275
.. nonce: poeIKD
.. section: Library
Pickling and copying ImportError now preserves name and path attributes.
..
.. bpo: 29995
.. date: 0274
.. nonce: b3mOqx
.. section: Library
re.escape() now escapes only regex special characters.
..
.. bpo: 29962
.. date: 0273
.. nonce: r-ibsN
.. section: Library
Add math.remainder operation, implementing remainder as specified in IEEE
754.
..
.. bpo: 29649
.. date: 0272
.. nonce: 2eIxQ8
.. section: Library
Improve struct.pack_into() exception messages for problems with the buffer
size and offset.  Patch by Andrew Nester.
..
.. bpo: 29654
.. date: 0271
.. nonce: xRFPge
.. section: Library
Support If-Modified-Since HTTP header (browser cache).  Patch by Pierre
Quentel.
..
.. bpo: 29931
.. date: 0270
.. nonce: tfcTwK
.. section: Library
Fixed comparison check for ipaddress.ip_interface objects. Patch by Sanjay
Sundaresan.
..
.. bpo: 29953
.. date: 0269
.. nonce: Q1hSt-
.. section: Library
Fixed memory leaks in the replace() method of datetime and time objects when
pass out of bound fold argument.
..
.. bpo: 29942
.. date: 0268
.. nonce: CsGNuT
.. section: Library
Fix a crash in itertools.chain.from_iterable when encountering long runs of
empty iterables.
..
.. bpo: 10030
.. date: 0267
.. nonce: ZdhU3k
.. section: Library
Sped up reading encrypted ZIP files by 2 times.
..
.. bpo: 29204
.. date: 0266
.. nonce: 8Hbqn2
.. section: Library
Element.getiterator() and the html parameter of XMLParser() were deprecated
only in the documentation (since Python 3.2 and 3.4 correspondingly). Now
using them emits a deprecation warning.
..
.. bpo: 27863
.. date: 0265
.. nonce: pPYHHI
.. section: Library
Fixed multiple crashes in ElementTree caused by race conditions and wrong
types.
..
.. bpo: 25996
.. date: 0264
.. nonce: L2_giP
.. section: Library
Added support of file descriptors in os.scandir() on Unix. os.fwalk() is
sped up by 2 times by using os.scandir().
..
.. bpo: 28699
.. date: 0263
.. nonce: wZztZP
.. section: Library
Fixed a bug in pools in multiprocessing.pool that raising an exception at
the very first of an iterable may swallow the exception or make the program
hang. Patch by Davin Potts and Xiang Zhang.
..
.. bpo: 23890
.. date: 0262
.. nonce: GCFAAZ
.. section: Library
unittest.TestCase.assertRaises() now manually breaks a reference cycle to
not keep objects alive longer than expected.
..
.. bpo: 29901
.. date: 0261
.. nonce: QdgMvW
.. section: Library
The zipapp module now supports general path-like objects, not just
pathlib.Path.
..
.. bpo: 25803
.. date: 0260
.. nonce: CPDR0W
.. section: Library
Avoid incorrect errors raised by Path.mkdir(exist_ok=True) when the OS gives
priority to errors such as EACCES over EEXIST.
..
.. bpo: 29861
.. date: 0259
.. nonce: t2ZoRK
.. section: Library
Release references to tasks, their arguments and their results as soon as
they are finished in multiprocessing.Pool.
..
.. bpo: 19930
.. date: 0258
.. nonce: QCjO6A
.. section: Library
The mode argument of os.makedirs() no longer affects the file permission
bits of newly created intermediate-level directories.
..
.. bpo: 29884
.. date: 0257
.. nonce: kWXR8W
.. section: Library
faulthandler: Restore the old sigaltstack during teardown. Patch by
Christophe Zeitouny.
..
.. bpo: 25455
.. date: 0256
.. nonce: ZsahHN
.. section: Library
Fixed crashes in repr of recursive buffered file-like objects.
..
.. bpo: 29800
.. date: 0255
.. nonce: d2xASa
.. section: Library
Fix crashes in partial.__repr__ if the keys of partial.keywords are not
strings.  Patch by Michael Seifert.
..
.. bpo: 8256
.. date: 0254
.. nonce: jAwGQH
.. section: Library
Fixed possible failing or crashing input() if attributes "encoding" or
"errors" of sys.stdin or sys.stdout are not set or are not strings.
..
.. bpo: 28692
.. date: 0253
.. nonce: CDt-Gb
.. section: Library
Using non-integer value for selecting a plural form in gettext is now
deprecated.
..
.. bpo: 26121
.. date: 0252
.. nonce: LX-pQA
.. section: Library
Use C library implementation for math functions erf() and erfc().
..
.. bpo: 29619
.. date: 0251
.. nonce: WIGVxO
.. section: Library
os.stat() and os.DirEntry.inode() now convert inode (st_ino) using unsigned
integers.
..
.. bpo: 28298
.. date: 0250
.. nonce: PNOPsT
.. section: Library
Fix a bug that prevented array 'Q', 'L' and 'I' from accepting big intables
(objects that have __int__) as elements.
..
.. bpo: 29645
.. date: 0249
.. nonce: XCxTHM
.. section: Library
Speed up importing the webbrowser module.  webbrowser.register() is now
thread-safe.
..
.. bpo: 28231
.. date: 0248
.. nonce: MG1X09
.. section: Library
The zipfile module now accepts path-like objects for external paths.
..
.. bpo: 26915
.. date: 0247
.. nonce: qShJZO
.. section: Library
index() and count() methods of collections.abc.Sequence now check identity
before checking equality when do comparisons.
..
.. bpo: 28682
.. date: 0246
.. nonce: hUxdej
.. section: Library
Added support for bytes paths in os.fwalk().
..
.. bpo: 29728
.. date: 0245
.. nonce: 37jMwb
.. section: Library
Add new :const:`socket.TCP_NOTSENT_LOWAT` (Linux 3.12) constant. Patch by
Nathaniel J. Smith.
..
.. bpo: 29623
.. date: 0244
.. nonce: D3-NP2
.. section: Library
Allow use of path-like object as a single argument in ConfigParser.read().
Patch by David Ellis.
..
.. bpo: 9303
.. date: 0243
.. nonce: kDZRSd
.. section: Library
Migrate sqlite3 module to _v2 API.  Patch by Aviv Palivoda.
..
.. bpo: 28963
.. date: 0242
.. nonce: tPl8dq
.. section: Library
Fix out of bound iteration in asyncio.Future.remove_done_callback
implemented in C.
..
.. bpo: 29704
.. date: 0241
.. nonce: WHbx27
.. section: Library
asyncio.subprocess.SubprocessStreamProtocol no longer closes before all
pipes are closed.
..
.. bpo: 29271
.. date: 0240
.. nonce: y8Vj2v
.. section: Library
Fix Task.current_task and Task.all_tasks implemented in C to accept None
argument as their pure Python implementation.
..
.. bpo: 29703
.. date: 0239
.. nonce: ZdsPCR
.. section: Library
Fix asyncio to support instantiation of new event loops in child processes.
..
.. bpo: 29615
.. date: 0238
.. nonce: OpFKzg
.. section: Library
SimpleXMLRPCDispatcher no longer chains KeyError (or any other exception) to
exception(s) raised in the dispatched methods. Patch by Petr Motejlek.
..
.. bpo: 7769
.. date: 0237
.. nonce: xGRJWh
.. section: Library
Method register_function() of xmlrpc.server.SimpleXMLRPCDispatcher and its
subclasses can now be used as a decorator.
..
.. bpo: 29376
.. date: 0236
.. nonce: rrJhJy
.. section: Library
Fix assertion error in threading._DummyThread.is_alive().
..
.. bpo: 28624
.. date: 0235
.. nonce: 43TJib
.. section: Library
Add a test that checks that cwd parameter of Popen() accepts PathLike
objects.  Patch by Sayan Chowdhury.
..
.. bpo: 28518
.. date: 0234
.. nonce: o-Q2Nw
.. section: Library
Start a transaction implicitly before a DML statement. Patch by Aviv
Palivoda.
..
.. bpo: 29742
.. date: 0233
.. nonce: 8hqfEO
.. section: Library
get_extra_info() raises exception if get called on closed ssl transport.
Patch by Nikolay Kim.
..
.. bpo: 16285
.. date: 0232
.. nonce: 4f5gbp
.. section: Library
urllib.parse.quote is now based on RFC 3986 and hence includes '~' in the
set of characters that is not quoted by default. Patch by Christian Theune
and Ratnadeep Debnath.
..
.. bpo: 29532
.. date: 0231
.. nonce: YCwVQn
.. section: Library
Altering a kwarg dictionary passed to functools.partial() no longer affects
a partial object after creation.
..
.. bpo: 29110
.. date: 0230
.. nonce: wmE-_T
.. section: Library
Fix file object leak in aifc.open() when file is given as a filesystem path
and is not in valid AIFF format. Patch by Anthony Zhang.
..
.. bpo: 22807
.. date: 0229
.. nonce: VmoSkZ
.. section: Library
Add uuid.SafeUUID and uuid.UUID.is_safe to relay information from the
platform about whether generated UUIDs are generated with a multiprocessing
safe method.
..
.. bpo: 29576
.. date: 0228
.. nonce: F-b8_5
.. section: Library
Improve some deprecations in importlib. Some deprecated methods now emit
DeprecationWarnings and have better descriptive messages.
..
.. bpo: 29534
.. date: 0227
.. nonce: Ug3HPU
.. section: Library
Fixed different behaviour of Decimal.from_float() for _decimal and
_pydecimal. Thanks Andrew Nester.
..
.. bpo: 10379
.. date: 0226
.. nonce: mRlZsT
.. section: Library
locale.format_string now supports the 'monetary' keyword argument, and
locale.format is deprecated.
..
.. bpo: 29851
.. date: 0225
.. nonce: jqs_5s
.. section: Library
importlib.reload() now raises ModuleNotFoundError if the module lacks a
spec.
..
.. bpo: 28556
.. date: 0224
.. nonce: p6967e
.. section: Library
Various updates to typing module: typing.Counter, typing.ChainMap, improved
ABC caching, etc. Original PRs by Jelle Zijlstra, Ivan Levkivskyi, Manuel
Krebber, and Łukasz Langa.
..
.. bpo: 29100
.. date: 0223
.. nonce: LAAERS
.. section: Library
Fix datetime.fromtimestamp() regression introduced in Python 3.6.0: check
minimum and maximum years.
..
.. bpo: 29416
.. date: 0222
.. nonce: KJGyI_
.. section: Library
Prevent infinite loop in pathlib.Path.mkdir
..
.. bpo: 29444
.. date: 0221
.. nonce: cEwgmk
.. section: Library
Fixed out-of-bounds buffer access in the group() method of the match object.
Based on patch by WGH.
..
.. bpo: 29377
.. date: 0220
.. nonce: 4AvSrC
.. section: Library
Add WrapperDescriptorType, MethodWrapperType, and MethodDescriptorType
built-in types to types module. Original patch by Manuel Krebber.
..
.. bpo: 29218
.. date: 0219
.. nonce: -Qoti0
.. section: Library
Unused install_misc command is now removed.  It has been documented as
unused since 2000.  Patch by Eric N. Vander Weele.
..
.. bpo: 29368
.. date: 0218
.. nonce: nTtA_V
.. section: Library
The extend() method is now called instead of the append() method when
unpickle collections.deque and other list-like objects. This can speed up
unpickling to 2 times.
..
.. bpo: 29338
.. date: 0217
.. nonce: EpvQJl
.. section: Library
The help of a builtin or extension class now includes the constructor
signature if __text_signature__ is provided for the class.
..
.. bpo: 29335
.. date: 0216
.. nonce: _KC7IK
.. section: Library
Fix subprocess.Popen.wait() when the child process has exited to a stopped
instead of terminated state (ex: when under ptrace).
..
.. bpo: 29290
.. date: 0215
.. nonce: XBqptF
.. section: Library
Fix a regression in argparse that help messages would wrap at non-breaking
spaces.
..
.. bpo: 28735
.. date: 0214
.. nonce: admHLO
.. section: Library
Fixed the comparison of mock.MagickMock with mock.ANY.
..
.. bpo: 29197
.. date: 0213
.. nonce: sZssFZ
.. section: Library
Removed deprecated function ntpath.splitunc().
..
.. bpo: 29210
.. date: 0212
.. nonce: y1UHWf
.. section: Library
Removed support of deprecated argument "exclude" in tarfile.TarFile.add().
..
.. bpo: 29219
.. date: 0211
.. nonce: kxui7t
.. section: Library
Fixed infinite recursion in the repr of uninitialized ctypes.CDLL instances.
..
.. bpo: 29192
.. date: 0210
.. nonce: mY31H8
.. section: Library
Removed deprecated features in the http.cookies module.
..
.. bpo: 29193
.. date: 0209
.. nonce: CgcjEx
.. section: Library
A format string argument for string.Formatter.format() is now
positional-only.
..
.. bpo: 29195
.. date: 0208
.. nonce: vK5LjU
.. section: Library
Removed support of deprecated undocumented keyword arguments in methods of
regular expression objects.
..
.. bpo: 28969
.. date: 0207
.. nonce: j3HJYO
.. section: Library
Fixed race condition in C implementation of functools.lru_cache. KeyError
could be raised when cached function with full cache was simultaneously
called from different threads with the same uncached arguments.
..
.. bpo: 20804
.. date: 0206
.. nonce: XyZhvi
.. section: Library
The unittest.mock.sentinel attributes now preserve their identity when they
are copied or pickled.
..
.. bpo: 29142
.. date: 0205
.. nonce: xo6kAv
.. section: Library
In urllib.request, suffixes in no_proxy environment variable with leading
dots could match related hostnames again (e.g. .b.c matches a.b.c). Patch by
Milan Oberkirch.
..
.. bpo: 28961
.. date: 0204
.. nonce: Rt93vg
.. section: Library
Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
Patch written by Jiajun Huang.
..
.. bpo: 15812
.. date: 0203
.. nonce: R1U-Ec
.. section: Library
inspect.getframeinfo() now correctly shows the first line of a context.
Patch by Sam Breese.
..
.. bpo: 28985
.. date: 0202
.. nonce: TMWJFg
.. section: Library
Update authorizer constants in sqlite3 module. Patch by Dingyuan Wang.
..
.. bpo: 29079
.. date: 0201
.. nonce: g4YLix
.. section: Library
Prevent infinite loop in pathlib.resolve() on Windows
..
.. bpo: 13051
.. date: 0200
.. nonce: YzC1Te
.. section: Library
Fixed recursion errors in large or resized curses.textpad.Textbox.  Based on
patch by Tycho Andersen.
..
.. bpo: 9770
.. date: 0199
.. nonce: WJJnwP
.. section: Library
curses.ascii predicates now work correctly with negative integers.
..
.. bpo: 28427
.. date: 0198
.. nonce: vUd-va
.. section: Library
old keys should not remove new values from WeakValueDictionary when
collecting from another thread.
..
.. bpo: 28923
.. date: 0197
.. nonce: naVULD
.. section: Library
Remove editor artifacts from Tix.py.
..
.. bpo: 28871
.. date: 0196
.. nonce: cPMXCJ
.. section: Library
Fixed a crash when deallocate deep ElementTree.
..
.. bpo: 19542
.. date: 0195
.. nonce: 5tCkaK
.. section: Library
Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop()
when a GC collection happens in another thread.
..
.. bpo: 20191
.. date: 0194
.. nonce: Q7uZCS
.. section: Library
Fixed a crash in resource.prlimit() when passing a sequence that doesn't own
its elements as limits.
..
.. bpo: 16255
.. date: 0193
.. nonce: p2YA85
.. section: Library
subprocess.Popen uses /system/bin/sh on Android as the shell, instead of
/bin/sh.
..
.. bpo: 28779
.. date: 0192
.. nonce: t-mjED
.. section: Library
multiprocessing.set_forkserver_preload() would crash the forkserver process
if a preloaded module instantiated some multiprocessing objects such as
locks.
..
.. bpo: 26937
.. date: 0191
.. nonce: c9kgiA
.. section: Library
The chown() method of the tarfile.TarFile class does not fail now when the
grp module cannot be imported, as for example on Android platforms.
..
.. bpo: 28847
.. date: 0190
.. nonce: GiWd9w
.. section: Library
dbm.dumb now supports reading read-only files and no longer writes the index
file when it is not changed.  A deprecation warning is now emitted if the
index file is missed and recreated in the 'r' and 'w' modes (will be an
error in future Python releases).
..
.. bpo: 27030
.. date: 0189
.. nonce: GoGlFH
.. section: Library
Unknown escapes consisting of ``'\'`` and an ASCII letter in re.sub()
replacement templates regular expressions now are errors.
..
.. bpo: 28835
.. date: 0188
.. nonce: iWBYH7
.. section: Library
Fix a regression introduced in warnings.catch_warnings(): call
warnings.showwarning() if it was overridden inside the context manager.
..
.. bpo: 27172
.. date: 0187
.. nonce: mVKfLT
.. section: Library
To assist with upgrades from 2.7, the previously documented deprecation of
``inspect.getfullargspec()`` has been reversed. This decision may be
revisited again after the Python 2.7 branch is no longer officially
supported.
..
.. bpo: 28740
.. date: 0186
.. nonce: rY8kz-
.. section: Library
Add sys.getandroidapilevel(): return the build time API version of Android
as an integer. Function only available on Android.
..
.. bpo: 26273
.. date: 0185
.. nonce: ilNIWN
.. section: Library
Add new :const:`socket.TCP_CONGESTION` (Linux 2.6.13) and
:const:`socket.TCP_USER_TIMEOUT` (Linux 2.6.37) constants. Patch written by
Omar Sandoval.
..
.. bpo: 28752
.. date: 0184
.. nonce: Q-4oRE
.. section: Library
Restored the __reduce__() methods of datetime objects.
..
.. bpo: 28727
.. date: 0183
.. nonce: ubZP_b
.. section: Library
Regular expression patterns, _sre.SRE_Pattern objects created by
re.compile(), become comparable (only x==y and x!=y operators). This change
should fix the issue #18383: don't duplicate warning filters when the
warnings module is reloaded (thing usually only done in unit tests).
..
.. bpo: 20572
.. date: 0182
.. nonce: NCRmvz
.. section: Library
Remove the subprocess.Popen.wait endtime parameter.  It was deprecated in
3.4 and undocumented prior to that.
..
.. bpo: 25659
.. date: 0181
.. nonce: lE2IlT
.. section: Library
In ctypes, prevent a crash calling the from_buffer() and from_buffer_copy()
methods on abstract classes like Array.
..
.. bpo: 28548
.. date: 0180
.. nonce: IeNrnG
.. section: Library
In the "http.server" module, parse the protocol version if possible, to
avoid using HTTP 0.9 in some error responses.
..
.. bpo: 19717
.. date: 0179
.. nonce: HXCAIz
.. section: Library
Makes Path.resolve() succeed on paths that do not exist. Patch by Vajrasky
Kok
..
.. bpo: 28563
.. date: 0178
.. nonce: iweEiw
.. section: Library
Fixed possible DoS and arbitrary code execution when handle plural form
selections in the gettext module.  The expression parser now supports exact
syntax supported by GNU gettext.
..
.. bpo: 28387
.. date: 0177
.. nonce: 1clJu7
.. section: Library
Fixed possible crash in _io.TextIOWrapper deallocator when the garbage
collector is invoked in other thread.  Based on patch by Sebastian Cufre.
..
.. bpo: 27517
.. date: 0176
.. nonce: 1CYM8A
.. section: Library
LZMA compressor and decompressor no longer raise exceptions if given empty
data twice.  Patch by Benjamin Fogle.
..
.. bpo: 28549
.. date: 0175
.. nonce: ShnM2y
.. section: Library
Fixed segfault in curses's addch() with ncurses6.
..
.. bpo: 28449
.. date: 0174
.. nonce: 5JK6ES
.. section: Library
tarfile.open() with mode "r" or "r:" now tries to open a tar file with
compression before trying to open it without compression.  Otherwise it had
50% chance failed with ignore_zeros=True.
..
.. bpo: 23262
.. date: 0173
.. nonce: 6EVB7N
.. section: Library
The webbrowser module now supports Firefox 36+ and derived browsers.  Based
on patch by Oleg Broytman.
..
.. bpo: 24241
.. date: 0172
.. nonce: y7N12p
.. section: Library
The webbrowser in an X environment now prefers using the default browser
directly. Also, the webbrowser register() function now has a documented
'preferred' argument, to specify browsers to be returned by get() with no
arguments. Patch by David Steele
..
.. bpo: 27939
.. date: 0171
.. nonce: mTfADV
.. section: Library
Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused by
representing the scale as float value internally in Tk.  tkinter.IntVar now
works if float value is set to underlying Tk variable.
..
.. bpo: 28255
.. date: 0170
.. nonce: G3iOPm
.. section: Library
calendar.TextCalendar.prweek() no longer prints a space after a weeks's
calendar.  calendar.TextCalendar.pryear() no longer prints redundant newline
after a year's calendar.  Based on patch by Xiang Zhang.
..
.. bpo: 28255
.. date: 0169
.. nonce: fHNZu0
.. section: Library
calendar.TextCalendar.prmonth() no longer prints a space at the start of new
line after printing a month's calendar.  Patch by Xiang Zhang.
..
.. bpo: 20491
.. date: 0168
.. nonce: ObgnQ2
.. section: Library
The textwrap.TextWrapper class now honors non-breaking spaces. Based on
patch by Kaarle Ritvanen.
..
.. bpo: 28353
.. date: 0167
.. nonce: sKGbLL
.. section: Library
os.fwalk() no longer fails on broken links.
..
.. bpo: 28430
.. date: 0166
.. nonce: 4MiEYT
.. section: Library
Fix iterator of C implemented asyncio.Future doesn't accept non-None value
is passed to it.send(val).
..
.. bpo: 27025
.. date: 0165
.. nonce: foAViS
.. section: Library
Generated names for Tkinter widgets now start by the "!" prefix for
readability.
..
.. bpo: 25464
.. date: 0164
.. nonce: HDUTCu
.. section: Library
Fixed HList.header_exists() in tkinter.tix module by addin a workaround to
Tix library bug.
..
.. bpo: 28488
.. date: 0163
.. nonce: TgO112
.. section: Library
shutil.make_archive() no longer adds entry "./" to ZIP archive.
..
.. bpo: 25953
.. date: 0162
.. nonce: EKKJAQ
.. section: Library
re.sub() now raises an error for invalid numerical group reference in
replacement template even if the pattern is not found in the string.  Error
message for invalid group reference now includes the group index and the
position of the reference. Based on patch by SilentGhost.
..
.. bpo: 28469
.. date: 0161
.. nonce: QZW1Np
.. section: Library
timeit now uses the sequence 1, 2, 5, 10, 20, 50,... instead of 1, 10,
100,... for autoranging.
..
.. bpo: 28115
.. date: 0160
.. nonce: 4FIjIE
.. section: Library
Command-line interface of the zipfile module now uses argparse. Added
support of long options.
..
.. bpo: 18219
.. date: 0159
.. nonce: 1ANQN1
.. section: Library
Optimize csv.DictWriter for large number of columns. Patch by Mariatta
Wijaya.
..
.. bpo: 28448
.. date: 0158
.. nonce: 5bduWe
.. section: Library
Fix C implemented asyncio.Future didn't work on Windows.
..
.. bpo: 23214
.. date: 0157
.. nonce: -4Q5Z7
.. section: Library
In the "io" module, the argument to BufferedReader and BytesIO's read1()
methods is now optional and can be -1, matching the BufferedIOBase
specification.
..
.. bpo: 28480
.. date: 0156
.. nonce: 9lHw6m
.. section: Library
Fix error building socket module when multithreading is disabled.
..
.. bpo: 28240
.. date: 0155
.. nonce: hqzQvS
.. section: Library
timeit: remove ``-c/--clock`` and ``-t/--time`` command line options which
were deprecated since Python 3.3.
..
.. bpo: 28240
.. date: 0154
.. nonce: IwQMgd
.. section: Library
timeit now repeats the benchmarks 5 times instead of only 3 to make
benchmarks more reliable.
..
.. bpo: 28240
.. date: 0153
.. nonce: cXljq-
.. section: Library
timeit autorange now uses a single loop iteration if the benchmark takes
less than 10 seconds, instead of 10 iterations. "python3 -m timeit -s
'import time' 'time.sleep(1)'" now takes 4 seconds instead of 40 seconds.
..
.. bpo: 0
.. date: 0152
.. nonce: 5Y0ngw
.. section: Library
Distutils.sdist now looks for README and setup.py files with case
sensitivity. This behavior matches that found in Setuptools 6.0 and later.
See `setuptools 100 <https://github.com/pypa/setuptools/issues/100>`_ for
rationale.
..
.. bpo: 24452
.. date: 0151
.. nonce: pVsjt0
.. section: Library
Make webbrowser support Chrome on Mac OS X. Patch by Ned Batchelder.
..
.. bpo: 20766
.. date: 0150
.. nonce: 4kvCzx
.. section: Library
Fix references leaked by pdb in the handling of SIGINT handlers.
..
.. bpo: 27998
.. date: 0149
.. nonce: CPhy4H
.. section: Library
Fixed bytes path support in os.scandir() on Windows. Patch by Eryk Sun.
..
.. bpo: 28317
.. date: 0148
.. nonce: LgHleA
.. section: Library
The disassembler now decodes FORMAT_VALUE argument.
..
.. bpo: 28380
.. date: 0147
.. nonce: jKPMzH
.. section: Library
unittest.mock Mock autospec functions now properly support assert_called,
assert_not_called, and assert_called_once.
..
.. bpo: 28229
.. date: 0146
.. nonce: BKAxcS
.. section: Library
lzma module now supports pathlib.
..
.. bpo: 28321
.. date: 0145
.. nonce: bQ-IIX
.. section: Library
Fixed writing non-BMP characters with binary format in plistlib.
..
.. bpo: 28225
.. date: 0144
.. nonce: 6N28nu
.. section: Library
bz2 module now supports pathlib.  Initial patch by Ethan Furman.
..
.. bpo: 28227
.. date: 0143
.. nonce: 7lUz8i
.. section: Library
gzip now supports pathlib.  Patch by Ethan Furman.
..
.. bpo: 28332
.. date: 0142
.. nonce: Ed8fNk
.. section: Library
Deprecated silent truncations in socket.htons and socket.ntohs. Original
patch by Oren Milman.
..
.. bpo: 27358
.. date: 0141
.. nonce: t288Iv
.. section: Library
Optimized merging var-keyword arguments and improved error message when
passing a non-mapping as a var-keyword argument.
..
.. bpo: 28257
.. date: 0140
.. nonce: SVD_IH
.. section: Library
Improved error message when passing a non-iterable as a var-positional
argument.  Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
..
.. bpo: 28322
.. date: 0139
.. nonce: l9hzap
.. section: Library
Fixed possible crashes when unpickle itertools objects from incorrect pickle
data.  Based on patch by John Leitch.
..
.. bpo: 28228
.. date: 0138
.. nonce: 1qBwdM
.. section: Library
imghdr now supports pathlib.
..
.. bpo: 28226
.. date: 0137
.. nonce: nMXiwU
.. section: Library
compileall now supports pathlib.
..
.. bpo: 28314
.. date: 0136
.. nonce: N7YrkN
.. section: Library
Fix function declaration (C flags) for the getiterator() method of
xml.etree.ElementTree.Element.
..
.. bpo: 28148
.. date: 0135
.. nonce: Flzndx
.. section: Library
Stop using localtime() and gmtime() in the time module.
Introduced platform independent _PyTime_localtime API that is similar to
POSIX localtime_r, but available on all platforms.  Patch by Ed Schouten.
..
.. bpo: 28253
.. date: 0134
.. nonce: aLfmhe
.. section: Library
Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.
..
.. bpo: 28275
.. date: 0133
.. nonce: EhWIsz
.. section: Library
Fixed possible use after free in the decompress() methods of the
LZMADecompressor and BZ2Decompressor classes. Original patch by John Leitch.
..
.. bpo: 27897
.. date: 0132
.. nonce: I0Ppmx
.. section: Library
Fixed possible crash in sqlite3.Connection.create_collation() if pass
invalid string-like object as a name.  Patch by Xiang Zhang.
..
.. bpo: 18844
.. date: 0131
.. nonce: fQsEdn
.. section: Library
random.choices() now has k as a keyword-only argument to improve the
readability of common cases and come into line with the signature used in
other languages.
..
.. bpo: 18893
.. date: 0130
.. nonce: osiX5c
.. section: Library
Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. Patch by
Madison May.
..
.. bpo: 27611
.. date: 0129
.. nonce: A_ArH_
.. section: Library
Fixed support of default root window in the tkinter.tix module. Added the
master parameter in the DisplayStyle constructor.
..
.. bpo: 27348
.. date: 0128
.. nonce: tDx7Vw
.. section: Library
In the traceback module, restore the formatting of exception messages like
"Exception: None".  This fixes a regression introduced in 3.5a2.
..
.. bpo: 25651
.. date: 0127
.. nonce: 3UhyPo
.. section: Library
Allow false values to be used for msg parameter of subTest().
..
.. bpo: 27778
.. date: 0126
.. nonce: Yyo1aP
.. section: Library
Fix a memory leak in os.getrandom() when the getrandom() is interrupted by a
signal and a signal handler raises a Python exception.
..
.. bpo: 28200
.. date: 0125
.. nonce: 4IEbr7
.. section: Library
Fix memory leak on Windows in the os module (fix path_converter() function).
..
.. bpo: 25400
.. date: 0124
.. nonce: d9Qn0E
.. section: Library
RobotFileParser now correctly returns default values for crawl_delay and
request_rate.  Initial patch by Peter Wirtz.
..
.. bpo: 27932
.. date: 0123
.. nonce: mtgl-6
.. section: Library
Prevent memory leak in win32_ver().
..
.. bpo: 0
.. date: 0122
.. nonce: iPpjqX
.. section: Library
Fix UnboundLocalError in socket._sendfile_use_sendfile.
..
.. bpo: 28075
.. date: 0121
.. nonce: aLiUs9
.. section: Library
Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat().  Patch
by Eryk Sun.
..
.. bpo: 22493
.. date: 0120
.. nonce: Mv_hZf
.. section: Library
Warning message emitted by using inline flags in the middle of regular
expression now contains a (truncated) regex pattern. Patch by Tim Graham.
..
.. bpo: 25270
.. date: 0119
.. nonce: jrZruM
.. section: Library
Prevent codecs.escape_encode() from raising SystemError when an empty
bytestring is passed.
..
.. bpo: 28181
.. date: 0118
.. nonce: NGc4Yv
.. section: Library
Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
..
.. bpo: 25895
.. date: 0117
.. nonce: j92qoQ
.. section: Library
Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by Gergely Imreh
and Markus Holtermann.
..
.. bpo: 28114
.. date: 0116
.. nonce: gmFXsA
.. section: Library
Fix a crash in parse_envlist() when env contains byte strings. Patch by Eryk
Sun.
..
.. bpo: 27599
.. date: 0115
.. nonce: itvm8T
.. section: Library
Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().
..
.. bpo: 27906
.. date: 0114
.. nonce: TBBXrv
.. section: Library
Fix socket accept exhaustion during high TCP traffic. Patch by Kevin Conway.
..
.. bpo: 28174
.. date: 0113
.. nonce: CV1UdI
.. section: Library
Handle when SO_REUSEPORT isn't properly supported. Patch by Seth Michael
Larson.
..
.. bpo: 26654
.. date: 0112
.. nonce: XtzTE9
.. section: Library
Inspect functools.partial in asyncio.Handle.__repr__. Patch by iceboy.
..
.. bpo: 26909
.. date: 0111
.. nonce: ASiakT
.. section: Library
Fix slow pipes IO in asyncio. Patch by INADA Naoki.
..
.. bpo: 28176
.. date: 0110
.. nonce: sU8R6L
.. section: Library
Fix callbacks race in asyncio.SelectorLoop.sock_connect.
..
.. bpo: 27759
.. date: 0109
.. nonce: qpMDGq
.. section: Library
Fix selectors incorrectly retain invalid file descriptors. Patch by Mark
Williams.
..
.. bpo: 28325
.. date: 0108
.. nonce: wAHmnK
.. section: Library
Remove vestigial MacOS 9 macurl2path module and its tests.
..
.. bpo: 28368
.. date: 0107
.. nonce: n594X4
.. section: Library
Refuse monitoring processes if the child watcher has no loop attached. Patch
by Vincent Michel.
..
.. bpo: 28369
.. date: 0106
.. nonce: 8DTANe
.. section: Library
Raise RuntimeError when transport's FD is used with add_reader, add_writer,
etc.
..
.. bpo: 28370
.. date: 0105
.. nonce: 18jBuZ
.. section: Library
Speedup asyncio.StreamReader.readexactly. Patch by Коренберг Марк.
..
.. bpo: 28371
.. date: 0104
.. nonce: U9Zqdk
.. section: Library
Deprecate passing asyncio.Handles to run_in_executor.
..
.. bpo: 28372
.. date: 0103
.. nonce: njcIPk
.. section: Library
Fix asyncio to support formatting of non-python coroutines.
..
.. bpo: 28399
.. date: 0102
.. nonce: QKIqRX
.. section: Library
Remove UNIX socket from FS before binding. Patch by Коренберг Марк.
..
.. bpo: 27972
.. date: 0101
.. nonce: ZK-GFm
.. section: Library
Prohibit Tasks to await on themselves.
..
.. bpo: 24142
.. date: 0100
.. nonce: IrZnFs
.. section: Library
Reading a corrupt config file left configparser in an invalid state.
Original patch by Florian Höch.
..
.. bpo: 29581
.. date: 0099
.. nonce: gHCrxP
.. section: Library
ABCMeta.__new__ now accepts ``**kwargs``, allowing abstract base classes to
use keyword parameters in __init_subclass__. Patch by Nate Soares.
..
.. bpo: 25532
.. date: 0098
.. nonce: ey4Yez
.. section: Library
inspect.unwrap() will now only try to unwrap an object
sys.getrecursionlimit() times, to protect against objects which create a new
object on every attribute access.
..
.. bpo: 30177
.. date: 0097
.. nonce: JGIJNL
.. section: Library
path.resolve(strict=False) no longer cuts the path after the first element
not present in the filesystem.  Patch by Antoine Pietri.
..
.. bpo: 31294
.. date: 2017-09-07-20-49-09
.. nonce: WgI18w
.. section: Documentation
Fix incomplete code snippet in the ZeroMQSocketListener and
ZeroMQSocketHandler examples and adapt them to Python 3.
..
.. bpo: 21649
.. date: 2017-09-06-10-11-57
.. nonce: EUvqA9
.. section: Documentation
Add RFC 7525 and Mozilla server side TLS links to SSL documentation.
..
.. bpo: 31128
.. date: 2017-08-31
.. nonce: uoa3cr
.. section: Documentation
Allow the pydoc server to bind to arbitrary hostnames.
..
.. bpo: 30803
.. date: 2017-07-29-14-55-50
.. nonce: 6hutqQ
.. section: Documentation
Clarify doc on truth value testing. Original patch by Peter Thomassen.
..
.. bpo: 30176
.. date: 0060
.. nonce: VivmCg
.. section: Documentation
Add missing attribute related constants in curses documentation.
..
.. bpo: 30052
.. date: 0059
.. nonce: TpmpaF
.. section: Documentation
the link targets for :func:`bytes` and :func:`bytearray` are now their
respective type definitions, rather than the corresponding builtin function
entries. Use :ref:`bytes <func-bytes>` and :ref:`bytearray <func-bytearray>`
to reference the latter.
In order to ensure this and future cross-reference updates are applied
automatically, the daily documentation builds now disable the default output
caching features in Sphinx.
..
.. bpo: 26985
.. date: 0058
.. nonce: NB5_9S
.. section: Documentation
Add missing info of code object in inspect documentation.
..
.. bpo: 19824
.. date: 0057
.. nonce: We9an6
.. section: Documentation
Improve the documentation for, and links to, template strings by emphasizing
their utility for internationalization, and by clarifying some usage
constraints. (See also: bpo-20314, bpo-12518)
..
.. bpo: 28929
.. date: 0056
.. nonce: Md7kb0
.. section: Documentation
Link the documentation to its source file on GitHub.
..
.. bpo: 25008
.. date: 0055
.. nonce: CeIzyU
.. section: Documentation
Document smtpd.py as effectively deprecated and add a pointer to aiosmtpd, a
third-party asyncio-based replacement.
..
.. bpo: 26355
.. date: 0054
.. nonce: SDq_8Y
.. section: Documentation
Add canonical header link on each page to corresponding major version of the
documentation. Patch by Matthias Bussonnier.
..
.. bpo: 29349
.. date: 0053
.. nonce: PjSo-t
.. section: Documentation
Fix Python 2 syntax in code for building the documentation.
..
.. bpo: 23722
.. date: 0052
.. nonce: nFjY3C
.. section: Documentation
The data model reference and the porting section in the 3.6 What's New guide
now cover the additional ``__classcell__`` handling needed for custom
metaclasses to fully support :pep:`487` and zero-argument ``super()``.
..
.. bpo: 28513
.. date: 0051
.. nonce: L3joAz
.. section: Documentation
Documented command-line interface of zipfile.
..
.. bpo: 29639
.. date: 2017-09-08-15-59-07
.. nonce: yIZecp
.. section: Tests
test.support.HOST is now "localhost", a new HOSTv4 constant has been added
for your ``127.0.0.1`` needs, similar to the existing HOSTv6 constant.
..
.. bpo: 31320
.. date: 2017-09-05-14-23-35
.. nonce: JRDHx7
.. section: Tests
Silence traceback in test_ssl
..
.. bpo: 31346
.. date: 2017-09-04-16-21-18
.. nonce: xni1VR
.. section: Tests
Prefer PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER protocols for SSLContext.
..
.. bpo: 25674
.. date: 2017-09-04-13-03-55
.. nonce: whVTXh
.. section: Tests
Remove sha256.tbs-internet.com ssl test
..
.. bpo: 30715
.. date: 2017-07-25-15-27-44
.. nonce: Sp7bTF
.. section: Tests
Address ALPN callback changes for OpenSSL 1.1.0f. The latest version behaves
like OpenSSL 1.0.2 and no longer aborts handshake.
..
.. bpo: 30822
.. date: 2017-07-20-14-29-54
.. nonce: X0wREo
.. section: Tests
regrtest: Exclude tzdata from regrtest --all. When running the test suite
using --use=all / -u all, exclude tzdata since it makes test_datetime too
slow (15-20 min on some buildbots) which then times out on some buildbots.
Fix also regrtest command line parser to allow passing -u extralargefile to
run test_zipfile64.
..
.. bpo: 30695
.. date: 2017-06-30-11-20-20
.. nonce: lo7FQX
.. section: Tests
Add the ``set_nomemory(start, stop)`` and ``remove_mem_hooks()`` functions to
the ``_testcapi`` module.
..
.. bpo: 30357
.. date: 0012
.. nonce: n4CPEa
.. section: Tests
test_thread: setUp() now uses support.threading_setup() and
support.threading_cleanup() to wait until threads complete to avoid random
side effects on following tests. Initial patch written by Grzegorz Grzywacz.
..
.. bpo: 30197
.. date: 0011
.. nonce: c5wRfu
.. section: Tests
Enhanced functions swap_attr() and swap_item() in the test.support module.
They now work when delete replaced attribute or item inside the with
statement.  The old value of the attribute or item (or None if it doesn't
exist) now will be assigned to the target of the "as" clause, if there is
one.
..
.. bpo: 24932
.. date: 0010
.. nonce: XLTzvR
.. section: Tests
Use proper command line parsing in _testembed
..
.. bpo: 28950
.. date: 0009
.. nonce: 1W8Glo
.. section: Tests
Disallow -j0 to be combined with -T/-l in regrtest command line arguments.
..
.. bpo: 28683
.. date: 0008
.. nonce: Fp-Hdq
.. section: Tests
Fix the tests that bind() a unix socket and raise PermissionError on Android
for a non-root user.
..
.. bpo: 26936
.. date: 0007
.. nonce: XSZSVS
.. section: Tests
Fix the test_socket failures on Android - getservbyname(),  getservbyport()
and getaddrinfo() are broken on some Android API levels.
..
.. bpo: 28666
.. date: 0006
.. nonce: RtTk-4
.. section: Tests
Now test.support.rmtree is able to remove unwritable or unreadable
directories.
..
.. bpo: 23839
.. date: 0005
.. nonce: zsT_L9
.. section: Tests
Various caches now are cleared before running every test file.
..
.. bpo: 26944
.. date: 0004
.. nonce: ChZ_BO
.. section: Tests
Fix test_posix for Android where 'id -G' is entirely wrong or missing the
effective gid.
..
.. bpo: 28409
.. date: 0003
.. nonce: Q2IlxJ
.. section: Tests
regrtest: fix the parser of command line arguments.
..
.. bpo: 28217
.. date: 0002
.. nonce: Y37OKV
.. section: Tests
Adds _testconsole module to test console input.
..
.. bpo: 26939
.. date: 0001
.. nonce: 7j_W5R
.. section: Tests
Add the support.setswitchinterval() function to fix test_functools hanging
on the Android armv7 qemu emulator.
..
.. bpo: 31354
.. date: 2017-09-08-11-48-11
.. nonce: 4f-VJK
.. section: Build
Allow ``--with-lto`` to be used on all builds, not just ``make profile-opt``.
..
.. bpo: 31370
.. date: 2017-09-06-23-14-08
.. nonce: -j4kN4
.. section: Build
Remove support for building --without-threads.
This option is not really useful anymore in the 21st century. Removing lots
of conditional paths allows us to simplify the code base, including in
difficult to maintain low-level internal code.
..
.. bpo: 31341
.. date: 2017-09-04-14-43-46
.. nonce: XLuZFk
.. section: Build
Per :pep:`11`, support for the IRIX operating system was removed.
..
.. bpo: 30854
.. date: 2017-07-05-16-54-59
.. nonce: sPADRI
.. section: Build
Fix compile error when compiling --without-threads. Patch by Masayuki
Yamamoto.
..
.. bpo: 30687
.. date: 0050
.. nonce: 8mqHnu
.. section: Build
Locate msbuild.exe on Windows when building rather than vcvarsall.bat
..
.. bpo: 20210
.. date: 0049
.. nonce: MN_n-r
.. section: Build
Support the *disabled* marker in Setup files. Extension modules listed after
this marker are not built at all, neither by the Makefile nor by setup.py.
..
.. bpo: 29941
.. date: 0048
.. nonce: ylh45A
.. section: Build
Add ``--with-assertions`` configure flag to explicitly enable C ``assert()``
checks. Defaults to off. ``--with-pydebug`` implies ``--with-assertions``.
..
.. bpo: 28787
.. date: 0047
.. nonce: vhH_6a
.. section: Build
Fix out-of-tree builds of Python when configured with ``--with--dtrace``.
..
.. bpo: 29243
.. date: 0046
.. nonce: WDK4hT
.. section: Build
Prevent unnecessary rebuilding of Python during ``make test``, ``make
install`` and some other make targets when configured with
``--enable-optimizations``.
..
.. bpo: 23404
.. date: 0045
.. nonce: PdYVWg
.. section: Build
Don't regenerate generated files based on file modification time anymore:
the action is now explicit. Replace ``make touch`` with ``make regen-all``.
..
.. bpo: 29643
.. date: 0044
.. nonce: 4WLIJQ
.. section: Build
Fix ``--enable-optimization`` didn't work.
..
.. bpo: 27593
.. date: 0043
.. nonce: v87xEr
.. section: Build
sys.version and the platform module python_build(), python_branch(), and
python_revision() functions now use git information rather than hg when
building from a repo.
..
.. bpo: 29572
.. date: 0042
.. nonce: iZ1XKK
.. section: Build
Update Windows build and OS X installers to use OpenSSL 1.0.2k.
..
.. bpo: 27659
.. date: 0041
.. nonce: i8UzRC
.. section: Build
Prohibit implicit C function declarations: use
``-Werror=implicit-function-declaration`` when possible (GCC and Clang,
but it depends on the compiler version). Patch written by Chi Hsuan Yen.
..
.. bpo: 29384
.. date: 0040
.. nonce: v3IqBE
.. section: Build
Remove old Be OS helper scripts.
..
.. bpo: 26851
.. date: 0039
.. nonce: R5243g
.. section: Build
Set Android compilation and link flags.
..
.. bpo: 28768
.. date: 0038
.. nonce: b9_a6E
.. section: Build
Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto
..
.. bpo: 29080
.. date: 0037
.. nonce: b3qLQT
.. section: Build
Removes hard dependency on hg.exe from PCBuild/build.bat
..
.. bpo: 23903
.. date: 0036
.. nonce: JXJ889
.. section: Build
Added missed names to PC/python3.def.
..
.. bpo: 28762
.. date: 0035
.. nonce: Ru0YN_
.. section: Build
lockf() is available on Android API level 24, but the F_LOCK macro is not
defined in android-ndk-r13.
..
.. bpo: 28538
.. date: 0034
.. nonce: FqtN7v
.. section: Build
Fix the compilation error that occurs because if_nameindex() is available on
Android API level 24, but the if_nameindex structure is not defined.
..
.. bpo: 20211
.. date: 0033
.. nonce: gpNptI
.. section: Build
Do not add the directory for installing C header files and the directory for
installing object code libraries to the cross compilation search paths.
Original patch by Thomas Petazzoni.
..
.. bpo: 28849
.. date: 0032
.. nonce: AzRRF5
.. section: Build
Do not define sys.implementation._multiarch on Android.
..
.. bpo: 10656
.. date: 0031
.. nonce: pR8FFU
.. section: Build
Fix out-of-tree building on AIX.  Patch by Tristan Carel and Michael
Haubenwallner.
..
.. bpo: 26359
.. date: 0030
.. nonce: CLz6qy
.. section: Build
Rename --with-optimiations to --enable-optimizations.
..
.. bpo: 28444
.. date: 0029
.. nonce: zkc9nT
.. section: Build
Fix missing extensions modules when cross compiling.
..
.. bpo: 28208
.. date: 0028
.. nonce: DtoP1i
.. section: Build
Update Windows build and OS X installers to use SQLite 3.14.2.
..
.. bpo: 28248
.. date: 0027
.. nonce: KY_-en
.. section: Build
Update Windows build and OS X installers to use OpenSSL 1.0.2j.
..
.. bpo: 21124
.. date: 0026
.. nonce: 1bbArU
.. section: Build
Fix building the _struct module on Cygwin by passing ``NULL`` instead of
``&PyType_Type`` to PyVarObject_HEAD_INIT.  Patch by Masayuki Yamamoto.
..
.. bpo: 13756
.. date: 0025
.. nonce: sslhpC
.. section: Build
Fix building extensions modules on Cygwin.  Patch by Roumen Petrov, based on
original patch by Jason Tishler.
..
.. bpo: 21085
.. date: 0024
.. nonce: 2VvyUF
.. section: Build
Add configure check for siginfo_t.si_band, which Cygwin does not provide.
Patch by Masayuki Yamamoto with review and rebase by Erik Bray.
..
.. bpo: 28258
.. date: 0023
.. nonce: iKtAHd
.. section: Build
Fixed build with Estonian locale (python-config and distclean targets in
Makefile).  Patch by Arfrever Frehtes Taifersar Arahesis.
..
.. bpo: 26661
.. date: 0022
.. nonce: Z_HNbs
.. section: Build
setup.py now detects system libffi with multiarch wrapper.
..
.. bpo: 27979
.. date: 0021
.. nonce: fR0KgM
.. section: Build
A full copy of libffi is no longer bundled for use when building _ctypes on
non-OSX UNIX platforms.  An installed copy of libffi is now required when
building _ctypes on such platforms.
..
.. bpo: 15819
.. date: 0020
.. nonce: QVDr3E
.. section: Build
Remove redundant include search directory option for building outside the
source tree.
..
.. bpo: 28676
.. date: 0019
.. nonce: Wxf6Ds
.. section: Build
Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth
Rees.
..
.. bpo: 31392
.. date: 2017-09-07-20-09-04
.. nonce: h92bWF
.. section: Windows
Update Windows build to use OpenSSL 1.1.0f
..
.. bpo: 30389
.. date: 2017-09-06-17-14-54
.. nonce: 9Dizrx
.. section: Windows
Adds detection of Visual Studio 2017 to distutils on Windows.
..
.. bpo: 31358
.. date: 2017-09-05-19-46-52
.. nonce: n1Fjxc
.. section: Windows
zlib is no longer bundled in the CPython source, instead it is downloaded on
demand just like bz2, lzma, OpenSSL, Tcl/Tk, and SQLite.
..
.. bpo: 31340
.. date: 2017-09-04-13-19-05
.. nonce: MbkzLi
.. section: Windows
Change to building with MSVC v141 (included with Visual Studio 2017)
..
.. bpo: 30581
.. date: 2017-08-04-10-05-19
.. nonce: OQhR7l
.. section: Windows
os.cpu_count() now returns the correct number of processors on Windows when
the number of logical processors is greater than 64.
..
.. bpo: 30916
.. date: 2017-07-15-00-40-12
.. nonce: BpCrro
.. section: Windows
Pre-build OpenSSL, Tcl and Tk and include the binaries in the build.
..
.. bpo: 30731
.. date: 2017-07-13-11-22-53
.. nonce: nmMDwI
.. section: Windows
Add a missing xmlns to python.manifest so that it matches the schema.
..
.. bpo: 30291
.. date: 2017-06-28-03-20-48
.. nonce: zBpOl6
.. section: Windows
Allow requiring 64-bit interpreters from py.exe using -64 suffix.
Contributed by Steve (Gadget) Barnes.
..
.. bpo: 30362
.. date: 2017-06-28-03-08-22
.. nonce: XxeVMB
.. section: Windows
Adds list options (-0, -0p) to py.exe launcher. Contributed by Steve Barnes.
..
.. bpo: 23451
.. date: 2017-06-27-07-04-06
.. nonce: bl_QOB
.. section: Windows
Fix socket deprecation warnings in socketmodule.c. Patch by Segev Finer.
..
.. bpo: 30450
.. date: 0088
.. nonce: qsaK8y
.. section: Windows
The build process on Windows no longer depends on Subversion, instead
pulling external code from GitHub via a Python script.  If Python 3.6 is not
found on the system (via ``py -3.6``), NuGet is used to download a copy of
32-bit Python.
..
.. bpo: 29579
.. date: 0087
.. nonce: 07B-FQ
.. section: Windows
Removes readme.txt from the installer.
..
.. bpo: 25778
.. date: 0086
.. nonce: 8uKJ82
.. section: Windows
winreg does not truncate string correctly (Patch by Eryk Sun)
..
.. bpo: 28896
.. date: 0085
.. nonce: qOcBBL
.. section: Windows
Deprecate WindowsRegistryFinder and disable it by default
..
.. bpo: 28522
.. date: 0084
.. nonce: XHMQa7
.. section: Windows
Fixes mishandled buffer reallocation in getpathp.c
..
.. bpo: 28402
.. date: 0083
.. nonce: v9zETJ
.. section: Windows
Adds signed catalog files for stdlib on Windows.
..
.. bpo: 28333
.. date: 0082
.. nonce: KnpeO4
.. section: Windows
Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun)
..
.. bpo: 28251
.. date: 0081
.. nonce: tR_AFs
.. section: Windows
Improvements to help manuals on Windows.
..
.. bpo: 28110
.. date: 0080
.. nonce: cnkP5F
.. section: Windows
launcher.msi has different product codes between 32-bit and 64-bit
..
.. bpo: 28161
.. date: 0079
.. nonce: hF91LI
.. section: Windows
Opening CON for write access fails
..
.. bpo: 28162
.. date: 0078
.. nonce: 3FHPVD
.. section: Windows
WindowsConsoleIO readall() fails if first line starts with Ctrl+Z
..
.. bpo: 28163
.. date: 0077
.. nonce: -DUgJw
.. section: Windows
WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle
..
.. bpo: 28164
.. date: 0076
.. nonce: 5MfN0J
.. section: Windows
_PyIO_get_console_type fails for various paths
..
.. bpo: 28137
.. date: 0075
.. nonce: C1uvzY
.. section: Windows
Renames Windows path file to ._pth
..
.. bpo: 28138
.. date: 0074
.. nonce: pNdv64
.. section: Windows
Windows ._pth file should allow import site
..
.. bpo: 31493
.. date: 2017-09-16-23-43-39
.. nonce: nmHMCR
.. section: IDLE
IDLE code context -- fix code update and font update timers.
Canceling timers prevents a warning message when test_idle completes.
..
.. bpo: 31488
.. date: 2017-09-16-01-21-20
.. nonce: 0rtXIT
.. section: IDLE
IDLE - Update non-key options in former extension classes. When applying
configdialog changes, call .reload for each feature class. Change ParenMatch
so updated options affect existing instances attached to existing editor
windows.
..
.. bpo: 31477
.. date: 2017-09-15-12-38-47
.. nonce: n__6sa
.. section: IDLE
IDLE - Improve rstrip entry in doc. Strip trailing whitespace strips more
than blank spaces.  Multiline string literals are not skipped.
..
.. bpo: 31480
.. date: 2017-09-14-17-53-53
.. nonce: 4WJ0pl
.. section: IDLE
IDLE - make tests pass with zzdummy extension disabled by default.
..
.. bpo: 31421
.. date: 2017-09-12-08-38-27
.. nonce: mYfQNq
.. section: IDLE
Document how IDLE runs tkinter programs. IDLE calls tcl/tk update in the
background in order to make live
interaction and experimentation with tkinter applications much easier.
..
.. bpo: 31414
.. date: 2017-09-11-15-46-05
.. nonce: wiepgK
.. section: IDLE
IDLE -- fix tk entry box tests by deleting first. Adding to an int entry is
not the same as deleting and inserting because int('') will fail.
..
.. bpo: 31051
.. date: 2017-08-30-00-06-58
.. nonce: 50Jp_Q
.. section: IDLE
Rearrange IDLE configdialog GenPage into Window, Editor, and Help sections.
..
.. bpo: 30617
.. date: 2017-08-27-16-49-36
.. nonce: UHnswr
.. section: IDLE
IDLE - Add docstrings and tests for outwin subclass of editor.
Move some data and functions from the class to module level. Patch by Cheryl
Sabella.
..
.. bpo: 31287
.. date: 2017-08-27-15-31-33
.. nonce: aZERfI
.. section: IDLE
IDLE - Do not modify tkinter.message in test_configdialog.
..
.. bpo: 27099
.. date: 2017-08-24-13-48-16
.. nonce: rENefC
.. section: IDLE
Convert IDLE's built-in 'extensions' to regular features.
About 10 IDLE features were implemented as supposedly optional extensions.
Their different behavior could be confusing or worse for users and not good
for maintenance.  Hence the conversion.
The main difference for users is that user configurable key bindings for
builtin features are now handled uniformly.  Now, editing a binding in a
keyset only affects its value in the keyset.  All bindings are defined
together in the system-specific default keysets in config-extensions.def.
All custom keysets are saved as a whole in config-extension.cfg.  All take
effect as soon as one clicks Apply or Ok.
The affected events are '<<force-open-completions>>', '<<expand-word>>',
'<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>',
'<<run-module>>', '<<check-module>>', and '<<zoom-height>>'.  Any (global)
customizations made before 3.6.3 will not affect their keyset-specific
customization after 3.6.3. and vice versa.
Initial patch by Charles Wohlganger.
..
.. bpo: 31206
.. date: 2017-08-18-14-13-42
.. nonce: F1-tKK
.. section: IDLE
IDLE: Factor HighPage(Frame) class from ConfigDialog. Patch by Cheryl
Sabella.
..
.. bpo: 31001
.. date: 2017-08-17-15-00-20
.. nonce: KLxYHC
.. section: IDLE
Add tests for configdialog highlight tab.  Patch by Cheryl Sabella.
..
.. bpo: 31205
.. date: 2017-08-15-12-58-23
.. nonce: iuziZ5
.. section: IDLE
IDLE: Factor KeysPage(Frame) class from ConfigDialog.  The slightly modified
tests continue to pass.  Patch by Cheryl Sabella.
..
.. bpo: 31130
.. date: 2017-08-07-14-02-56
.. nonce: FbsC7f
.. section: IDLE
IDLE -- stop leaks in test_configdialog. Initial patch by Victor Stinner.
..
.. bpo: 31002
.. date: 2017-08-03-17-54-02
.. nonce: kUSgTE
.. section: IDLE
Add tests for configdialog keys tab. Patch by Cheryl Sabella.
..
.. bpo: 19903
.. date: 2017-08-03-14-08-42
.. nonce: sqE1FS
.. section: IDLE
IDLE: Calltips use ``inspect.signature`` instead of ``inspect.getfullargspec``.
This improves calltips for builtins converted to use Argument Clinic. Patch
by Louie Lu.
..
.. bpo: 31083
.. date: 2017-07-31-23-20-51
.. nonce: 991FXm
.. section: IDLE
IDLE - Add an outline of a TabPage class in configdialog. Update existing
classes to match outline. Initial patch by Cheryl Sabella.
..
.. bpo: 31050
.. date: 2017-07-30-17-39-59
.. nonce: AXR3kP
.. section: IDLE
Factor GenPage(Frame) class from ConfigDialog. The slightly modified tests
continue to pass. Patch by Cheryl Sabella.
..
.. bpo: 31004
.. date: 2017-07-30-01-00-58
.. nonce: m8cc1t
.. section: IDLE
IDLE - Factor FontPage(Frame) class from ConfigDialog.
Slightly modified tests continue to pass. Fix General tests. Patch mostly by
Cheryl Sabella.
..
.. bpo: 30781
.. date: 2017-07-28-18-59-06
.. nonce: ud5m18
.. section: IDLE
IDLE - Use ttk widgets in ConfigDialog. Patches by Terry Jan Reedy and
Cheryl Sabella.
..
.. bpo: 31060
.. date: 2017-07-27-14-48-42
.. nonce: GdY_VY
.. section: IDLE
IDLE - Finish rearranging methods of ConfigDialog Grouping methods
pertaining to each tab and the buttons will aid writing tests and improving
the tabs and will enable splitting the groups into classes.
..
.. bpo: 30853
.. date: 2017-07-27-10-01-14
.. nonce: enPvvc
.. section: IDLE
IDLE -- Factor a VarTrace class out of ConfigDialog.
Instance tracers manages pairs consisting of a tk variable and a callback
function.  When tracing is turned on, setting the variable calls the
function.  Test coverage for the new class is 100%.
..
.. bpo: 31003
.. date: 2017-07-25-01-28-35
.. nonce: bYINVH
.. section: IDLE
IDLE: Add more tests for General tab.
..
.. bpo: 30993
.. date: 2017-07-22-18-08-41
.. nonce: 34vJkB
.. section: IDLE
IDLE - Improve configdialog font page and tests.
In configdialog: Document causal pathways in create_font_tab docstring.
Simplify some attribute names. Move set_samples calls to var_changed_font
(idea from Cheryl Sabella).  Move related functions to positions after the
create widgets function.
In test_configdialog: Fix test_font_set so not order dependent.  Fix renamed
test_indent_scale so it tests the widget.  Adjust tests for movement of
set_samples call.  Add tests for load functions.  Put all font tests in one
class and tab indent tests in another.  Except for two lines, these tests
completely cover the related functions.
..
.. bpo: 30981
.. date: 2017-07-21-01-55-14
.. nonce: ZFvQPt
.. section: IDLE
IDLE -- Add more configdialog font page tests.
..
.. bpo: 28523
.. date: 2017-07-21-00-54-52
.. nonce: OPcqYJ
.. section: IDLE
IDLE: replace 'colour' with 'color' in configdialog.
..
.. bpo: 30917
.. date: 2017-07-17-23-35-57
.. nonce: hSiuuO
.. section: IDLE
Add tests for idlelib.config.IdleConf. Increase coverage from 46% to 96%.
Patch by Louie Lu.
..
.. bpo: 30934
.. date: 2017-07-15-22-26-57
.. nonce: BanuSB
.. section: IDLE
Document coverage details for idlelib tests.
Add section to idlelib/idle-test/README.txt.
Include check that branches are taken both ways.
Exclude IDLE-specific code that does not run during unit tests.
..
.. bpo: 30913
.. date: 2017-07-13-23-07-33
.. nonce: aezn_e
.. section: IDLE
IDLE: Document ConfigDialog tk Vars, methods, and widgets in docstrings This
will facilitate improving the dialog and splitting up the class. Original
patch by Cheryl Sabella.
..
.. bpo: 30899
.. date: 2017-07-11-02-26-17
.. nonce: SQmVO8
.. section: IDLE
IDLE: Add tests for ConfigParser subclasses in config. Patch by Louie Lu.
..
.. bpo: 30881
.. date: 2017-07-11-02-21-42
.. nonce: 4KAq_9
.. section: IDLE
IDLE: Add docstrings to browser.py. Patch by Cheryl Sabella.
..
.. bpo: 30851
.. date: 2017-07-09-23-53-00
.. nonce: AHXBYa
.. section: IDLE
IDLE: Remove unused variables in configdialog.  One is a duplicate, one is
set but cannot be altered by users. Patch by Cheryl Sabella.
..
.. bpo: 30870
.. date: 2017-07-08-17-57-04
.. nonce: IcR2pf
.. section: IDLE
IDLE: In Settings dialog, select font with Up, Down keys as well as mouse.
Initial patch by Louie Lu.
..
.. bpo: 8231
.. date: 2017-07-07-21-10-55
.. nonce: yEge3L
.. section: IDLE
IDLE: call config.IdleConf.GetUserCfgDir only once.
..
.. bpo: 30779
.. date: 2017-07-07-20-26-37
.. nonce: 8KXEXN
.. section: IDLE
IDLE: Factor ConfigChanges class from configdialog, put in config; test. *
In config, put dump test code in a function; run it and unittest in   'if
__name__ == '__main__'. * Add class config.ConfigChanges based on
changes_class_v4.py on bpo issue. * Add class test_config.ChangesTest,
partly using configdialog_tests_v1.py. * Revise configdialog to use
ConfigChanges; see tracker msg297804. * Revise test_configdialog to match
configdialog changes. * Remove configdialog functions unused or moved to
ConfigChanges. Cheryl Sabella contributed parts of the patch.
..
.. bpo: 30777
.. date: 2017-07-04-22-45-46
.. nonce: uxzlMB
.. section: IDLE
IDLE: configdialog - Add docstrings and fix comments. Patch by Cheryl
Sabella.
..
.. bpo: 30495
.. date: 2017-06-29-18-23-06
.. nonce: qIWgc4
.. section: IDLE
IDLE: Improve textview with docstrings, PEP8 names, and more tests. Patch by
Cheryl Sabella.
..
.. bpo: 30723
.. date: 2017-06-27-19-05-40
.. nonce: rQh06y
.. section: IDLE
IDLE: Make several improvements to parenmatch. Add 'parens' style to
highlight both opener and closer. Make 'default' style, which is not
default, a synonym for 'opener'. Make time-delay work the same with all
styles. Add help for config dialog extensions tab, including help for
parenmatch. Add new tests.  Original patch by Charles Wohlganger.
..
.. bpo: 30674
.. date: 2017-06-27-01-40-34
.. nonce: ppK_q8
.. section: IDLE
IDLE: add docstrings to grep module. Patch by Cheryl Sabella
..
.. bpo: 21519
.. date: 2017-06-27-00-29-56
.. nonce: fTj9T0
.. section: IDLE
IDLE's basic custom key entry dialog now detects duplicates properly.
Original patch by Saimadhav Heblikar.
..
.. bpo: 29910
.. date: 2017-06-26-22-45-27
.. nonce: mqHh7u
.. section: IDLE
IDLE no longer deletes a character after commenting out a region by a key
shortcut.  Add ``return 'break'`` for this and other potential conflicts
between IDLE and default key bindings.
..
.. bpo: 30728
.. date: 2017-06-26-15-47-13
.. nonce: qH4TGL
.. section: IDLE
Review and change idlelib.configdialog names. Lowercase method and attribute
names. Replace 'colour' with 'color', expand overly cryptic names, delete
unneeded underscores. Replace ``import *`` with specific imports. Patches by
Cheryl Sabella.
..
.. bpo: 6739
.. date: 2017-06-26-00-28-59
.. nonce: x5MfhB
.. section: IDLE
IDLE: Verify user-entered key sequences by trying to bind them with tk. Add
tests for all 3 validation functions. Original patch by G Polo.  Tests added
by Cheryl Sabella.
..
.. bpo: 15786
.. date: 0096
.. nonce: _XRbaR
.. section: IDLE
Fix several problems with IDLE's autocompletion box. The following should
now work: clicking on selection box items; using the scrollbar; selecting an
item by hitting Return. Hangs on MacOSX should no longer happen. Patch by
Louie Lu.
..
.. bpo: 25514
.. date: 0095
.. nonce: 882pXa
.. section: IDLE
Add doc subsubsection about IDLE failure to start. Popup no-connection
message directs users to this section.
..
.. bpo: 30642
.. date: 0094
.. nonce: 3Zujzt
.. section: IDLE
Fix reference leaks in IDLE tests. Patches by Louie Lu and Terry Jan Reedy.
..
.. bpo: 30495
.. date: 0093
.. nonce: I3i5vL
.. section: IDLE
Add docstrings for textview.py and use PEP8 names. Patches by Cheryl Sabella
and Terry Jan Reedy.
..
.. bpo: 30290
.. date: 0092
.. nonce: fZ3kod
.. section: IDLE
Help-about: use pep8 names and add tests. Increase coverage to 100%. Patches
by Louie Lu, Cheryl Sabella, and Terry Jan Reedy.
..
.. bpo: 30303
.. date: 0091
.. nonce: 2L2F-4
.. section: IDLE
Add _utest option to textview; add new tests. Increase coverage to 100%.
Patches by Louie Lu and Terry Jan Reedy.
..
.. bpo: 29071
.. date: 0090
.. nonce: FCOpJn
.. section: IDLE
IDLE colors f-string prefixes (but not invalid ur prefixes).
..
.. bpo: 28572
.. date: 0089
.. nonce: 1_duKY
.. section: IDLE
Add 10% to coverage of IDLE's test_configdialog. Update and augment
description of the configuration system.
..
.. bpo: 30983
.. date: 2017-08-18-17-19-23
.. nonce: ggGz9z
.. section: Tools/Demos
gdb integration commands (py-bt, etc.) work on optimized shared builds now,
too.  :pep:`523` introduced _PyEval_EvalFrameDefault which inlines
PyEval_EvalFrameEx on non-debug shared builds.  This broke the ability to
use py-bt, py-up, and a few other Python-specific gdb integrations. The
problem is fixed by only looking for _PyEval_EvalFrameDefault frames in
python-gdb.py.  Original patch by Bruno "Polaco" Penteado.
..
.. bpo: 29748
.. date: 0018
.. nonce: 6pV6s9
.. section: Tools/Demos
Added the slice index converter in Argument Clinic.
..
.. bpo: 24037
.. date: 0017
.. nonce: KPFC7o
.. section: Tools/Demos
Argument Clinic now uses the converter ``bool(accept={int})`` rather than
``int`` for semantical booleans.  This avoids repeating the default value for
Python and C and will help in converting to ``bool`` in future.
..
.. bpo: 29367
.. date: 0016
.. nonce: 4dOKL0
.. section: Tools/Demos
python-gdb.py now supports also ``method-wrapper`` (``wrapperobject``)
objects.
..
.. bpo: 28023
.. date: 0015
.. nonce: 4gzSGp
.. section: Tools/Demos
Fix python-gdb.py didn't support new dict implementation.
..
.. bpo: 15369
.. date: 0014
.. nonce: bdZ3n-
.. section: Tools/Demos
The pybench and pystone microbenchmark have been removed from Tools. Please
use the new Python benchmark suite https://github.com/python/pyperformance
which is more reliable and includes a portable version of pybench working on
Python 2 and Python 3.
..
.. bpo: 28102
.. date: 0013
.. nonce: 5fKaek
.. section: Tools/Demos
The zipfile module CLI now prints usage to stderr. Patch by Stephen J.
Turnbull.
..
.. bpo: 31338
.. date: 2017-09-05-17-51-12
.. nonce: LjA43Y
.. section: C API
Added the ``Py_UNREACHABLE()`` macro for code paths which are never expected
to be reached.  This and a few other useful macros are now documented in the
C API manual.
..
.. bpo: 30832
.. date: 2017-07-03-17-25-40
.. nonce: PcTAEP
.. section: C API
Remove own implementation for thread-local storage.
CPython has provided the own implementation for thread-local storage (TLS)
on Python/thread.c, it's used in the case which a platform has not supplied
native TLS.  However, currently all supported platforms (Windows and
pthreads) have provided native TLS and defined the Py_HAVE_NATIVE_TLS macro
with unconditional in any case.
..
.. bpo: 30708
.. date: 0073
.. nonce: np-l1j
.. section: C API
PyUnicode_AsWideCharString() now raises a ValueError if the second argument
is NULL and the wchar_t\* string contains null characters.
..
.. bpo: 16500
.. date: 0072
.. nonce: lRpooa
.. section: C API
Deprecate PyOS_AfterFork() and add PyOS_BeforeFork(),
PyOS_AfterFork_Parent() and PyOS_AfterFork_Child().
..
.. bpo: 6532
.. date: 0071
.. nonce: qcH6k1
.. section: C API
The type of results of PyThread_start_new_thread() and
PyThread_get_thread_ident(), and the id parameter of
PyThreadState_SetAsyncExc() changed from "long" to "unsigned long".
..
.. bpo: 27867
.. date: 0070
.. nonce: J-8CGo
.. section: C API
Function PySlice_GetIndicesEx() is deprecated and replaced with a macro if
Py_LIMITED_API is not set or set to the value between 0x03050400 and
0x03060000 (not including) or 0x03060100 or higher.  Added functions
PySlice_Unpack() and PySlice_AdjustIndices().
..
.. bpo: 29083
.. date: 0069
.. nonce: tGTjr_
.. section: C API
Fixed the declaration of some public API functions. PyArg_VaParse() and
PyArg_VaParseTupleAndKeywords() were not available in limited API.
PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and Py_BuildValue()
were not available in limited API of version < 3.3 when PY_SSIZE_T_CLEAN is
defined.
..
.. bpo: 28769
.. date: 0068
.. nonce: Ecmtn8
.. section: C API
The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() is now of
type ``const char *`` rather of ``char *``.
..
.. bpo: 29058
.. date: 0067
.. nonce: 0wNVP8
.. section: C API
All stable API extensions added after Python 3.2 are now available only when
Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python
version supporting this API.
..
.. bpo: 28822
.. date: 0066
.. nonce: gMqwvb
.. section: C API
The index parameters *start* and *end* of PyUnicode_FindChar() are now
adjusted to behave like ``str[start:end]``.
..
.. bpo: 28808
.. date: 0065
.. nonce: A03X6r
.. section: C API
PyUnicode_CompareWithASCIIString() now never raises exceptions.
..
.. bpo: 28761
.. date: 0064
.. nonce: iOgCoX
.. section: C API
The fields name and doc of structures PyMemberDef, PyGetSetDef,
PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of
type ``const char *`` rather of ``char *``.
..
.. bpo: 28748
.. date: 0063
.. nonce: AMgb_G
.. section: C API
Private variable _Py_PackageContext is now of type ``const char *`` rather
of ``char *``.
..
.. bpo: 19569
.. date: 0062
.. nonce: IPke0J
.. section: C API
Compiler warnings are now emitted if use most of deprecated functions.
..
.. bpo: 28426
.. date: 0061
.. nonce: zPwvbI
.. section: C API
Deprecated undocumented functions PyUnicode_AsEncodedObject(),
PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and
PyUnicode_AsEncodedUnicode().

.. bpo: 23571
.. date: 8990
.. nonce: GTkAkq
.. release date: 2015-03-09
.. section: Core and Builtins
PyObject_Call() and PyCFunction_Call() now raise a SystemError if a function
returns a result and raises an exception. The SystemError is chained to the
previous exception.
..
.. bpo: 22524
.. date: 8989
.. nonce: Ks6_2x
.. section: Library
New os.scandir() function, part of the :pep:`471`: "os.scandir() function -- a
better and faster directory iterator". Patch written by Ben Hoyt.
..
.. bpo: 23103
.. date: 8988
.. nonce: I3RLIV
.. section: Library
Reduced the memory consumption of IPv4Address and IPv6Address.
..
.. bpo: 21793
.. date: 8987
.. nonce: GQtYMM
.. section: Library
BaseHTTPRequestHandler again logs response code as numeric, not as
stringified enum.  Patch by Demian Brecht.
..
.. bpo: 23476
.. date: 8986
.. nonce: 82QV9I
.. section: Library
In the ssl module, enable OpenSSL's X509_V_FLAG_TRUSTED_FIRST flag on
certificate stores when it is available.
..
.. bpo: 23576
.. date: 8985
.. nonce: 98F-PP
.. section: Library
Avoid stalling in SSL reads when EOF has been reached in the SSL layer but
the underlying connection hasn't been closed.
..
.. bpo: 23504
.. date: 8984
.. nonce: o31h5I
.. section: Library
Added an __all__ to the types module.
..
.. bpo: 23563
.. date: 8983
.. nonce: iQB-ba
.. section: Library
Optimized utility functions in urllib.parse.
..
.. bpo: 7830
.. date: 8982
.. nonce: irvPdC
.. section: Library
Flatten nested functools.partial.
..
.. bpo: 20204
.. date: 8981
.. nonce: DorA4b
.. section: Library
Added the __module__ attribute to _tkinter classes.
..
.. bpo: 19980
.. date: 8980
.. nonce: whwzL_
.. section: Library
Improved help() for non-recognized strings.  help('') now shows the help on
str.  help('help') now shows the help on help(). Original patch by Mark
Lawrence.
..
.. bpo: 23521
.. date: 8979
.. nonce: HvwFfd
.. section: Library
Corrected pure python implementation of timedelta division.
Eliminated OverflowError from ``timedelta * float`` for some floats;
Corrected rounding in timedelta true division.
..
.. bpo: 21619
.. date: 8978
.. nonce: uL0SZh
.. section: Library
Popen objects no longer leave a zombie after exit in the with statement if
the pipe was broken.  Patch by Martin Panter.
..
.. bpo: 22936
.. date: 8977
.. nonce: JrhGYd
.. section: Library
Make it possible to show local variables in tracebacks for both the
traceback module and unittest.
..
.. bpo: 15955
.. date: 8976
.. nonce: _8nYPy
.. section: Library
Add an option to limit the output size in bz2.decompress(). Patch by
Nikolaus Rath.
..
.. bpo: 6639
.. date: 8975
.. nonce: rmjUmG
.. section: Library
Module-level turtle functions no longer raise TclError after closing the
window.
..
.. bpo: 814253
.. date: 8974
.. nonce: icZb-I
.. section: Library
Group references and conditional group references now work in lookbehind
assertions in regular expressions. (See also: bpo-9179)
..
.. bpo: 23215
.. date: 8973
.. nonce: VHVSVX
.. section: Library
Multibyte codecs with custom error handlers that ignores errors consumed too
much memory and raised SystemError or MemoryError. Original patch by Aleksi
Torhamo.
..
.. bpo: 5700
.. date: 8972
.. nonce: iA5yzL
.. section: Library
io.FileIO() called flush() after closing the file. flush() was not called in
close() if closefd=False.
..
.. bpo: 23374
.. date: 8971
.. nonce: 8A9LuZ
.. section: Library
Fixed pydoc failure with non-ASCII files when stdout encoding differs from
file system encoding (e.g. on Mac OS).
..
.. bpo: 23481
.. date: 8970
.. nonce: ZWwliG
.. section: Library
Remove RC4 from the SSL module's default cipher list.
..
.. bpo: 21548
.. date: 8969
.. nonce: CmO_Yh
.. section: Library
Fix pydoc.synopsis() and pydoc.apropos() on modules with empty docstrings.
..
.. bpo: 22885
.. date: 8968
.. nonce: p8FnYk
.. section: Library
Fixed arbitrary code execution vulnerability in the dbm.dumb module.
Original patch by Claudiu Popa.
..
.. bpo: 23239
.. date: 8967
.. nonce: PGUq7T
.. section: Library
ssl.match_hostname() now supports matching of IP addresses.
..
.. bpo: 23146
.. date: 8966
.. nonce: PW-O3u
.. section: Library
Fix mishandling of absolute Windows paths with forward slashes in pathlib.
..
.. bpo: 23096
.. date: 8965
.. nonce: Ftrmf3
.. section: Library
Pickle representation of floats with protocol 0 now is the same for both
Python and C implementations.
..
.. bpo: 19105
.. date: 8964
.. nonce: ZK07Ff
.. section: Library
pprint now more efficiently uses free space at the right.
..
.. bpo: 14910
.. date: 8963
.. nonce: zueIhP
.. section: Library
Add allow_abbrev parameter to argparse.ArgumentParser. Patch by Jonathan
Paugh, Steven Bethard, paul j3 and Daniel Eriksson.
..
.. bpo: 21717
.. date: 8962
.. nonce: Knut81
.. section: Library
tarfile.open() now supports 'x' (exclusive creation) mode.
..
.. bpo: 23344
.. date: 8961
.. nonce: ieu8C1
.. section: Library
marshal.dumps() is now 20-25% faster on average.
..
.. bpo: 20416
.. date: 8960
.. nonce: cwEgkL
.. section: Library
marshal.dumps() with protocols 3 and 4 is now 40-50% faster on average.
..
.. bpo: 23421
.. date: 8959
.. nonce: eckzoV
.. section: Library
Fixed compression in tarfile CLI.  Patch by wdv4758h.
..
.. bpo: 23367
.. date: 8958
.. nonce: kHnFiz
.. section: Library
Fix possible overflows in the unicodedata module.
..
.. bpo: 23361
.. date: 8957
.. nonce: I_w0-z
.. section: Library
Fix possible overflow in Windows subprocess creation code.
..
.. bpo: 0
.. date: 8956
.. nonce: sfmjTs
.. section: Library
logging.handlers.QueueListener now takes a respect_handler_level keyword
argument which, if set to True, will pass messages to handlers taking
handler levels into account.
..
.. bpo: 19705
.. date: 8955
.. nonce: WLzTRV
.. section: Library
turtledemo now has a visual sorting algorithm demo.  Original patch from
Jason Yeo.
..
.. bpo: 23801
.. date: 8954
.. nonce: jyJK3z
.. section: Library
Fix issue where cgi.FieldStorage did not always ignore the entire preamble
to a multipart body.
..
.. bpo: 23445
.. date: 8953
.. nonce: 7fmkYO
.. section: Build
pydebug builds now use "gcc -Og" where possible, to make the resulting
executable faster.
..
.. bpo: 23686
.. date: 8952
.. nonce: B7jDXY
.. section: Build
Update OS X 10.5 installer build to use OpenSSL 1.0.2a.
..
.. bpo: 20204
.. date: 8951
.. nonce: M_jcNK
.. section: C API
Deprecation warning is now raised for builtin types without the __module__
attribute.
..
.. bpo: 23465
.. date: 8950
.. nonce: qBauCy
.. section: Windows
Implement :pep:`486` - Make the Python Launcher aware of virtual environments.
Patch by Paul Moore.
..
.. bpo: 23437
.. date: 8949
.. nonce: ro9X8r
.. section: Windows
Make user scripts directory versioned on Windows. Patch by Paul Moore.

.. bpo: 28128
.. date: 9744
.. nonce: Lc2sFu
.. release date: 2016-10-31
.. section: Core and Builtins
Deprecation warning for invalid str and byte escape sequences now prints
better information about where the error occurs. Patch by Serhiy Storchaka
and Eric Smith.
..
.. bpo: 28509
.. date: 9743
.. nonce: _Fa4Uq
.. section: Core and Builtins
dict.update() no longer allocate unnecessary large memory.
..
.. bpo: 28426
.. date: 9742
.. nonce: E_quyK
.. section: Core and Builtins
Fixed potential crash in PyUnicode_AsDecodedObject() in debug build.
..
.. bpo: 28517
.. date: 9741
.. nonce: ExPkm9
.. section: Core and Builtins
Fixed of-by-one error in the peephole optimizer that caused keeping
unreachable code.
..
.. bpo: 28214
.. date: 9740
.. nonce: 6ECJox
.. section: Core and Builtins
Improved exception reporting for problematic __set_name__ attributes.
..
.. bpo: 23782
.. date: 9739
.. nonce: lonDzj
.. section: Core and Builtins
Fixed possible memory leak in _PyTraceback_Add() and exception loss in
PyTraceBack_Here().
..
.. bpo: 28471
.. date: 9738
.. nonce: Vd5pv7
.. section: Core and Builtins
Fix "Python memory allocator called without holding the GIL" crash in
socket.setblocking.
..
.. bpo: 27517
.. date: 9737
.. nonce: 1CYM8A
.. section: Library
LZMA compressor and decompressor no longer raise exceptions if given empty
data twice.  Patch by Benjamin Fogle.
..
.. bpo: 28549
.. date: 9736
.. nonce: ShnM2y
.. section: Library
Fixed segfault in curses's addch() with ncurses6.
..
.. bpo: 28449
.. date: 9735
.. nonce: 5JK6ES
.. section: Library
tarfile.open() with mode "r" or "r:" now tries to open a tar file with
compression before trying to open it without compression.  Otherwise it had
50% chance failed with ignore_zeros=True.
..
.. bpo: 23262
.. date: 9734
.. nonce: 6EVB7N
.. section: Library
The webbrowser module now supports Firefox 36+ and derived browsers.  Based
on patch by Oleg Broytman.
..
.. bpo: 27939
.. date: 9733
.. nonce: mTfADV
.. section: Library
Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused by
representing the scale as float value internally in Tk.  tkinter.IntVar now
works if float value is set to underlying Tk variable.
..
.. bpo: 18844
.. date: 9732
.. nonce: oif1-H
.. section: Library
The various ways of specifying weights for random.choices() now produce the
same result sequences.
..
.. bpo: 28255
.. date: 9731
.. nonce: _ZH4wm
.. section: Library
calendar.TextCalendar().prmonth() no longer prints a space at the start of
new line after printing a month's calendar.  Patch by Xiang Zhang.
..
.. bpo: 20491
.. date: 9730
.. nonce: ObgnQ2
.. section: Library
The textwrap.TextWrapper class now honors non-breaking spaces. Based on
patch by Kaarle Ritvanen.
..
.. bpo: 28353
.. date: 9729
.. nonce: sKGbLL
.. section: Library
os.fwalk() no longer fails on broken links.
..
.. bpo: 28430
.. date: 9728
.. nonce: 4MiEYT
.. section: Library
Fix iterator of C implemented asyncio.Future doesn't accept non-None value
is passed to it.send(val).
..
.. bpo: 27025
.. date: 9727
.. nonce: foAViS
.. section: Library
Generated names for Tkinter widgets now start by the "!" prefix for
readability.
..
.. bpo: 25464
.. date: 9726
.. nonce: HDUTCu
.. section: Library
Fixed HList.header_exists() in tkinter.tix module by addin a workaround to
Tix library bug.
..
.. bpo: 28488
.. date: 9725
.. nonce: TgO112
.. section: Library
shutil.make_archive() no longer adds entry "./" to ZIP archive.
..
.. bpo: 25953
.. date: 9724
.. nonce: EKKJAQ
.. section: Library
re.sub() now raises an error for invalid numerical group reference in
replacement template even if the pattern is not found in the string.  Error
message for invalid group reference now includes the group index and the
position of the reference. Based on patch by SilentGhost.
..
.. bpo: 18219
.. date: 9723
.. nonce: 1ANQN1
.. section: Library
Optimize csv.DictWriter for large number of columns. Patch by Mariatta
Wijaya.
..
.. bpo: 28448
.. date: 9722
.. nonce: 5bduWe
.. section: Library
Fix C implemented asyncio.Future didn't work on Windows.
..
.. bpo: 28480
.. date: 9721
.. nonce: 9lHw6m
.. section: Library
Fix error building socket module when multithreading is disabled.
..
.. bpo: 24452
.. date: 9720
.. nonce: m9Kyg3
.. section: Library
Make webbrowser support Chrome on Mac OS X.
..
.. bpo: 20766
.. date: 9719
.. nonce: 4kvCzx
.. section: Library
Fix references leaked by pdb in the handling of SIGINT handlers.
..
.. bpo: 28492
.. date: 9718
.. nonce: pFRLQE
.. section: Library
Fix how StopIteration exception is raised in _asyncio.Future.
..
.. bpo: 28500
.. date: 9717
.. nonce: NINKzZ
.. section: Library
Fix asyncio to handle async gens GC from another thread.
..
.. bpo: 26923
.. date: 9716
.. nonce: 8dh3AV
.. section: Library
Fix asyncio.Gather to refuse being cancelled once all children are done.
Patch by Johannes Ebke.
..
.. bpo: 26796
.. date: 9715
.. nonce: TZyAfJ
.. section: Library
Don't configure the number of workers for default threadpool executor.
Initial patch by Hans Lawrenz.
..
.. bpo: 28544
.. date: 9714
.. nonce: KD1oFP
.. section: Library
Implement asyncio.Task in C.
..
.. bpo: 28522
.. date: 9713
.. nonce: XHMQa7
.. section: Windows
Fixes mishandled buffer reallocation in getpathp.c
..
.. bpo: 28444
.. date: 9712
.. nonce: zkc9nT
.. section: Build
Fix missing extensions modules when cross compiling.
..
.. bpo: 28208
.. date: 9711
.. nonce: DtoP1i
.. section: Build
Update Windows build and OS X installers to use SQLite 3.14.2.
..
.. bpo: 28248
.. date: 9710
.. nonce: KY_-en
.. section: Build
Update Windows build and OS X installers to use OpenSSL 1.0.2j.
..
.. bpo: 26944
.. date: 9709
.. nonce: ChZ_BO
.. section: Tests
Fix test_posix for Android where 'id -G' is entirely wrong or missing the
effective gid.
..
.. bpo: 28409
.. date: 9708
.. nonce: Q2IlxJ
.. section: Tests
regrtest: fix the parser of command line arguments.

.. bpo: 38945
.. date: 2019-12-01-22-44-40
.. nonce: ztmNXc
.. release date: 2019-12-18
.. section: Security
Newline characters have been escaped when performing uu encoding to prevent
them from overflowing into to content section of the encoded file. This
prevents malicious or accidental modification of data during the decoding
process.
..
.. bpo: 37228
.. date: 2019-11-21-21-36-54
.. nonce: yBZnFG
.. section: Security
Due to significant security concerns, the *reuse_address* parameter of
:meth:`asyncio.loop.create_datagram_endpoint` is no longer supported. This
is because of the behavior of ``SO_REUSEADDR`` in UDP. For more details, see
the documentation for ``loop.create_datagram_endpoint()``. (Contributed by
Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:`37228`.)
..
.. bpo: 38804
.. date: 2019-11-15-00-54-42
.. nonce: vjbM8V
.. section: Security
Fixes a ReDoS vulnerability in :mod:`http.cookiejar`. Patch by Ben Caller.
..
.. bpo: 39028
.. date: 2019-12-17-23-20-51
.. nonce: SND4TB
.. section: Core and Builtins
Slightly improve the speed of keyword argument parsing with many kwargs by
strengthening the assumption that kwargs are interned strings.
..
.. bpo: 39080
.. date: 2019-12-17-21-45-36
.. nonce: OrxEVS
.. section: Core and Builtins
Fix the value of *end_col_offset* for Starred Expression AST nodes when they
are among the elements in the *args* attribute of Call AST nodes.
..
.. bpo: 39031
.. date: 2019-12-12-21-05-43
.. nonce: imlCYZ
.. section: Core and Builtins
When parsing an "elif" node, lineno and col_offset of the node now point to
the "elif" keyword and not to its condition, making it consistent with the
"if" node. Patch by Lysandros Nikolaou.
..
.. bpo: 20443
.. date: 2019-12-09-17-05-53
.. nonce: 8OyT5P
.. section: Core and Builtins
In Python 3.9.0a1, sys.argv[0] was made an absolute path if a filename was
specified on the command line. Revert this change, since most users expect
sys.argv to be unmodified.
..
.. bpo: 39008
.. date: 2019-12-09-10-38-51
.. nonce: Rrp6f1
.. section: Core and Builtins
:c:func:`PySys_Audit` now requires ``Py_ssize_t`` to be used for size
arguments in the format string, regardless of whether ``PY_SSIZE_T_CLEAN``
was defined at include time.
..
.. bpo: 38673
.. date: 2019-12-01-00-17-44
.. nonce: K_Tze-
.. section: Core and Builtins
In REPL mode, don't switch to PS2 if the line starts with comment or
whitespace. Based on work by Batuhan Taşkaya.
..
.. bpo: 38922
.. date: 2019-11-26-12-20-34
.. nonce: i6ja-i
.. section: Core and Builtins
Calling ``replace`` on a code object now raises the ``code.__new__`` audit
event.
..
.. bpo: 38920
.. date: 2019-11-26-09-16-47
.. nonce: Vx__sT
.. section: Core and Builtins
Add audit hooks for when :func:`sys.excepthook` and
:func:`sys.unraisablehook` are invoked.
..
.. bpo: 38892
.. date: 2019-11-22-22-18-50
.. nonce: LS586s
.. section: Core and Builtins
Improve documentation for audit events table and functions.
..
.. bpo: 38852
.. date: 2019-11-22-09-55-21
.. nonce: y7oPEa
.. section: Core and Builtins
Set the thread stack size to 8 Mb for debug builds on android platforms.
..
.. bpo: 38858
.. date: 2019-11-21-09-02-49
.. nonce: bDLH04
.. section: Core and Builtins
Each Python subinterpreter now has its own "small integer singletons":
numbers in [-5; 257] range. It is no longer possible to change the number of
small integers at build time by overriding ``NSMALLNEGINTS`` and
``NSMALLPOSINTS`` macros: macros should now be modified manually in
``pycore_pystate.h`` header file.
..
.. bpo: 36854
.. date: 2019-11-20-12-01-37
.. nonce: Zga_md
.. section: Core and Builtins
The garbage collector state becomes per interpreter
(``PyInterpreterState.gc``), rather than being global
(``_PyRuntimeState.gc``).
..
.. bpo: 38835
.. date: 2019-11-18-16-37-49
.. nonce: -U4se1
.. section: Core and Builtins
The ``PyFPE_START_PROTECT()`` and ``PyFPE_END_PROTECT()`` macros are empty:
they have been doing nothing for the last year, so stop using them.
..
.. bpo: 38328
.. date: 2019-11-11-23-44-15
.. nonce: IFrrjq
.. section: Core and Builtins
Sped up the creation time of constant :class:`list` and :class:`set`
displays. Patch by Brandt Bucher.
..
.. bpo: 38707
.. date: 2019-11-08-00-36-10
.. nonce: SZL036
.. section: Core and Builtins
``MainThread.native_id`` is now correctly reset in child processes spawned
using :class:`multiprocessing.Process`, instead of retaining the parent's
value.
..
.. bpo: 38629
.. date: 2019-10-29-17-11-15
.. nonce: 3qinhF
.. section: Core and Builtins
Added ``__floor__`` and ``__ceil__`` methods to float object. Patch by
Batuhan Taşkaya.
..
.. bpo: 27145
.. date: 2019-09-06-16-40-12
.. nonce: njuCXU
.. section: Core and Builtins
int + int and int - int operators can now return small integer singletons.
Patch by hongweipeng.
..
.. bpo: 38021
.. date: 2019-09-03-19-16-57
.. nonce: KnUhdB
.. section: Core and Builtins
Provide a platform tag for AIX that is sufficient for PEP425 binary
distribution identification. Patch by Michael Felt.
..
.. bpo: 35409
.. date: 2019-07-13-18-01-13
.. nonce: ozbcsR
.. section: Core and Builtins
Ignore GeneratorExit exceptions when throwing an exception into the aclose
coroutine of an asynchronous generator.
..
.. bpo: 33387
.. date: 2018-03-13-14-46-03
.. nonce: v821M7
.. section: Core and Builtins
Removed WITH_CLEANUP_START, WITH_CLEANUP_FINISH, BEGIN_FINALLY, END_FINALLY,
CALL_FINALLY and POP_FINALLY bytecodes. Replaced with RERAISE and
WITH_EXCEPT_START bytecodes. The compiler now generates different code for
exceptional and non-exceptional branches for 'with' and 'try-except'
statements. For 'try-finally' statements the 'finally' block is replicated
for each exit from the 'try' body.
..
.. bpo: 39033
.. date: 2019-12-13-18-54-49
.. nonce: cepuyD
.. section: Library
Fix :exc:`NameError` in :mod:`zipimport`. Patch by Karthikeyan Singaravelan.
..
.. bpo: 39022
.. date: 2019-12-10-23-34-48
.. nonce: QDtIxI
.. section: Library
Update importlib.metadata to include improvements from importlib_metadata
1.3 including better serialization of EntryPoints and improved documentation
for custom finders.
..
.. bpo: 39006
.. date: 2019-12-09-14-40-09
.. nonce: v4VsPg
.. section: Library
Fix asyncio when the ssl module is missing: only check for ssl.SSLSocket
instance if the ssl module is available.
..
.. bpo: 38708
.. date: 2019-12-07-22-25-39
.. nonce: rZTUfk
.. section: Library
Fix a potential IndexError in email parser when parsing an empty msg-id.
..
.. bpo: 38698
.. date: 2019-12-07-21-49-50
.. nonce: HxoSym
.. section: Library
Add a new ``InvalidMessageID`` token to email parser to represent invalid
Message-ID headers.  Also, add defects when there is remaining value after
parsing the header.
..
.. bpo: 38994
.. date: 2019-12-07-18-58-44
.. nonce: IJYhz_
.. section: Library
Implement ``__class_getitem__`` for ``os.PathLike``, ``pathlib.Path``.
..
.. bpo: 38979
.. date: 2019-12-07-16-32-42
.. nonce: q0sIHy
.. section: Library
Return class from ``ContextVar.__class_getitem__`` to simplify subclassing.
..
.. bpo: 38978
.. date: 2019-12-07-13-40-52
.. nonce: R3gHZI
.. section: Library
Implement ``__class_getitem__`` on asyncio objects (Future, Task, Queue).
Patch by Batuhan Taskaya.
..
.. bpo: 38916
.. date: 2019-12-06-18-47-56
.. nonce: K-raU8
.. section: Library
:class:`array.array`: Remove ``tostring()`` and ``fromstring()`` methods.
They were aliases to ``tobytes()`` and ``frombytes()``, deprecated since
Python 3.2.
..
.. bpo: 38986
.. date: 2019-12-06-15-11-42
.. nonce: bg6iZt
.. section: Library
Make repr of C accelerated TaskWakeupMethWrapper the same as of pure Python
version.
..
.. bpo: 38982
.. date: 2019-12-05-18-21-26
.. nonce: W3u-03
.. section: Library
Fix asyncio ``PidfdChildWatcher``: handle ``waitpid()`` error. If
``waitpid()`` is called elsewhere, ``waitpid()`` call fails with
:exc:`ChildProcessError`: use return code 255 in this case, and log a
warning. It ensures that the pidfd file descriptor is closed if this error
occurs.
..
.. bpo: 38529
.. date: 2019-12-05-16-13-25
.. nonce: yvQgx3
.. section: Library
Drop too noisy asyncio warning about deletion of a stream without explicit
``.close()`` call.
..
.. bpo: 27413
.. date: 2019-12-05-02-02-58
.. nonce: 212Th2
.. section: Library
Added ability to pass through ``ensure_ascii`` options to json.dumps in the
``json.tool`` command-line interface.
..
.. bpo: 38634
.. date: 2019-12-04-15-56-28
.. nonce: pq0ZWa
.. section: Library
The :mod:`readline` module now detects if Python is linked to libedit at
runtime on all platforms.  Previously, the check was only done on macOS.
..
.. bpo: 33684
.. date: 2019-12-04-15-28-40
.. nonce: QeSmQP
.. section: Library
Fix ``json.tool`` failed to read a JSON file with non-ASCII characters when
locale encoding is not UTF-8.
..
.. bpo: 38698
.. date: 2019-12-02-10-35-19
.. nonce: WZnAPQ
.. section: Library
Prevent UnboundLocalError to pop up in parse_message_id.
parse_message_id() was improperly using a token defined inside an exception
handler, which was raising ``UnboundLocalError`` on parsing an invalid value.
Patch by Claudiu Popa.
..
.. bpo: 38927
.. date: 2019-11-27-17-47-00
.. nonce: qT7xKY
.. section: Library
Use ``python -m pip`` instead of ``pip`` to upgrade dependencies in venv.
..
.. bpo: 26730
.. date: 2019-11-27-16-30-02
.. nonce: 56cdBn
.. section: Library
Fix ``SpooledTemporaryFile.rollover()`` might corrupt the file when it is in
text mode. Patch by Serhiy Storchaka.
..
.. bpo: 38881
.. date: 2019-11-22-20-03-46
.. nonce: 7HV1Q0
.. section: Library
random.choices() now raises a ValueError when all the weights are zero.
..
.. bpo: 38876
.. date: 2019-11-22-10-58-58
.. nonce: qqy1Vp
.. section: Library
Raise pickle.UnpicklingError when loading an item from memo for invalid
input.
The previous code was raising a ``KeyError`` for both the Python and C
implementation. This was caused by the specified index of an invalid input
which did not exist in the memo structure, where the pickle stores what
objects it has seen. The malformed input would have caused either a ``BINGET``
or ``LONG_BINGET`` load from the memo, leading to a ``KeyError`` as the
determined index was bogus. Patch by Claudiu Popa.
..
.. bpo: 38688
.. date: 2019-11-22-10-45-03
.. nonce: iKx23z
.. section: Library
Calling func:``shutil.copytree`` to copy a directory tree from one directory
to another subdirectory resulted in an endless loop and a RecursionError. A
fix was added to consume an iterator and create the list of the entries to
be copied, avoiding the recursion for newly created directories. Patch by
Bruno P. Kinoshita.
..
.. bpo: 38863
.. date: 2019-11-21-16-30-00
.. nonce: RkdTjf
.. section: Library
Improve :func:`is_cgi` function in :mod:`http.server`, which enables
processing the case that cgi directory is a child of another directory other
than root.
..
.. bpo: 37838
.. date: 2019-11-21-11-39-17
.. nonce: lRFcEC
.. section: Library
:meth:`typing.get_type_hints` properly handles functions decorated with
:meth:`functools.wraps`.
..
.. bpo: 38870
.. date: 2019-11-20-22-43-48
.. nonce: rLVZEv
.. section: Library
Expose :func:`ast.unparse` as a function of the :mod:`ast` module that can
be used to unparse an :class:`ast.AST` object and produce a string with code
that would produce an equivalent :class:`ast.AST` object when parsed. Patch
by Pablo Galindo and Batuhan Taskaya.
..
.. bpo: 38859
.. date: 2019-11-19-16-30-46
.. nonce: AZUzL8
.. section: Library
AsyncMock now returns StopAsyncIteration on the exhaustion of a side_effects
iterable. Since PEP-479 its Impossible to raise a StopIteration exception
from a coroutine.
..
.. bpo: 38857
.. date: 2019-11-19-16-28-25
.. nonce: YPUkU9
.. section: Library
AsyncMock fix for return values that are awaitable types.  This also covers
side_effect iterable values that happened to be awaitable, and wraps
callables that return an awaitable type. Before these awaitables were being
awaited instead of being returned as is.
..
.. bpo: 38834
.. date: 2019-11-18-17-08-23
.. nonce: abcdef
.. section: Library
:class:`typing.TypedDict` subclasses now track which keys are optional using
the ``__required_keys__`` and ``__optional_keys__`` attributes, to enable
runtime validation by downstream projects.  Patch by Zac Hatfield-Dodds.
..
.. bpo: 38821
.. date: 2019-11-16-23-26-25
.. nonce: -albNN
.. section: Library
Fix unhandled exceptions in :mod:`argparse` when internationalizing error
messages for arguments with ``nargs`` set to special (non-integer) values.
Patch by Federico Bond.
..
.. bpo: 38820
.. date: 2019-11-16-16-09-07
.. nonce: ivhUSV
.. section: Library
Make Python compatible with OpenSSL 3.0.0. :func:`ssl.SSLSocket.getpeercert`
no longer returns IPv6 addresses with a trailing new line.
..
.. bpo: 38811
.. date: 2019-11-15-18-06-04
.. nonce: AmdQ6M
.. section: Library
Fix an unhandled exception in :mod:`pathlib` when :meth:`os.link` is
missing. Patch by Toke Høiland-Jørgensen.
..
.. bpo: 38686
.. date: 2019-11-06-15-26-15
.. nonce: HNFBce
.. section: Library
Added support for multiple ``qop`` values in
:class:`urllib.request.AbstractDigestAuthHandler`.
..
.. bpo: 38712
.. date: 2019-11-05-21-10-12
.. nonce: ezJ0TP
.. section: Library
Add the Linux-specific :func:`signal.pidfd_send_signal` function, which
allows sending a signal to a process identified by a file descriptor rather
than a pid.
..
.. bpo: 38348
.. date: 2019-10-02-18-15-28
.. nonce: _-5eq2
.. section: Library
Add ``-i`` and ``--indent`` (indentation level), and ``--no-type-comments``
(type comments) command line options to ast parsing tool.
..
.. bpo: 37523
.. date: 2019-10-02-02-55-37
.. nonce: GguwJ6
.. section: Library
Change :class:`zipfile.ZipExtFile` to raise ``ValueError`` when trying to
access the underlying file object after it has been closed. This new
behavior is consistent with how accessing closed files is handled in other
parts of Python.
..
.. bpo: 38045
.. date: 2019-09-30-12-09-41
.. nonce: VDRtd3
.. section: Library
Improve the performance of :func:`enum._decompose` in :mod:`enum`. Patch by
hongweipeng.
..
.. bpo: 36820
.. date: 2019-05-06-15-34-17
.. nonce: Eh5mIB
.. section: Library
Break cycle generated when saving an exception in socket.py, codeop.py and
dyld.py as they keep alive not only the exception but user objects through
the ``__traceback__`` attribute. Patch by Mario Corchero.
..
.. bpo: 36406
.. date: 2019-03-24-12-12-27
.. nonce: mCEkOl
.. section: Library
Handle namespace packages in :mod:`doctest`. Patch by Karthikeyan
Singaravelan.
..
.. bpo: 34776
.. date: 2018-09-23-14-24-37
.. nonce: 1SrQe3
.. section: Library
Fix dataclasses to support forward references in type annotations
..
.. bpo: 20928
.. date: 2018-03-30-16-18-12
.. nonce: ieXu6I
.. section: Library
ElementTree supports recursive XInclude processing.  Patch by Stefan Behnel.
..
.. bpo: 29636
.. date: 2018-02-22-11-24-33
.. nonce: ogGRE2
.. section: Library
Add whitespace options for formatting JSON with the ``json.tool`` CLI. The
following mutually exclusive options are now supported: ``--indent`` for
setting the indent level in spaces; ``--tab`` for indenting with tabs;
``--no-indent`` for suppressing newlines; and ``--compact`` for suppressing
all whitespace. The default behavior remains the same as ``--indent=4``.
..
.. bpo: 38928
.. date: 2019-11-27-17-51-27
.. nonce: AfgvfO
.. section: Documentation
Correct when venv's ``upgrade_dependencies()`` and ``--upgrade-deps`` are
added.
..
.. bpo: 38899
.. date: 2019-11-22-15-57-29
.. nonce: 4aYPW2
.. section: Documentation
Update documentation to state that to activate virtual environments under
fish one should use ``source``, not ``.`` as documented at
https://fishshell.com/docs/current/cmds/source.html.
..
.. bpo: 22377
.. date: 2019-10-01-10-53-46
.. nonce: 5ni-iC
.. section: Documentation
Improves documentation of the values that :meth:`datetime.datetime.strptime`
accepts for ``%Z``. Patch by Karl Dubost.
..
.. bpo: 38546
.. date: 2019-12-18-14-52-08
.. nonce: 2kxNuM
.. section: Tests
Fix test_ressources_gced_in_workers() of test_concurrent_futures: explicitly
stop the manager to prevent leaking a child process running in the
background after the test completes.
..
.. bpo: 38546
.. date: 2019-12-17-15-27-07
.. nonce: 82JwN2
.. section: Tests
Multiprocessing and concurrent.futures tests now stop the resource tracker
process when tests complete.
..
.. bpo: 38614
.. date: 2019-12-10-14-26-23
.. nonce: 89JpNh
.. section: Tests
Replace hardcoded timeout constants in tests with new :mod:`test.support`
constants: :data:`~test.support.LOOPBACK_TIMEOUT`,
:data:`~test.support.INTERNET_TIMEOUT`, :data:`~test.support.SHORT_TIMEOUT`
and :data:`~test.support.LONG_TIMEOUT`. It becomes easier to adjust these
four timeout constants for all tests at once, rather than having to adjust
every single test file.
..
.. bpo: 38547
.. date: 2019-12-09-11-32-34
.. nonce: Juw54e
.. section: Tests
Fix test_pty: if the process is the session leader, closing the master file
descriptor raises a SIGHUP signal: simply ignore SIGHUP when running the
tests.
..
.. bpo: 38992
.. date: 2019-12-08-15-11-06
.. nonce: cVoHOZ
.. section: Tests
Fix a test for :func:`math.fsum` that was failing due to constant folding.
..
.. bpo: 38991
.. date: 2019-12-07-00-52-09
.. nonce: JE3_o-
.. section: Tests
:mod:`test.support`: :func:`~test.support.run_python_until_end`,
:func:`~test.support.assert_python_ok` and
:func:`~test.support.assert_python_failure` functions no longer strip
whitespaces from stderr. Remove ``test.support.strip_python_stderr()``
function.
..
.. bpo: 38965
.. date: 2019-12-04-17-08-55
.. nonce: yqax3m
.. section: Tests
Fix test_faulthandler on GCC 10. Use the "volatile" keyword in
``faulthandler._stack_overflow()`` to prevent tail call optimization on any
compiler, rather than relying on compiler specific pragma.
..
.. bpo: 38875
.. date: 2019-11-21-09-11-06
.. nonce: wSZJal
.. section: Tests
test_capi: trashcan tests now require the test "cpu" resource.
..
.. bpo: 38841
.. date: 2019-11-20-16-08-19
.. nonce: 5F5Lbw
.. section: Tests
Skip asyncio test_create_datagram_endpoint_existing_sock_unix on platforms
lacking a functional bind() for named unix domain sockets.
..
.. bpo: 38692
.. date: 2019-11-20-15-42-06
.. nonce: aqAvyF
.. section: Tests
Skip the test_posix.test_pidfd_open() test if ``os.pidfd_open()`` fails with
a :exc:`PermissionError`. This situation can happen in a Linux sandbox using
a syscall whitelist which doesn't allow the ``pidfd_open()`` syscall yet.
..
.. bpo: 38839
.. date: 2019-11-18-22-10-55
.. nonce: di6tXv
.. section: Tests
Fix some unused functions in tests. Patch by Adam Johnson.
..
.. bpo: 38669
.. date: 2019-11-04-02-54-16
.. nonce: pazXZ8
.. section: Tests
Raise :exc:`TypeError` when passing target as a string with
:meth:`unittest.mock.patch.object`.
..
.. bpo: 37957
.. date: 2019-10-30-00-01-43
.. nonce: X1r78F
.. section: Tests
test.regrtest now can receive a list of test patterns to ignore (using the
-i/--ignore argument) or a file with a list of patterns to ignore (using the
--ignore-file argument). Patch by Pablo Galindo.
..
.. bpo: 37404
.. date: 2019-12-01-21-45-24
.. nonce: cNsA7S
.. section: Build
:mod:`asyncio` now raises :exc:`TypeError` when calling incompatible
methods with an :class:`ssl.SSLSocket` socket.  Patch by Ido Michael.
..
.. bpo: 36500
.. date: 2019-04-02-01-59-26
.. nonce: fyG6_U
.. section: Build
Added an optional "regen" project to the Visual Studio solution that will
regenerate all grammar, tokens, and opcodes.
..
.. bpo: 39007
.. date: 2019-12-09-10-40-34
.. nonce: vtarxo
.. section: Windows
Add auditing events to functions in :mod:`winreg`.
..
.. bpo: 33125
.. date: 2019-11-14-08-57-50
.. nonce: EN5MWS
.. section: Windows
Add support for building and releasing Windows ARM64 packages.
..
.. bpo: 37931
.. date: 2019-08-23-12-14-34
.. nonce: goYgQj
.. section: macOS
Fixed a crash on OSX dynamic builds that occurred when re-initializing the
posix module after a Py_Finalize if the environment had changed since the
previous ``import posix``. Patch by Benoît Hudson.
..
.. bpo: 38944
.. date: 2019-11-30-12-10-36
.. nonce: _3xjKG
.. section: IDLE
Escape key now closes IDLE completion windows.  Patch by Johnny Najera.
..
.. bpo: 38943
.. date: 2019-11-29-23-44-11
.. nonce: 8pUKKs
.. section: IDLE
Fix IDLE autocomplete windows not always appearing on some systems. Patch by
Johnny Najera.
..
.. bpo: 38862
.. date: 2019-11-23-21-50-57
.. nonce: KQ9A0m
.. section: IDLE
'Strip Trailing Whitespace' on the Format menu removes extra newlines at the
end of non-shell files.
..
.. bpo: 38636
.. date: 2019-10-30-22-11-16
.. nonce: hUhDeB
.. section: IDLE
Fix IDLE Format menu tab toggle and file indent width. These functions
(default shortcuts Alt-T and Alt-U) were mistakenly disabled in 3.7.5 and
3.8.0.
..
.. bpo: 38896
.. date: 2019-11-22-19-43-43
.. nonce: 6wvNMJ
.. section: C API
Remove ``PyUnicode_ClearFreeList()`` function: the Unicode free list has
been removed in Python 3.3.
..
.. bpo: 37340
.. date: 2019-11-20-11-08-06
.. nonce: JBQJMS
.. section: C API
Remove ``PyMethod_ClearFreeList()`` and ``PyCFunction_ClearFreeList()``
functions: the free lists of bound method objects have been removed.
..
.. bpo: 38835
.. date: 2019-11-18-15-38-23
.. nonce: II8Szd
.. section: C API
Exclude ``PyFPE_START_PROTECT()`` and ``PyFPE_END_PROTECT()`` macros of
``pyfpe.h`` from ``Py_LIMITED_API`` (stable API).

.. bpo: 25630
.. date: 9450
.. nonce: ZxzcoY
.. release date: 2015-11-22
.. section: Core and Builtins
Fix a possible segfault during argument parsing in functions that accept
filesystem paths.
..
.. bpo: 23564
.. date: 9449
.. nonce: XHarGG
.. section: Core and Builtins
Fixed a partially broken sanity check in the _posixsubprocess internals
regarding how fds_to_pass were passed to the child.  The bug had no actual
impact as subprocess.py already avoided it.
..
.. bpo: 25388
.. date: 9448
.. nonce: zm3uuQ
.. section: Core and Builtins
Fixed tokenizer crash when processing undecodable source code with a null
byte.
..
.. bpo: 25462
.. date: 9447
.. nonce: eXDzgO
.. section: Core and Builtins
The hash of the key now is calculated only once in most operations in C
implementation of OrderedDict.
..
.. bpo: 22995
.. date: 9446
.. nonce: 90kpuP
.. section: Core and Builtins
Default implementation of __reduce__ and __reduce_ex__ now rejects builtin
types with not defined __new__.
..
.. bpo: 25555
.. date: 9445
.. nonce: MUpG-j
.. section: Core and Builtins
Fix parser and AST: fill lineno and col_offset of "arg" node when compiling
AST from Python objects.
..
.. bpo: 24802
.. date: 9444
.. nonce: Qie066
.. section: Core and Builtins
Avoid buffer overreads when int(), float(), compile(), exec() and eval() are
passed bytes-like objects.  These objects are not necessarily terminated by
a null byte, but the functions assumed they were.
..
.. bpo: 24726
.. date: 9443
.. nonce: AHk4v2
.. section: Core and Builtins
Fixed a crash and leaking NULL in repr() of OrderedDict that was mutated by
direct calls of dict methods.
..
.. bpo: 25449
.. date: 9442
.. nonce: VqTOFi
.. section: Core and Builtins
Iterating OrderedDict with keys with unstable hash now raises KeyError in C
implementations as well as in Python implementation.
..
.. bpo: 25395
.. date: 9441
.. nonce: htkE3W
.. section: Core and Builtins
Fixed crash when highly nested OrderedDict structures were garbage
collected.
..
.. bpo: 25274
.. date: 9440
.. nonce: QCGvAF
.. section: Core and Builtins
sys.setrecursionlimit() now raises a RecursionError if the new recursion
limit is too low depending at the current recursion depth. Modify also the
"lower-water mark" formula to make it monotonic. This mark is used to decide
when the overflowed flag of the thread state is reset.
..
.. bpo: 24402
.. date: 9439
.. nonce: MAgi3X
.. section: Core and Builtins
Fix input() to prompt to the redirected stdout when sys.stdout.fileno()
fails.
..
.. bpo: 24806
.. date: 9438
.. nonce: Nb0znT
.. section: Core and Builtins
Prevent builtin types that are not allowed to be subclassed from being
subclassed through multiple inheritance.
..
.. bpo: 24848
.. date: 9437
.. nonce: HlUSuy
.. section: Core and Builtins
Fixed a number of bugs in UTF-7 decoding of misformed data.
..
.. bpo: 25280
.. date: 9436
.. nonce: ivTMwd
.. section: Core and Builtins
Import trace messages emitted in verbose (-v) mode are no longer formatted
twice.
..
.. bpo: 25003
.. date: 9435
.. nonce: _ban92
.. section: Core and Builtins
On Solaris 11.3 or newer, os.urandom() now uses the getrandom() function
instead of the getentropy() function. The getentropy() function is blocking
to generate very good quality entropy, os.urandom() doesn't need such
high-quality entropy.
..
.. bpo: 25182
.. date: 9434
.. nonce: gBDq-T
.. section: Core and Builtins
The stdprinter (used as sys.stderr before the io module is imported at
startup) now uses the backslashreplace error handler.
..
.. bpo: 25131
.. date: 9433
.. nonce: j5hH6a
.. section: Core and Builtins
Make the line number and column offset of set/dict literals and
comprehensions correspond to the opening brace.
..
.. bpo: 25150
.. date: 9432
.. nonce: 0Gh-Ty
.. section: Core and Builtins
Hide the private :samp:`_Py_atomic_{xxx}` symbols from the public Python.h header to
fix a compilation error with OpenMP. PyThreadState_GET() becomes an alias to
PyThreadState_Get() to avoid ABI incompatibilities.
..
.. bpo: 25626
.. date: 9431
.. nonce: TQ3fvb
.. section: Library
Change three zlib functions to accept sizes that fit in Py_ssize_t, but
internally cap those sizes to UINT_MAX.  This resolves a regression in 3.5
where GzipFile.read() failed to read chunks larger than 2 or 4 GiB.  The
change affects the zlib.Decompress.decompress() max_length parameter, the
zlib.decompress() bufsize parameter, and the zlib.Decompress.flush() length
parameter.
..
.. bpo: 25583
.. date: 9430
.. nonce: Gk-cim
.. section: Library
Avoid incorrect errors raised by os.makedirs(exist_ok=True) when the OS
gives priority to errors such as EACCES over EEXIST.
..
.. bpo: 25593
.. date: 9429
.. nonce: 56uegI
.. section: Library
Change semantics of EventLoop.stop() in asyncio.
..
.. bpo: 6973
.. date: 9428
.. nonce: nl5cHt
.. section: Library
When we know a subprocess.Popen process has died, do not allow the
send_signal(), terminate(), or kill() methods to do anything as they could
potentially signal a different process.
..
.. bpo: 25590
.. date: 9427
.. nonce: aCt-yW
.. section: Library
In the Readline completer, only call getattr() once per attribute.
..
.. bpo: 25498
.. date: 9426
.. nonce: AvqEBl
.. section: Library
Fix a crash when garbage-collecting ctypes objects created by wrapping a
memoryview.  This was a regression made in 3.5a1.  Based on patch by
Eryksun.
..
.. bpo: 25584
.. date: 9425
.. nonce: 124mYw
.. section: Library
Added "escape" to the __all__ list in the glob module.
..
.. bpo: 25584
.. date: 9424
.. nonce: ZeWX0J
.. section: Library
Fixed recursive glob() with patterns starting with ``**``.
..
.. bpo: 25446
.. date: 9423
.. nonce: k1DByx
.. section: Library
Fix regression in smtplib's AUTH LOGIN support.
..
.. bpo: 18010
.. date: 9422
.. nonce: Azyf1C
.. section: Library
Fix the pydoc web server's module search function to handle exceptions from
importing packages.
..
.. bpo: 25554
.. date: 9421
.. nonce: UM9MlR
.. section: Library
Got rid of circular references in regular expression parsing.
..
.. bpo: 25510
.. date: 9420
.. nonce: 79g7LA
.. section: Library
fileinput.FileInput.readline() now returns b'' instead of '' at the end if
the FileInput was opened with binary mode. Patch by Ryosuke Ito.
..
.. bpo: 25503
.. date: 9419
.. nonce: Zea0Y7
.. section: Library
Fixed inspect.getdoc() for inherited docstrings of properties. Original
patch by John Mark Vandenberg.
..
.. bpo: 25515
.. date: 9418
.. nonce: fQsyYG
.. section: Library
Always use os.urandom as a source of randomness in uuid.uuid4.
..
.. bpo: 21827
.. date: 9417
.. nonce: k2oreR
.. section: Library
Fixed textwrap.dedent() for the case when largest common whitespace is a
substring of smallest leading whitespace. Based on patch by Robert Li.
..
.. bpo: 25447
.. date: 9416
.. nonce: eDYc4t
.. section: Library
The lru_cache() wrapper objects now can be copied and pickled (by returning
the original object unchanged).
..
.. bpo: 25390
.. date: 9415
.. nonce: 6mSgRq
.. section: Library
typing: Don't crash on Union[str, Pattern].
..
.. bpo: 25441
.. date: 9414
.. nonce: d7zph6
.. section: Library
asyncio: Raise error from drain() when socket is closed.
..
.. bpo: 25410
.. date: 9413
.. nonce: QAs_3B
.. section: Library
Cleaned up and fixed minor bugs in C implementation of OrderedDict.
..
.. bpo: 25411
.. date: 9412
.. nonce: qsJTCb
.. section: Library
Improved Unicode support in SMTPHandler through better use of the email
package. Thanks to user simon04 for the patch.
..
.. bpo: 25407
.. date: 9411
.. nonce: ukNt1D
.. section: Library
Remove mentions of the formatter module being removed in Python 3.6.
..
.. bpo: 25406
.. date: 9410
.. nonce: 5MZKU_
.. section: Library
Fixed a bug in C implementation of OrderedDict.move_to_end() that caused
segmentation fault or hang in iterating after moving several items to the
start of ordered dict.
..
.. bpo: 25364
.. date: 9409
.. nonce: u_1Wi6
.. section: Library
zipfile now works in threads disabled builds.
..
.. bpo: 25328
.. date: 9408
.. nonce: Rja1Xg
.. section: Library
smtpd's SMTPChannel now correctly raises a ValueError if both decode_data
and enable_SMTPUTF8 are set to true.
..
.. bpo: 25316
.. date: 9407
.. nonce: dHQHWI
.. section: Library
distutils raises OSError instead of DistutilsPlatformError when MSVC is not
installed.
..
.. bpo: 25380
.. date: 9406
.. nonce: sKZ6-I
.. section: Library
Fixed protocol for the STACK_GLOBAL opcode in pickletools.opcodes.
..
.. bpo: 23972
.. date: 9405
.. nonce: s2g30g
.. section: Library
Updates asyncio datagram create method allowing reuseport and reuseaddr
socket options to be set prior to binding the socket. Mirroring the existing
asyncio create_server method the reuseaddr option for datagram sockets
defaults to True if the O/S is 'posix' (except if the platform is Cygwin).
Patch by Chris Laws.
..
.. bpo: 25304
.. date: 9404
.. nonce: CsmLyI
.. section: Library
Add asyncio.run_coroutine_threadsafe().  This lets you submit a coroutine to
a loop from another thread, returning a concurrent.futures.Future.  By
Vincent Michel.
..
.. bpo: 25232
.. date: 9403
.. nonce: KhKjCE
.. section: Library
Fix CGIRequestHandler to split the query from the URL at the first question
mark (?) rather than the last. Patch from Xiang Zhang.
..
.. bpo: 24657
.. date: 9402
.. nonce: h2Ag7y
.. section: Library
Prevent CGIRequestHandler from collapsing slashes in the query part of the
URL as if it were a path. Patch from Xiang Zhang.
..
.. bpo: 24483
.. date: 9401
.. nonce: WPLGSJ
.. section: Library
C implementation of functools.lru_cache() now calculates key's hash only
once.
..
.. bpo: 22958
.. date: 9400
.. nonce: Ebu7Gl
.. section: Library
Constructor and update method of weakref.WeakValueDictionary now accept the
self and the dict keyword arguments.
..
.. bpo: 22609
.. date: 9399
.. nonce: fV7hdV
.. section: Library
Constructor of collections.UserDict now accepts the self keyword argument.
..
.. bpo: 25111
.. date: 9398
.. nonce: azL4qE
.. section: Library
Fixed comparison of traceback.FrameSummary.
..
.. bpo: 25262
.. date: 9397
.. nonce: pQS5cB
.. section: Library
Added support for BINBYTES8 opcode in Python implementation of unpickler.
Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8 opcodes no
longer silently ignored on 32-bit platforms in C implementation.
..
.. bpo: 25034
.. date: 9396
.. nonce: eGvOIb
.. section: Library
Fix string.Formatter problem with auto-numbering and nested format_specs.
Patch by Anthon van der Neut.
..
.. bpo: 25233
.. date: 9395
.. nonce: EdZV9x
.. section: Library
Rewrite the guts of asyncio.Queue and asyncio.Semaphore to be more
understandable and correct.
..
.. bpo: 25203
.. date: 9394
.. nonce: IgDEbt
.. section: Library
Failed readline.set_completer_delims() no longer left the module in
inconsistent state.
..
.. bpo: 23600
.. date: 9393
.. nonce: 7J_RD5
.. section: Library
Default implementation of tzinfo.fromutc() was returning wrong results in
some cases.
..
.. bpo: 23329
.. date: 9392
.. nonce: yccJBE
.. section: Library
Allow the ssl module to be built with older versions of LibreSSL.
..
.. bpo: 0
.. date: 9391
.. nonce: ww9QSm
.. section: Library
Prevent overflow in _Unpickler_Read.
..
.. bpo: 25047
.. date: 9390
.. nonce: kc8tqx
.. section: Library
The XML encoding declaration written by Element Tree now respects the letter
case given by the user. This restores the ability to write encoding names in
uppercase like "UTF-8", which worked in Python 2.
..
.. bpo: 25135
.. date: 9389
.. nonce: gVHNy-
.. section: Library
Make deque_clear() safer by emptying the deque before clearing. This helps
avoid possible reentrancy issues.
..
.. bpo: 19143
.. date: 9388
.. nonce: 76SBSO
.. section: Library
platform module now reads Windows version from kernel32.dll to avoid
compatibility shims.
..
.. bpo: 25092
.. date: 9387
.. nonce: fQ37Ac
.. section: Library
Fix datetime.strftime() failure when errno was already set to EINVAL.
..
.. bpo: 23517
.. date: 9386
.. nonce: 3ABmf1
.. section: Library
Fix rounding in fromtimestamp() and utcfromtimestamp() methods of
datetime.datetime: microseconds are now rounded to nearest with ties going
to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards
minus infinity (ROUND_FLOOR). It's important that these methods use the same
rounding mode than datetime.timedelta to keep the property:
(datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t).
It also the rounding mode used by round(float) for example.
..
.. bpo: 25155
.. date: 9385
.. nonce: JiETzD
.. section: Library
Fix datetime.datetime.now() and datetime.datetime.utcnow() on Windows to
support date after year 2038. It was a regression introduced in Python
3.5.0.
..
.. bpo: 25108
.. date: 9384
.. nonce: zGPbgA
.. section: Library
Omitted internal frames in traceback functions print_stack(),
format_stack(), and extract_stack() called without arguments.
..
.. bpo: 25118
.. date: 9383
.. nonce: wGm1u6
.. section: Library
Fix a regression of Python 3.5.0 in os.waitpid() on Windows.
..
.. bpo: 24684
.. date: 9382
.. nonce: t4T77O
.. section: Library
socket.socket.getaddrinfo() now calls PyUnicode_AsEncodedString() instead of
calling the encode() method of the host, to handle correctly custom string
with an encode() method which doesn't return a byte string. The encoder of
the IDNA codec is now called directly instead of calling the encode() method
of the string.
..
.. bpo: 25060
.. date: 9381
.. nonce: zLdvIk
.. section: Library
Correctly compute stack usage of the BUILD_MAP opcode.
..
.. bpo: 24857
.. date: 9380
.. nonce: PpJWZ9
.. section: Library
Comparing call_args to a long sequence now correctly returns a boolean
result instead of raising an exception.  Patch by A Kaptur.
..
.. bpo: 23144
.. date: 9379
.. nonce: cLf67X
.. section: Library
Make sure that HTMLParser.feed() returns all the data, even when
convert_charrefs is True.
..
.. bpo: 24982
.. date: 9378
.. nonce: sGMMAR
.. section: Library
shutil.make_archive() with the "zip" format now adds entries for directories
(including empty directories) in ZIP file.
..
.. bpo: 25019
.. date: 9377
.. nonce: JQJlOZ
.. section: Library
Fixed a crash caused by setting non-string key of expat parser. Based on
patch by John Leitch.
..
.. bpo: 16180
.. date: 9376
.. nonce: 6IUcNS
.. section: Library
Exit pdb if file has syntax error, instead of trapping user in an infinite
loop.  Patch by Xavier de Gaye.
..
.. bpo: 24891
.. date: 9375
.. nonce: ddVmHS
.. section: Library
Fix a race condition at Python startup if the file descriptor of stdin (0),
stdout (1) or stderr (2) is closed while Python is creating sys.stdin,
sys.stdout and sys.stderr objects. These attributes are now set to None if
the creation of the object failed, instead of raising an OSError exception.
Initial patch written by Marco Paolini.
..
.. bpo: 24992
.. date: 9374
.. nonce: 5sqF74
.. section: Library
Fix error handling and a race condition (related to garbage collection) in
collections.OrderedDict constructor.
..
.. bpo: 24881
.. date: 9373
.. nonce: ZoVZXu
.. section: Library
Fixed setting binary mode in Python implementation of FileIO on Windows and
Cygwin.  Patch from Akira Li.
..
.. bpo: 25578
.. date: 9372
.. nonce: G6S-ft
.. section: Library
Fix (another) memory leak in SSLSocket.getpeercer().
..
.. bpo: 25530
.. date: 9371
.. nonce: hDFkwu
.. section: Library
Disable the vulnerable SSLv3 protocol by default when creating
ssl.SSLContext.
..
.. bpo: 25569
.. date: 9370
.. nonce: CfvQjK
.. section: Library
Fix memory leak in SSLSocket.getpeercert().
..
.. bpo: 25471
.. date: 9369
.. nonce: T0A02M
.. section: Library
Sockets returned from accept() shouldn't appear to be nonblocking.
..
.. bpo: 25319
.. date: 9368
.. nonce: iyuglv
.. section: Library
When threading.Event is reinitialized, the underlying condition should use a
regular lock rather than a recursive lock.
..
.. bpo: 21112
.. date: 9367
.. nonce: vSFU1r
.. section: Library
Fix regression in unittest.expectedFailure on subclasses. Patch from Berker
Peksag.
..
.. bpo: 24764
.. date: 9366
.. nonce: QwFZ2S
.. section: Library
cgi.FieldStorage.read_multi() now ignores the Content-Length header in part
headers. Patch written by Peter Landry and reviewed by Pierre Quentel.
..
.. bpo: 24913
.. date: 9365
.. nonce: p2ZAJ4
.. section: Library
Fix overrun error in deque.index(). Found by John Leitch and Bryce Darling.
..
.. bpo: 24774
.. date: 9364
.. nonce: xLbskG
.. section: Library
Fix docstring in http.server.test. Patch from Chiu-Hsiang Hsu.
..
.. bpo: 21159
.. date: 9363
.. nonce: ochL5W
.. section: Library
Improve message in configparser.InterpolationMissingOptionError. Patch from
Łukasz Langa.
..
.. bpo: 20362
.. date: 9362
.. nonce: 5aP_Ri
.. section: Library
Honour TestCase.longMessage correctly in assertRegex. Patch from Ilia
Kurenkov.
..
.. bpo: 23572
.. date: 9361
.. nonce: QhQ9RD
.. section: Library
Fixed functools.singledispatch on classes with false metaclasses.  Patch by
Ethan Furman.
..
.. bpo: 0
.. date: 9360
.. nonce: DO1sFa
.. section: Library
asyncio: ensure_future() now accepts awaitable objects.
..
.. bpo: 15348
.. date: 9359
.. nonce: d1Fg01
.. section: IDLE
Stop the debugger engine (normally in a user process) before closing the
debugger window (running in the IDLE process). This prevents the
RuntimeErrors that were being caught and ignored.
..
.. bpo: 24455
.. date: 9358
.. nonce: x6YqtE
.. section: IDLE
Prevent IDLE from hanging when a) closing the shell while the debugger is
active (15347); b) closing the debugger with the [X] button (15348); and c)
activating the debugger when already active (24455). The patch by Mark
Roseman does this by making two changes. 1. Suspend and resume the
gui.interaction method with the tcl vwait mechanism intended for this
purpose (instead of root.mainloop & .quit). 2. In gui.run, allow any
existing interaction to terminate first.
..
.. bpo: 0
.. date: 9357
.. nonce: Yp9LRY
.. section: IDLE
Change 'The program' to 'Your program' in an IDLE 'kill program?' message to
make it clearer that the program referred to is the currently running user
program, not IDLE itself.
..
.. bpo: 24750
.. date: 9356
.. nonce: xgsi-K
.. section: IDLE
Improve the appearance of the IDLE editor window status bar. Patch by Mark
Roseman.
..
.. bpo: 25313
.. date: 9355
.. nonce: xMXHpO
.. section: IDLE
Change the handling of new built-in text color themes to better address the
compatibility problem introduced by the addition of IDLE Dark. Consistently
use the revised idleConf.CurrentTheme everywhere in idlelib.
..
.. bpo: 24782
.. date: 9354
.. nonce: RgIPYE
.. section: IDLE
Extension configuration is now a tab in the IDLE Preferences dialog rather
than a separate dialog.  The former tabs are now a sorted list.  Patch by
Mark Roseman.
..
.. bpo: 22726
.. date: 9353
.. nonce: x8T0dA
.. section: IDLE
Re-activate the config dialog help button with some content about the other
buttons and the new IDLE Dark theme.
..
.. bpo: 24820
.. date: 9352
.. nonce: TFPJhr
.. section: IDLE
IDLE now has an 'IDLE Dark' built-in text color theme. It is more or less
IDLE Classic inverted, with a cobalt blue background. Strings, comments,
keywords, ... are still green, red, orange, ... . To use it with IDLEs
released before November 2015, hit the 'Save as New Custom Theme' button and
enter a new name, such as 'Custom Dark'.  The custom theme will work with
any IDLE release, and can be modified.
..
.. bpo: 25224
.. date: 9351
.. nonce: 5Llwo4
.. section: IDLE
README.txt is now an idlelib index for IDLE developers and curious users.
The previous user content is now in the IDLE doc chapter. 'IDLE' now means
'Integrated Development and Learning Environment'.
..
.. bpo: 24820
.. date: 9350
.. nonce: ZUz9Fn
.. section: IDLE
Users can now set breakpoint colors in Settings -> Custom Highlighting.
Original patch by Mark Roseman.
..
.. bpo: 24972
.. date: 9349
.. nonce: uc0uNo
.. section: IDLE
Inactive selection background now matches active selection background, as
configured by users, on all systems.  Found items are now always highlighted
on Windows.  Initial patch by Mark Roseman.
..
.. bpo: 24570
.. date: 9348
.. nonce: s3EkNn
.. section: IDLE
Idle: make calltip and completion boxes appear on Macs affected by a tk
regression.  Initial patch by Mark Roseman.
..
.. bpo: 24988
.. date: 9347
.. nonce: tXqq4T
.. section: IDLE
Idle ScrolledList context menus (used in debugger) now work on Mac Aqua.
Patch by Mark Roseman.
..
.. bpo: 24801
.. date: 9346
.. nonce: -bj_Ou
.. section: IDLE
Make right-click for context menu work on Mac Aqua. Patch by Mark Roseman.
..
.. bpo: 25173
.. date: 9345
.. nonce: EZzrPg
.. section: IDLE
Associate tkinter messageboxes with a specific widget. For Mac OSX, make
them a 'sheet'.  Patch by Mark Roseman.
..
.. bpo: 25198
.. date: 9344
.. nonce: -j_BV7
.. section: IDLE
Enhance the initial html viewer now used for Idle Help. Properly indent
fixed-pitch text (patch by Mark Roseman). Give code snippet a very
Sphinx-like light blueish-gray background. Re-use initial width and height
set by users for shell and editor. When the Table of Contents (TOC) menu is
used, put the section header at the top of the screen.
..
.. bpo: 25225
.. date: 9343
.. nonce: 9pvdq6
.. section: IDLE
Condense and rewrite Idle doc section on text colors.
..
.. bpo: 21995
.. date: 9342
.. nonce: C5Rmzx
.. section: IDLE
Explain some differences between IDLE and console Python.
..
.. bpo: 22820
.. date: 9341
.. nonce: hix_8X
.. section: IDLE
Explain need for *print* when running file from Idle editor.
..
.. bpo: 25224
.. date: 9340
.. nonce: UVMYQq
.. section: IDLE
Doc: augment Idle feature list and no-subprocess section.
..
.. bpo: 25219
.. date: 9339
.. nonce: 8_9DYg
.. section: IDLE
Update doc for Idle command line options. Some were missing and notes were
not correct.
..
.. bpo: 24861
.. date: 9338
.. nonce: Ecg2yT
.. section: IDLE
Most of idlelib is private and subject to change. Use idleib.idle.* to start
Idle. See idlelib.__init__.__doc__.
..
.. bpo: 25199
.. date: 9337
.. nonce: ih7yY3
.. section: IDLE
Idle: add synchronization comments for future maintainers.
..
.. bpo: 16893
.. date: 9336
.. nonce: bZtPgJ
.. section: IDLE
Replace help.txt with help.html for Idle doc display. The new
idlelib/help.html is rstripped Doc/build/html/library/idle.html. It looks
better than help.txt and will better document Idle as released. The tkinter
html viewer that works for this file was written by Mark Roseman. The now
unused EditorWindow.HelpDialog class and helt.txt file are deprecated.
..
.. bpo: 24199
.. date: 9335
.. nonce: VKnZEv
.. section: IDLE
Deprecate unused idlelib.idlever with possible removal in 3.6.
..
.. bpo: 24790
.. date: 9334
.. nonce: hD1hlj
.. section: IDLE
Remove extraneous code (which also create 2 & 3 conflicts).
..
.. bpo: 22558
.. date: 9333
.. nonce: Pk02YC
.. section: Documentation
Add remaining doc links to source code for Python-coded modules. Patch by
Yoni Lavi.
..
.. bpo: 12067
.. date: 9332
.. nonce: nLD2M-
.. section: Documentation
Rewrite Comparisons section in the Expressions chapter of the language
reference. Some of the details of comparing mixed types were incorrect or
ambiguous. NotImplemented is only relevant at a lower level than the
Expressions chapter. Added details of comparing range() objects, and default
behaviour and consistency suggestions for user-defined classes. Patch from
Andy Maier.
..
.. bpo: 24952
.. date: 9331
.. nonce: RHhFPE
.. section: Documentation
Clarify the default size argument of stack_size() in the "threading" and
"_thread" modules. Patch from Mattip.
..
.. bpo: 23725
.. date: 9330
.. nonce: 49TZ5f
.. section: Documentation
Overhaul tempfile docs. Note deprecated status of mktemp. Patch from
Zbigniew Jędrzejewski-Szmek.
..
.. bpo: 24808
.. date: 9329
.. nonce: MGjc3F
.. section: Documentation
Update the types of some PyTypeObject fields.  Patch by Joseph Weston.
..
.. bpo: 22812
.. date: 9328
.. nonce: kLCF0G
.. section: Documentation
Fix unittest discovery examples. Patch from Pam McA'Nulty.
..
.. bpo: 25449
.. date: 9327
.. nonce: MP6KNs
.. section: Tests
Added tests for OrderedDict subclasses.
..
.. bpo: 25099
.. date: 9326
.. nonce: tJQOWx
.. section: Tests
Make test_compileall not fail when an entry on sys.path cannot be written to
(commonly seen in administrative installs on Windows).
..
.. bpo: 23919
.. date: 9325
.. nonce: vJnjaq
.. section: Tests
Prevents assert dialogs appearing in the test suite.
..
.. bpo: 0
.. date: 9324
.. nonce: X-Bk5l
.. section: Tests
``PCbuild\rt.bat`` now accepts an unlimited number of arguments to pass
along to regrtest.py.  Previously there was a limit of 9.
..
.. bpo: 24915
.. date: 9323
.. nonce: PgD3Cx
.. section: Build
Add LLVM support for PGO builds and use the test suite to generate the
profile data. Initial patch by Alecsandru Patrascu of Intel.
..
.. bpo: 24910
.. date: 9322
.. nonce: ZZdfl0
.. section: Build
Windows MSIs now have unique display names.
..
.. bpo: 24986
.. date: 9321
.. nonce: 1WyXeU
.. section: Build
It is now possible to build Python on Windows without errors when external
libraries are not available.
..
.. bpo: 25450
.. date: 9320
.. nonce: X4xlWf
.. section: Windows
Updates shortcuts to start Python in installation directory.
..
.. bpo: 25164
.. date: 9319
.. nonce: FHVOOA
.. section: Windows
Changes default all-users install directory to match per-user directory.
..
.. bpo: 25143
.. date: 9318
.. nonce: hmxsia
.. section: Windows
Improves installer error messages for unsupported platforms.
..
.. bpo: 25163
.. date: 9317
.. nonce: uCRe8H
.. section: Windows
Display correct directory in installer when using non-default settings.
..
.. bpo: 25361
.. date: 9316
.. nonce: GETaSY
.. section: Windows
Disables use of SSE2 instructions in Windows 32-bit build
..
.. bpo: 25089
.. date: 9315
.. nonce: n_YJgw
.. section: Windows
Adds logging to installer for case where launcher is not selected on
upgrade.
..
.. bpo: 25165
.. date: 9314
.. nonce: aUTN1e
.. section: Windows
Windows uninstallation should not remove launcher if other versions remain
..
.. bpo: 25112
.. date: 9313
.. nonce: frdKij
.. section: Windows
py.exe launcher is missing icons
..
.. bpo: 25102
.. date: 9312
.. nonce: 6y6Akl
.. section: Windows
Windows installer does not precompile for -O or -OO.
..
.. bpo: 25081
.. date: 9311
.. nonce: dcRCTO
.. section: Windows
Makes Back button in installer go back to upgrade page when upgrading.
..
.. bpo: 25091
.. date: 9310
.. nonce: 1u-VKy
.. section: Windows
Increases font size of the installer.
..
.. bpo: 25126
.. date: 9309
.. nonce: ANx3DW
.. section: Windows
Clarifies that the non-web installer will download some components.
..
.. bpo: 25213
.. date: 9308
.. nonce: KGmXoe
.. section: Windows
Restores requestedExecutionLevel to manifest to disable UAC virtualization.
..
.. bpo: 25022
.. date: 9307
.. nonce: vAt_zr
.. section: Windows
Removed very outdated PC/example_nt/ directory.
..
.. bpo: 25440
.. date: 9306
.. nonce: 5xhyGr
.. section: Tools/Demos
Fix output of python-config --extension-suffix.

.. date: 2025-11-04-19-20-05
.. gh-issue: 140849
.. nonce: YjB2ZZ
.. release date: 2025-11-18
.. section: Windows
Update bundled liblzma to version 5.8.1.
..
.. date: 2025-11-12-12-54-28
.. gh-issue: 141442
.. nonce: 50dS3P
.. section: Tools/Demos
The iOS testbed now correctly handles test arguments that contain spaces.
..
.. date: 2025-10-29-15-20-19
.. gh-issue: 140702
.. nonce: ZXtW8h
.. section: Tools/Demos
The iOS testbed app will now expose the ``GITHUB_ACTIONS`` environment
variable to iOS apps being tested.
..
.. date: 2025-09-21-10-30-08
.. gh-issue: 139198
.. nonce: Fm7NfU
.. section: Tools/Demos
Remove ``Tools/scripts/checkpip.py`` script.
..
.. date: 2025-09-20-20-31-54
.. gh-issue: 139188
.. nonce: zfcxkW
.. section: Tools/Demos
Remove ``Tools/tz/zdump.py`` script.
..
.. date: 2025-10-23-16-39-49
.. gh-issue: 140482
.. nonce: ZMtyeD
.. section: Tests
Preserve and restore the state of ``stty echo`` as part of the test
environment.
..
.. date: 2025-10-15-00-52-12
.. gh-issue: 140082
.. nonce: fpET50
.. section: Tests
Update ``python -m test`` to set ``FORCE_COLOR=1`` when being run with color
enabled so that :mod:`unittest` which is run by it with redirected output
will output in color.
..
.. date: 2025-07-09-21-45-51
.. gh-issue: 136442
.. nonce: jlbklP
.. section: Tests
Use exitcode ``1`` instead of ``5`` if :func:`unittest.TestCase.setUpClass`
raises an exception
..
.. date: 2025-08-15-23-08-44
.. gh-issue: 137836
.. nonce: b55rhh
.. section: Security
Add support of the "plaintext" element, RAWTEXT elements "xmp", "iframe",
"noembed" and "noframes", and optionally RAWTEXT element "noscript" in
:class:`html.parser.HTMLParser`.
..
.. date: 2025-06-28-13-23-53
.. gh-issue: 136063
.. nonce: aGk0Jv
.. section: Security
:mod:`email.message`: ensure linear complexity for legacy HTTP parameters
parsing. Patch by Bénédikt Tran.
..
.. date: 2025-05-30-22-33-27
.. gh-issue: 136065
.. nonce: bu337o
.. section: Security
Fix quadratic complexity in :func:`os.path.expandvars`.
..
.. date: 2025-11-14-16-24-20
.. gh-issue: 141497
.. nonce: L_CxDJ
.. section: Library
:mod:`ipaddress`: ensure that the methods :meth:`IPv4Network.hosts()
<ipaddress.IPv4Network.hosts>` and :meth:`IPv6Network.hosts()
<ipaddress.IPv6Network.hosts>` always return an iterator.
..
.. date: 2025-11-13-14-51-30
.. gh-issue: 140938
.. nonce: kXsHHv
.. section: Library
The :func:`statistics.stdev` and :func:`statistics.pstdev` functions now
raise a :exc:`ValueError` when the input contains an infinity or a NaN.
..
.. date: 2025-11-12-15-42-47
.. gh-issue: 124111
.. nonce: hTw4OE
.. section: Library
Updated Tcl threading configuration in :mod:`_tkinter` to assume that
threads are always available in Tcl 9 and later.
..
.. date: 2025-11-12-01-49-03
.. gh-issue: 137109
.. nonce: D6sq2B
.. section: Library
The :mod:`os.fork` and related forking APIs will no longer warn in the
common case where Linux or macOS platform APIs return the number of threads
in a process and find the answer to be 1 even when a
:func:`os.register_at_fork` ``after_in_parent=`` callback (re)starts a
thread.
..
.. date: 2025-11-10-01-47-18
.. gh-issue: 141314
.. nonce: baaa28
.. section: Library
Fix assertion failure in :meth:`io.TextIOWrapper.tell` when reading files
with standalone carriage return (``\r``) line endings.
..
.. date: 2025-11-09-18-55-13
.. gh-issue: 141311
.. nonce: qZ3swc
.. section: Library
Fix assertion failure in :func:`!io.BytesIO.readinto` and undefined behavior
arising when read position is above capcity in :class:`io.BytesIO`.
..
.. date: 2025-11-08-13-03-10
.. gh-issue: 87710
.. nonce: XJeZlP
.. section: Library
:mod:`mimetypes`: Update mime type for ``.ai`` files to ``application/pdf``.
..
.. date: 2025-11-07-12-25-46
.. gh-issue: 85524
.. nonce: 9SWFIC
.. section: Library
Update ``io.FileIO.readall``, an implementation of
:meth:`io.RawIOBase.readall`, to follow :class:`io.IOBase` guidelines and
raise :exc:`io.UnsupportedOperation` when a file is in "w" mode rather than
:exc:`OSError`
..
.. date: 2025-11-06-15-11-50
.. gh-issue: 141141
.. nonce: tgIfgH
.. section: Library
Fix a thread safety issue with :func:`base64.b85decode`. Contributed by
Benel Tayar.
..
.. date: 2025-11-04-20-08-41
.. gh-issue: 141018
.. nonce: d_oyOI
.. section: Library
:mod:`mimetypes`: Update ``.exe``, ``.dll``, ``.rtf`` and (when
``strict=False``) ``.jpg`` to their correct IANA mime type.
..
.. date: 2025-11-04-15-40-35
.. gh-issue: 137969
.. nonce: 9VZQVt
.. section: Library
Fix :meth:`annotationlib.ForwardRef.evaluate` returning
:class:`~annotationlib.ForwardRef` objects which don't update with new
globals.
..
.. date: 2025-11-04-12-16-13
.. gh-issue: 75593
.. nonce: EFVhKR
.. section: Library
Add support of :term:`path-like objects <path-like object>` and
:term:`bytes-like objects <bytes-like object>` in :func:`wave.open`.
..
.. date: 2025-11-03-16-23-54
.. gh-issue: 140797
.. nonce: DuFEeR
.. section: Library
The undocumented :class:`!re.Scanner` class now forbids regular expressions
containing capturing groups in its lexicon patterns. Patterns using
capturing groups could previously lead to crashes with segmentation fault.
Use non-capturing groups (?:...) instead.
..
.. date: 2025-11-03-05-38-31
.. gh-issue: 125115
.. nonce: jGS8MN
.. section: Library
Refactor the :mod:`pdb` parsing issue so positional arguments can pass
through intuitively.
..
.. date: 2025-11-02-19-23-32
.. gh-issue: 140815
.. nonce: McEG-T
.. section: Library
:mod:`faulthandler` now detects if a frame or a code object is invalid or
freed. Patch by Victor Stinner.
..
.. date: 2025-11-02-11-46-00
.. gh-issue: 100218
.. nonce: 9Ezfdq
.. section: Library
Correctly set :attr:`~OSError.errno` when :func:`socket.if_nametoindex` or
:func:`socket.if_indextoname` raise an :exc:`OSError`. Patch by Bénédikt
Tran.
..
.. date: 2025-11-02-09-37-22
.. gh-issue: 140734
.. nonce: f8gST9
.. section: Library
:mod:`multiprocessing`: fix off-by-one error when checking the length of a
temporary socket file path. Patch by Bénédikt Tran.
..
.. date: 2025-11-01-14-44-09
.. gh-issue: 140873
.. nonce: kfuc9B
.. section: Library
Add support of non-:term:`descriptor` callables in
:func:`functools.singledispatchmethod`.
..
.. date: 2025-11-01-00-36-14
.. gh-issue: 140874
.. nonce: eAWt3K
.. section: Library
Bump the version of pip bundled in ensurepip to version 25.3
..
.. date: 2025-11-01-00-34-53
.. gh-issue: 140826
.. nonce: JEDd7U
.. section: Library
Now :class:`!winreg.HKEYType` objects are compared by their underlying
Windows registry handle value instead of their object identity.
..
.. date: 2025-10-31-16-25-13
.. gh-issue: 140808
.. nonce: XBiQ4j
.. section: Library
The internal class ``mailbox._ProxyFile`` is no longer a parameterized
generic.
..
.. date: 2025-10-31-15-06-26
.. gh-issue: 140691
.. nonce: JzHGtg
.. section: Library
In :mod:`urllib.request`, when opening a FTP URL fails because a data
connection cannot be made, the control connection's socket is now closed to
avoid a :exc:`ResourceWarning`.
..
.. date: 2025-10-31-13-57-55
.. gh-issue: 103847
.. nonce: VM7TnW
.. section: Library
Fix hang when cancelling process created by
:func:`asyncio.create_subprocess_exec` or
:func:`asyncio.create_subprocess_shell`. Patch by Kumar Aditya.
..
.. date: 2025-10-30-15-33-07
.. gh-issue: 137821
.. nonce: 8_Iavt
.. section: Library
Convert ``_json`` module to use Argument Clinic. Patched by Yoonho Hann.
..
.. date: 2025-10-30-12-36-19
.. gh-issue: 140790
.. nonce: _3T6-N
.. section: Library
Initialize all Pdb's instance variables in ``__init__``,  remove some
hasattr/getattr
..
.. date: 2025-10-29-16-53-00
.. gh-issue: 140766
.. nonce: CNagKF
.. section: Library
Add :func:`enum.show_flag_values` and ``enum.bin`` to ``enum.__all__``.
..
.. date: 2025-10-29-16-12-41
.. gh-issue: 120057
.. nonce: qGj5Dl
.. section: Library
Add :func:`os.reload_environ` to ``os.__all__``.
..
.. date: 2025-10-29-09-40-10
.. gh-issue: 140741
.. nonce: L13UCV
.. section: Library
Fix ``profiling.sampling.sample()`` incorrectly handling a
:exc:`FileNotFoundError` or :exc:`PermissionError`.
..
.. date: 2025-10-28-17-43-51
.. gh-issue: 140228
.. nonce: 8kfHhO
.. section: Library
Avoid making unnecessary filesystem calls for frozen modules in
:mod:`linecache` when the global module cache is not present.
..
.. date: 2025-10-28-02-46-56
.. gh-issue: 139946
.. nonce: aN3_uY
.. section: Library
Error and warning keywords in ``argparse.ArgumentParser`` messages are now
colorized when color output is enabled, fixing a visual inconsistency in
which they remained plain text while other output was colorized.
..
.. date: 2025-10-27-18-29-42
.. gh-issue: 140590
.. nonce: LT9HHn
.. section: Library
Fix arguments checking for the :meth:`!functools.partial.__setstate__` that
may lead to internal state corruption and crash. Patch by Sergey Miryanov.
..
.. date: 2025-10-27-16-01-41
.. gh-issue: 125434
.. nonce: qy0uRA
.. section: Library
Display thread name in :mod:`faulthandler` on Windows. Patch by Victor
Stinner.
..
.. date: 2025-10-27-13-49-31
.. gh-issue: 140634
.. nonce: ULng9G
.. section: Library
Fix a reference counting bug in :meth:`!os.sched_param.__reduce__`.
..
.. date: 2025-10-27-00-40-49
.. gh-issue: 140650
.. nonce: DYJPJ9
.. section: Library
Fix an issue where closing :class:`io.BufferedWriter` could crash if the
closed attribute raised an exception on access or could not be converted to
a boolean.
..
.. date: 2025-10-26-16-24-12
.. gh-issue: 140633
.. nonce: ioayC1
.. section: Library
Ignore :exc:`AttributeError` when setting a module's ``__file__`` attribute
when loading an extension module packaged as Apple Framework.
..
.. date: 2025-10-25-22-55-07
.. gh-issue: 140601
.. nonce: In3MlS
.. section: Library
:func:`xml.etree.ElementTree.iterparse` now emits a :exc:`ResourceWarning`
when the iterator is not explicitly closed and was opened with a filename.
This helps developers identify and fix resource leaks. Patch by Osama
Abdelkader.
..
.. date: 2025-10-25-21-26-16
.. gh-issue: 140593
.. nonce: OxlLc9
.. section: Library
:mod:`xml.parsers.expat`: Fix a memory leak that could affect users with
:meth:`~xml.parsers.expat.xmlparser.ElementDeclHandler` set to a custom
element declaration handler. Patch by Sebastian Pipping.
..
.. date: 2025-10-25-21-04-00
.. gh-issue: 140607
.. nonce: oOZGxS
.. section: Library
Inside :meth:`io.RawIOBase.read`, validate that the count of bytes returned
by :meth:`io.RawIOBase.readinto` is valid (inside the provided buffer).
..
.. date: 2025-10-23-19-39-16
.. gh-issue: 138162
.. nonce: Znw5DN
.. section: Library
Fix :class:`logging.LoggerAdapter` with ``merge_extra=True`` and without the
*extra* argument.
..
.. date: 2025-10-23-13-42-15
.. gh-issue: 140481
.. nonce: XKxWpq
.. section: Library
Improve error message when trying to iterate a Tk widget, image or font.
..
.. date: 2025-10-23-12-12-22
.. gh-issue: 138774
.. nonce: mnh2gU
.. section: Library
:func:`ast.unparse` now generates full source code when handling
:class:`ast.Interpolation` nodes that do not have a specified source.
..
.. date: 2025-10-22-20-52-13
.. gh-issue: 140474
.. nonce: xIWlip
.. section: Library
Fix memory leak in :class:`array.array` when creating arrays from an empty
:class:`str` and the ``u`` type code.
..
.. date: 2025-10-22-12-56-57
.. gh-issue: 140448
.. nonce: GsEkXD
.. section: Library
Change the default of ``suggest_on_error`` to ``True`` in
``argparse.ArgumentParser``.
..
.. date: 2025-10-21-15-54-13
.. gh-issue: 137530
.. nonce: ZyIVUH
.. section: Library
:mod:`dataclasses` Fix annotations for generated ``__init__`` methods by
replacing the annotations that were in-line in the generated source code
with ``__annotate__`` functions attached to the methods.
..
.. date: 2025-10-20-12-33-49
.. gh-issue: 140348
.. nonce: SAKnQZ
.. section: Library
Fix regression in Python 3.14.0 where using the ``|`` operator on a
:class:`typing.Union` object combined with an object that is not a type
would raise an error.
..
.. date: 2025-10-18-15-20-25
.. gh-issue: 76007
.. nonce: SNUzRq
.. section: Library
:mod:`decimal`: Deprecate ``__version__`` and replace with
:data:`decimal.SPEC_VERSION`.
..
.. date: 2025-10-18-14-30-21
.. gh-issue: 76007
.. nonce: peEgcr
.. section: Library
Deprecate ``__version__`` from :mod:`imaplib`. Patch by Hugo van Kemenade.
..
.. date: 2025-10-17-23-58-11
.. gh-issue: 140272
.. nonce: lhY8uS
.. section: Library
Fix memory leak in the :meth:`!clear` method of the :mod:`dbm.gnu` database.
..
.. date: 2025-10-17-20-42-38
.. gh-issue: 129117
.. nonce: X9jr4p
.. section: Library
:mod:`unicodedata`: Add :func:`~unicodedata.isxidstart` and
:func:`~unicodedata.isxidcontinue` functions to check whether a character
can start or continue a `Unicode Standard Annex #31
<https://www.unicode.org/reports/tr31/>`_ identifier.
..
.. date: 2025-10-17-12-33-01
.. gh-issue: 140251
.. nonce: esM-OX
.. section: Library
Colorize the default import statement ``import asyncio`` in asyncio REPL.
..
.. date: 2025-10-16-22-49-16
.. gh-issue: 140212
.. nonce: llBNd0
.. section: Library
Calendar's HTML formatting now accepts year and month as options.
Previously, running ``python -m calendar -t html 2025 10`` would result in
an error message. It now generates an HTML document displaying the calendar
for the specified month. Contributed by Pål Grønås Drange.
..
.. date: 2025-10-16-17-17-20
.. gh-issue: 135801
.. nonce: faH3fa
.. section: Library
Improve filtering by module in :func:`warnings.warn_explicit` if no *module*
argument is passed. It now tests the module regular expression in the
warnings filter not only against the filename with ``.py`` stripped, but
also against module names constructed starting from different parent
directories of the filename (with ``/__init__.py``, ``.py`` and, on Windows,
``.pyw`` stripped).
..
.. date: 2025-10-16-16-10-11
.. gh-issue: 139707
.. nonce: zR6Qtn
.. section: Library
Improve :exc:`ModuleNotFoundError` error message when a :term:`standard
library` module is missing.
..
.. date: 2025-10-15-21-42-13
.. gh-issue: 140041
.. nonce: _Fka2j
.. section: Library
Fix import of :mod:`ctypes` on Android and Cygwin when ABI flags are
present.
..
.. date: 2025-10-15-20-47-04
.. gh-issue: 140120
.. nonce: 3gffZq
.. section: Library
Fixed a memory leak in :mod:`hmac` when it was using the hacl-star backend.
Discovered by ``@ashm-dev`` using AddressSanitizer.
..
.. date: 2025-10-15-17-23-51
.. gh-issue: 140141
.. nonce: j2mUDB
.. section: Library
The :py:class:`importlib.metadata.PackageNotFoundError` traceback raised
when ``importlib.metadata.Distribution.from_name`` cannot discover a
distribution no longer includes a transient :exc:`StopIteration` exception
trace.
Contributed by Bartosz Sławecki in :gh:`140142`.
..
.. date: 2025-10-15-15-10-34
.. gh-issue: 140166
.. nonce: NtxRez
.. section: Library
:mod:`mimetypes`: Per the `IANA assignment
<https://www.iana.org/assignments/media-types/application/texinfo>`_, update
the MIME type for the ``.texi`` and ``.texinfo`` file formats to
``application/texinfo``, instead of ``application/x-texinfo``.
..
.. date: 2025-10-15-02-26-50
.. gh-issue: 140135
.. nonce: 54JYfM
.. section: Library
Speed up :meth:`io.RawIOBase.readall` by using PyBytesWriter API (about 4x
faster)
..
.. date: 2025-10-14-20-27-06
.. gh-issue: 76007
.. nonce: 2NcUbo
.. section: Library
:mod:`zlib`: Deprecate ``__version__`` and schedule for removal in Python
3.20.
..
.. date: 2025-10-13-11-25-41
.. gh-issue: 136702
.. nonce: uvLGK1
.. section: Library
:mod:`encodings`: Deprecate passing a non-ascii *encoding* name to
:func:`encodings.normalize_encoding` and schedule removal of support for
Python 3.17.
..
.. date: 2025-10-11-09-07-06
.. gh-issue: 139940
.. nonce: g54efZ
.. section: Library
Print clearer error message when using ``pdb`` to attach to a non-existing
process.
..
.. date: 2025-10-02-22-29-00
.. gh-issue: 139462
.. nonce: VZXUHe
.. section: Library
When a child process in a :class:`concurrent.futures.ProcessPoolExecutor`
terminates abruptly, the resulting traceback will now tell you the PID and
exit code of the terminated process. Contributed by Jonathan Berg.
..
.. date: 2025-09-30-12-52-54
.. gh-issue: 63161
.. nonce: mECM1A
.. section: Library
Fix :func:`tokenize.detect_encoding`. Support non-UTF-8 shebang and comments
if non-UTF-8 encoding is specified. Detect decoding error for non-UTF-8
encoding. Detect null bytes in source code.
..
.. date: 2025-09-25-20-16-10
.. gh-issue: 101828
.. nonce: yTxJlJ
.. section: Library
Fix ``'shift_jisx0213'``, ``'shift_jis_2004'``, ``'euc_jisx0213'`` and
``'euc_jis_2004'`` codecs truncating null chars as they were treated as part
of multi-character sequences.
..
.. date: 2025-09-23-09-46-46
.. gh-issue: 139246
.. nonce: pzfM-w
.. section: Library
fix: paste zero-width in default repl width is wrong.
..
.. date: 2025-09-18-21-25-41
.. gh-issue: 83714
.. nonce: TQjDWZ
.. section: Library
Implement :func:`os.statx` on Linux kernel versions 4.11 and later with
glibc versions 2.28 and later.  Contributed by Jeffrey Bosboom and Victor
Stinner.
..
.. date: 2025-09-15-21-03-11
.. gh-issue: 138891
.. nonce: oZFdtR
.. section: Library
Fix ``SyntaxError`` when ``inspect.get_annotations(f, eval_str=True)`` is
called on a function annotated with a :pep:`646` ``star_expression``
..
.. date: 2025-09-13-12-19-17
.. gh-issue: 138859
.. nonce: PxjIoN
.. section: Library
Fix generic type parameterization raising a :exc:`TypeError` when omitting a
:class:`ParamSpec` that has a default which is not a list of types.
..
.. date: 2025-09-12-09-34-37
.. gh-issue: 138764
.. nonce: mokHoY
.. section: Library
Prevent :func:`annotationlib.call_annotate_function` from calling
``__annotate__`` functions that don't support ``VALUE_WITH_FAKE_GLOBALS`` in
a fake globals namespace with empty globals.
Make ``FORWARDREF`` and ``STRING`` annotations fall back to using ``VALUE``
annotations in the case that neither their own format, nor
``VALUE_WITH_FAKE_GLOBALS`` are supported.
..
.. date: 2025-09-11-15-03-37
.. gh-issue: 138775
.. nonce: w7rnSx
.. section: Library
Use of ``python -m`` with :mod:`base64` has been fixed to detect input from
a terminal so that it properly notices EOF.
..
.. date: 2025-09-03-20-18-39
.. gh-issue: 98896
.. nonce: tjez89
.. section: Library
Fix a failure in multiprocessing resource_tracker when SharedMemory names
contain colons. Patch by Rani Pinchuk.
..
.. date: 2025-09-03-18-26-07
.. gh-issue: 138425
.. nonce: cVE9Ho
.. section: Library
Fix partial evaluation of :class:`annotationlib.ForwardRef` objects which
rely on names defined as globals.
..
.. date: 2025-08-26-08-17-56
.. gh-issue: 138151
.. nonce: I6CdAk
.. section: Library
In :mod:`annotationlib`, improve evaluation of forward references to
nonlocal variables that are not yet defined when the annotations are
initially evaluated.
..
.. date: 2025-08-15-20-35-30
.. gh-issue: 69528
.. nonce: qc-Eh_
.. section: Library
The :attr:`~io.FileIO.mode` attribute of files opened in the ``'wb+'`` mode
is now ``'wb+'`` instead of ``'rb+'``.
..
.. date: 2025-08-11-04-52-18
.. gh-issue: 137627
.. nonce: Ku5Yi2
.. section: Library
Speed up :meth:`csv.Sniffer.sniff` delimiter detection by up to 1.6x.
..
.. date: 2025-07-14-09-33-17
.. gh-issue: 55531
.. nonce: Gt2e12
.. section: Library
:mod:`encodings`: Improve :func:`~encodings.normalize_encoding` performance
by implementing the function in C using the private
``_Py_normalize_encoding`` which has been modified to make lowercase
conversion optional.
..
.. date: 2025-07-01-04-57-57
.. gh-issue: 136057
.. nonce: 4-t596
.. section: Library
Fixed the bug in :mod:`pdb` and :mod:`bdb` where ``next`` and ``step`` can't
go over the line if a loop exists in the line.
..
.. date: 2025-06-29-22-01-00
.. gh-issue: 133390
.. nonce: I1DW_3
.. section: Library
Support table, index, trigger, view, column, function, and schema completion
for :mod:`sqlite3`'s :ref:`command-line interface <sqlite3-cli>`.
..
.. date: 2025-06-10-18-02-29
.. gh-issue: 135307
.. nonce: fXGrcK
.. section: Library
:mod:`email`: Fix exception in ``set_content()`` when encoding text and
max_line_length is set to ``0`` or ``None`` (unlimited).
..
.. date: 2025-05-10-15-10-54
.. gh-issue: 133789
.. nonce: I-ZlUX
.. section: Library
Fix unpickling of :mod:`pathlib` objects that were pickled in Python 3.13.
..
.. date: 2025-05-07-22-09-28
.. gh-issue: 133601
.. nonce: 9kUL3P
.. section: Library
Remove deprecated :func:`!typing.no_type_check_decorator`.
..
.. date: 2025-04-18-18-08-05
.. gh-issue: 132686
.. nonce: 6kV_Gs
.. section: Library
Add parameters *inherit_class_doc* and *fallback_to_class_doc* for
:func:`inspect.getdoc`.
..
.. date: 2025-03-12-18-57-10
.. gh-issue: 131116
.. nonce: uTpwXZ
.. section: Library
:func:`inspect.getdoc` now correctly returns an inherited docstring on
:class:`~functools.cached_property` objects if none is given in a subclass.
..
.. date: 2025-03-04-17-19-26
.. gh-issue: 130693
.. nonce: Kv01r8
.. section: Library
Add support for ``-nolinestop``, and ``-strictlimits`` options to
:meth:`!tkinter.Text.search`. Also add the :meth:`!tkinter.Text.search_all`
method for ``-all`` and ``-overlap`` options.
..
.. date: 2024-08-08-12-39-36
.. gh-issue: 122255
.. nonce: J_gU8Y
.. section: Library
In the :mod:`linecache` module and in the Python implementation of the
:mod:`warnings` module, a ``DeprecationWarning`` is issued when
``mod.__loader__`` differs from ``mod.__spec__.loader`` (like in the C
implementation of the :mod:`!warnings` module).
..
.. date: 2024-06-26-16-16-43
.. gh-issue: 121011
.. nonce: qW54eh
.. section: Library
:func:`math.log` now supports arbitrary large integer-like arguments in the
same way as arbitrary large integer arguments.
..
.. date: 2024-05-28-17-14-30
.. gh-issue: 119668
.. nonce: RrIGpn
.. section: Library
Publicly expose and document :class:`importlib.machinery.NamespacePath`.
..
.. date: 2023-03-21-10-59-40
.. gh-issue: 102431
.. nonce: eUDnf4
.. section: Library
Clarify constraints for "logical" arguments in methods of
:class:`decimal.Context`.
..
.. date: 2019-06-02-13-56-16
.. gh-issue: 81313
.. nonce: axawSH
.. section: Library
Add the :mod:`math.integer` module (:pep:`791`).
..
.. date: 2025-11-15-01-21-00
.. gh-issue: 141579
.. nonce: aB7cD9
.. section: Core and Builtins
Fix :func:`sys.activate_stack_trampoline` to properly support the
``perf_jit`` backend. Patch by Pablo Galindo.
..
.. date: 2025-11-14-16-25-15
.. gh-issue: 114203
.. nonce: n3tlQO
.. section: Core and Builtins
Skip locking if object is already locked by two-mutex critical section.
..
.. date: 2025-11-14-00-19-45
.. gh-issue: 141528
.. nonce: VWdax1
.. section: Core and Builtins
Suggest using :meth:`concurrent.interpreters.Interpreter.close` instead of
the private ``_interpreters.destroy`` function when warning about remaining
subinterpreters. Patch by Sergey Miryanov.
..
.. date: 2025-11-11-13-40-45
.. gh-issue: 141367
.. nonce: I5KY7F
.. section: Core and Builtins
Specialize ``CALL_LIST_APPEND`` instruction only for lists, not for list
subclasses, to avoid unnecessary deopt. Patch by Mikhail Efimov.
..
.. date: 2025-11-10-23-07-06
.. gh-issue: 141312
.. nonce: H-58GB
.. section: Core and Builtins
Fix the assertion failure in the ``__setstate__`` method of the range
iterator when a non-integer argument is passed. Patch by Sergey Miryanov.
..
.. date: 2025-11-05-19-50-37
.. gh-issue: 140643
.. nonce: QCEOqG
.. section: Core and Builtins
Add support for ``<GC>`` and ``<native>`` frames to
:mod:`!profiling.sampling` output to denote active garbage collection and
calls to native code.
..
.. date: 2025-11-04-12-18-06
.. gh-issue: 140942
.. nonce: GYns6n
.. section: Library
Add ``.cjs`` to :mod:`mimetypes` to give CommonJS modules a MIME type of
``application/node``.
..
.. date: 2025-11-04-04-57-24
.. gh-issue: 140479
.. nonce: lwQ2v2
.. section: Core and Builtins
Update JIT compilation to use LLVM 21 at build time.
..
.. date: 2025-11-03-17-21-38
.. gh-issue: 140939
.. nonce: FVboAw
.. section: Core and Builtins
Fix memory leak when :class:`bytearray` or :class:`bytes` is formated with
the ``%*b`` format with a large width that results in a :exc:`MemoryError`.
..
.. date: 2025-11-02-15-28-33
.. gh-issue: 140260
.. nonce: JNzlGz
.. section: Library
Fix :mod:`struct` data race in endian table initialization with
subinterpreters. Patch by Shamil Abdulaev.
..
.. date: 2025-11-02-12-47-38
.. gh-issue: 140530
.. nonce: S934bp
.. section: Core and Builtins
Fix a reference leak when ``raise exc from cause`` fails. Patch by Bénédikt
Tran.
..
.. date: 2025-10-31-14-03-42
.. gh-issue: 90344
.. nonce: gvZigO
.. section: Library
Replace :class:`io.IncrementalNewlineDecoder` with non incremental newline
decoders in codebase where :meth:`!io.IncrementalNewlineDecoder.decode` was
being called once.
..
.. date: 2025-10-29-20-59-10
.. gh-issue: 140373
.. nonce: -uoaPP
.. section: Core and Builtins
Correctly emit ``PY_UNWIND`` event when generator object is closed. Patch by
Mikhail Efimov.
..
.. date: 2025-10-29-11-31-59
.. gh-issue: 140729
.. nonce: t9JsNt
.. section: Core and Builtins
Fix pickling error in the sampling profiler when using
``concurrent.futures.ProcessPoolExecutor`` script can not be properly
pickled and executed in worker processes.
..
.. date: 2025-10-25-21-31-43
.. gh-issue: 131527
.. nonce: V-JVNP
.. section: Core and Builtins
Dynamic borrow checking for stackrefs is added to ``Py_STACKREF_DEBUG``
mode. Patch by Mikhail Efimov.
..
.. date: 2025-10-25-17-36-46
.. gh-issue: 140576
.. nonce: kj0SCY
.. section: Core and Builtins
Fixed crash in :func:`tokenize.generate_tokens` in case of specific
incorrect input. Patch by Mikhail Efimov.
..
.. date: 2025-10-25-07-25-52
.. gh-issue: 140544
.. nonce: lwjtQe
.. section: Core and Builtins
Speed up accessing interpreter state by caching it in a thread local
variable. Patch by Kumar Aditya.
..
.. date: 2025-10-24-20-42-33
.. gh-issue: 140551
.. nonce: -9swrl
.. section: Core and Builtins
Fixed crash in :class:`dict` if :meth:`dict.clear` is called at the lookup
stage. Patch by Mikhail Efimov and Inada Naoki.
..
.. date: 2025-10-24-20-16-42
.. gh-issue: 140517
.. nonce: cqun-K
.. section: Core and Builtins
Fixed a reference leak when iterating over the result of :func:`map` with
``strict=True`` when the input iterables have different lengths. Patch by
Mikhail Efimov.
..
.. date: 2025-10-24-14-29-12
.. gh-issue: 133467
.. nonce: A5d6TM
.. section: Core and Builtins
Fix race when updating :attr:`!type.__bases__` that could allow a read of
:attr:`!type.__base__` to observe an inconsistent value on the free threaded
build.
..
.. date: 2025-10-23-16-05-50
.. gh-issue: 140471
.. nonce: Ax_aXn
.. section: Core and Builtins
Fix potential buffer overflow in :class:`ast.AST` node initialization when
encountering malformed :attr:`~ast.AST._fields` containing non-:class:`str`.
..
.. date: 2025-10-22-23-26-37
.. gh-issue: 140443
.. nonce: wT5i1A
.. section: Library
The logarithm functions (such as :func:`math.log10` and :func:`math.log`)
may now produce slightly different results for extremely large integers that
cannot be converted to floats without overflow. These results are generally
more accurate, with reduced worst-case error and a tighter overall error
distribution.
..
.. date: 2025-10-22-17-22-22
.. gh-issue: 140431
.. nonce: m8D_A-
.. section: Core and Builtins
Fix a crash in Python's :term:`garbage collector <garbage collection>` due
to partially initialized :term:`coroutine` objects when coroutine origin
tracking depth is enabled (:func:`sys.set_coroutine_origin_tracking_depth`).
..
.. date: 2025-10-22-12-48-05
.. gh-issue: 140476
.. nonce: F3-d1P
.. section: Core and Builtins
Optimize :c:func:`PySet_Add` for :class:`frozenset` in :term:`free threaded
<free threading>` build.
..
.. date: 2025-10-22-11-30-16
.. gh-issue: 135904
.. nonce: 3WE5oW
.. section: Core and Builtins
Add special labels to the assembly created during stencil creation to
support relocations that the native object file format does not support.
Specifically, 19 bit branches for AArch64 in Mach-O object files.
..
.. date: 2025-10-21-09-20-03
.. gh-issue: 140398
.. nonce: SoABwJ
.. section: Library
Fix memory leaks in :mod:`readline` functions
:func:`~readline.read_init_file`, :func:`~readline.read_history_file`,
:func:`~readline.write_history_file`, and
:func:`~readline.append_history_file` when :c:func:`PySys_Audit` fails.
..
.. date: 2025-10-21-06-51-50
.. gh-issue: 140406
.. nonce: 0gJs8M
.. section: Core and Builtins
Fix memory leak when an object's :meth:`~object.__hash__` method returns an
object that isn't an :class:`int`.
..
.. date: 2025-10-20-11-24-36
.. gh-issue: 140358
.. nonce: UQuKdV
.. section: Core and Builtins
Restore elapsed time and unreachable object count in GC debug output. These
were inadvertently removed during a refactor of ``gc.c``. The debug log now
again reports elapsed collection time and the number of unreachable objects.
Contributed by Pål Grønås Drange.
..
.. date: 2025-10-19-10-32-28
.. gh-issue: 136895
.. nonce: HfsEh0
.. section: Core and Builtins
Update JIT compilation to use LLVM 20 at build time.
..
.. date: 2025-10-18-21-50-44
.. gh-issue: 139109
.. nonce: 9QQOzN
.. section: Core and Builtins
A new tracing frontend for the JIT compiler has been implemented. Patch by
Ken Jin. Design for CPython by Ken Jin, Mark Shannon and Brandt Bucher.
..
.. date: 2025-10-18-21-29-45
.. gh-issue: 140306
.. nonce: xS5CcS
.. section: Core and Builtins
Fix memory leaks in cross-interpreter channel operations and shared
namespace handling.
..
.. date: 2025-10-18-19-52-20
.. gh-issue: 116738
.. nonce: NLJW0L
.. section: Core and Builtins
Make _suggestions module thread-safe on the :term:`free threaded <free
threading>` build.
..
.. date: 2025-10-18-18-08-36
.. gh-issue: 140301
.. nonce: m-2HxC
.. section: Core and Builtins
Fix memory leak of ``PyConfig`` in subinterpreters.
..
.. date: 2025-10-17-20-23-19
.. gh-issue: 140257
.. nonce: 8Txmem
.. section: Core and Builtins
Fix data race between interpreter_clear() and take_gil() on eval_breaker
during finalization with daemon threads.
..
.. date: 2025-10-17-18-03-12
.. gh-issue: 139951
.. nonce: IdwM2O
.. section: Core and Builtins
Fixes a regression in GC performance for a growing heap composed mostly of
small tuples.
*  Counts number of actually tracked objects, instead of trackable objects.
This ensures that untracking tuples has the desired effect of reducing GC overhead.
*  Does not track most untrackable tuples during creation.
This prevents large numbers of small tuples causing excessive GCs.
..
.. date: 2025-10-17-14-38-10
.. gh-issue: 140253
.. nonce: gCqFaL
.. section: Core and Builtins
Wrong placement of a double-star pattern inside a mapping pattern now throws
a specialized syntax error. Contributed by Bartosz Sławecki in :gh:`140253`.
..
.. date: 2025-10-16-21-47-00
.. gh-issue: 140104
.. nonce: A8SQIm
.. section: Core and Builtins
Fix a bug with exception handling in the JIT. Patch by Ken Jin. Bug reported
by Daniel Diniz.
..
.. date: 2025-10-15-17-12-32
.. gh-issue: 140149
.. nonce: cy1m3d
.. section: Core and Builtins
Speed up parsing bytes literals concatenation by using PyBytesWriter API and
a single memory allocation (about 3x faster).
..
.. date: 2025-10-15-00-21-40
.. gh-issue: 140061
.. nonce: J0XeDV
.. section: Core and Builtins
Fixing the checking of whether an object is uniquely referenced to ensure
free-threaded compatibility. Patch by Sergey Miryanov.
..
.. date: 2025-10-14-20-18-31
.. gh-issue: 140080
.. nonce: 8ROjxW
.. section: Core and Builtins
Fix hang during finalization when attempting to call :mod:`atexit` handlers
under no memory.
..
.. date: 2025-10-14-18-24-16
.. gh-issue: 139871
.. nonce: SWtuUz
.. section: Core and Builtins
Update :class:`bytearray` to use a :class:`bytes` under the hood as its
buffer and add :meth:`bytearray.take_bytes` to take it out.
..
.. date: 2025-10-14-17-07-37
.. gh-issue: 140067
.. nonce: ID2gOm
.. section: Core and Builtins
Fix memory leak in sub-interpreter creation.
..
.. date: 2025-10-13-13-54-19
.. gh-issue: 139914
.. nonce: M-y_3E
.. section: Core and Builtins
Restore support for HP PA-RISC, which has an upwards-growing stack.
..
.. date: 2025-10-12-01-12-12
.. gh-issue: 139817
.. nonce: PAn-8Z
.. section: Core and Builtins
Attribute ``__qualname__`` is added to :class:`typing.TypeAliasType`. Patch
by Mikhail Efimov.
..
.. date: 2025-10-06-14-19-47
.. gh-issue: 135801
.. nonce: OhxEZS
.. section: Core and Builtins
Many functions related to compiling or parsing Python code, such as
:func:`compile`, :func:`ast.parse`, :func:`symtable.symtable`, and
:func:`importlib.abc.InspectLoader.source_to_code` now allow to specify the
module name. It is needed to unambiguous :ref:`filter <warning-filter>`
syntax warnings by module name.
..
.. date: 2025-10-06-10-03-37
.. gh-issue: 139640
.. nonce: gY5oTb2
.. section: Core and Builtins
:func:`ast.parse` no longer emits syntax warnings for
``return``/``break``/``continue`` in ``finally`` (see :pep:`765`) -- they
are only emitted during compilation.
..
.. date: 2025-10-06-10-03-37
.. gh-issue: 139640
.. nonce: gY5oTb
.. section: Core and Builtins
Fix swallowing some syntax warnings in different modules if they
accidentally have the same message and are emitted from the same line. Fix
duplicated warnings in the ``finally`` block.
..
.. date: 2025-10-03-17-51-43
.. gh-issue: 139475
.. nonce: _684ED
.. section: Core and Builtins
Changes in stackref debugging mode when ``Py_STACKREF_DEBUG`` is set. We use
the same pattern of refcounting for stackrefs as in production build.
..
.. date: 2025-09-23-21-01-12
.. gh-issue: 139269
.. nonce: 1rIaxy
.. section: Core and Builtins
Fix undefined behavior when using unaligned store in JIT's ``patch_*``
functions.
..
.. date: 2025-09-15-13-06-11
.. gh-issue: 138944
.. nonce: PeCgLb
.. section: Core and Builtins
Fix :exc:`SyntaxError` message when invalid syntax appears on the same line
as a valid ``import ... as ...`` or ``from ... import ... as ...``
statement. Patch by Brian Schubert.
..
.. date: 2025-09-13-01-23-25
.. gh-issue: 138857
.. nonce: YQ5gdc
.. section: Core and Builtins
Improve :exc:`SyntaxError` message for ``case`` keyword placed outside
:keyword:`match` body.
..
.. date: 2025-07-29-17-51-14
.. gh-issue: 131253
.. nonce: GpRjWy
.. section: Core and Builtins
Support the ``--enable-pystats`` build option for the free-threaded build.
..
.. date: 2025-07-08-00-41-46
.. gh-issue: 136327
.. nonce: 7AiTb_
.. section: Core and Builtins
Errors when calling functions with invalid values after ``*`` and ``**`` now
do not include the function name. Patch by Ilia Solin.
..
.. date: 2025-06-24-13-12-58
.. gh-issue: 134786
.. nonce: MF0VVk
.. section: Core and Builtins
If :c:macro:`Py_TPFLAGS_MANAGED_DICT` and
:c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` are used, then
:c:macro:`Py_TPFLAGS_HAVE_GC` must be used as well.
..
.. date: 2025-11-10-11-26-26
.. gh-issue: 141341
.. nonce: OsO6-y
.. section: C API
On Windows, rename the ``COMPILER`` macro to ``_Py_COMPILER`` to avoid name
conflicts. Patch by Victor Stinner.
..
.. date: 2025-11-08-10-51-50
.. gh-issue: 116146
.. nonce: pCmx6L
.. section: C API
Add a new :c:func:`PyImport_CreateModuleFromInitfunc` C-API for creating a
module from a *spec* and *initfunc*. Patch by Itamar Oren.
..
.. date: 2025-11-06-06-28-14
.. gh-issue: 141042
.. nonce: brOioJ
.. section: C API
Make qNaN in :c:func:`PyFloat_Pack2` and :c:func:`PyFloat_Pack4`, if while
conversion to a narrower precision floating-point format --- the remaining
after truncation payload will be zero.  Patch by Sergey B Kirpichev.
..
.. date: 2025-11-05-05-45-49
.. gh-issue: 141004
.. nonce: N9Ooh9
.. section: C API
:c:macro:`!Py_MATH_El` and :c:macro:`!Py_MATH_PIl` are deprecated.
..
.. date: 2025-11-05-04-38-16
.. gh-issue: 141004
.. nonce: rJL43P
.. section: C API
The :c:macro:`!Py_INFINITY` macro is :term:`soft deprecated`.
..
.. date: 2025-10-26-16-45-28
.. gh-issue: 140556
.. nonce: s__Dae
.. section: C API
:pep:`793`: Add a new entry point for C extension modules,
``PyModExport_<modulename>``.
..
.. date: 2025-10-26-16-45-06
.. gh-issue: 140487
.. nonce: fGOqss
.. section: C API
Fix :c:macro:`Py_RETURN_NOTIMPLEMENTED` in limited C API 3.11 and older:
don't treat ``Py_NotImplemented`` as immortal. Patch by Victor Stinner.
..
.. date: 2025-10-15-15-59-59
.. gh-issue: 140153
.. nonce: BO7sH4
.. section: C API
Fix :c:func:`Py_REFCNT` definition on limited C API 3.11-3.13. Patch by
Victor Stinner.
..
.. date: 2025-10-06-22-17-47
.. gh-issue: 139653
.. nonce: 6-1MOd
.. section: C API
Add :c:func:`PyUnstable_ThreadState_SetStackProtection` and
:c:func:`PyUnstable_ThreadState_ResetStackProtection` functions to set the
stack protection base address and stack protection size of a Python thread
state. Patch by Victor Stinner.
..
.. date: 2025-10-31-13-20-16
.. gh-issue: 140454
.. nonce: gF6dCe
.. section: Build
When building the JIT, match the jit_stencils filename expectations in
Makefile with the generator script. This avoid needless JIT recompilation
during ``make install``.
..
.. date: 2025-10-29-12-30-38
.. gh-issue: 140768
.. nonce: ITYrzw
.. section: Build
Warn when the WASI SDK version doesn't match what's supported.
..
.. date: 2025-10-25-08-07-06
.. gh-issue: 140513
.. nonce: 6OhLTs
.. section: Build
Generate a clear compilation error when ``_Py_TAIL_CALL_INTERP`` is enabled
but either ``preserve_none`` or ``musttail`` is not supported.
..
.. date: 2025-10-22-12-44-07
.. gh-issue: 140475
.. nonce: OhzQbR
.. section: Build
Support WASI SDK 25.
..
.. date: 2025-10-17-11-33-45
.. gh-issue: 140239
.. nonce: _k-GgW
.. section: Build
Check ``statx`` availability only on Linux (including Android).
..
.. date: 2025-10-16-11-30-53
.. gh-issue: 140189
.. nonce: YCrUyt
.. section: Build
iOS builds were added to CI.
..
.. date: 2025-08-10-22-28-06
.. gh-issue: 137618
.. nonce: FdNvIE
.. section: Build
``PYTHON_FOR_REGEN`` now requires Python 3.10 to Python 3.15. Patch by Adam
Turner.

.. date: 2024-11-16-22-08-41
.. gh-issue: 126911
.. nonce: HchCZZ
.. release date: 2024-11-19
.. section: Windows
Update credits command output.
..
.. date: 2024-11-12-22-31-13
.. gh-issue: 118973
.. nonce: _lfxW6
.. section: Windows
Ensures the experimental free-threaded install includes the ``_tkinter``
module. The optional Tcl/Tk component must also be installed in order for
the module to work.
..
.. date: 2024-11-07-20-42-31
.. gh-issue: 126497
.. nonce: EARpd-
.. section: Windows
Fixes venv failure due to missing redirector executables in experimental
free-threaded installs.
..
.. date: 2024-10-29-20-09-52
.. gh-issue: 126074
.. nonce: 83ZzZs
.. section: Windows
Removed unnecessary DLLs from Windows embeddable package
..
.. date: 2024-10-29-19-48-03
.. gh-issue: 125315
.. nonce: jdB9qN
.. section: Windows
Avoid crashing in :mod:`platform` due to slow WMI calls on some Windows
machines.
..
.. date: 2024-10-29-09-39-06
.. gh-issue: 126084
.. nonce: 3wAL8o
.. section: Windows
Fix venvwlauncher to launch pythonw instead of python so no extra console
window is created.
..
.. date: 2024-10-23-17-24-23
.. gh-issue: 125842
.. nonce: m3EF9E
.. section: Windows
Fix a :exc:`SystemError` when :func:`sys.exit` is called with ``0xffffffff``
on Windows.
..
.. date: 2024-10-15-21-28-43
.. gh-issue: 125550
.. nonce: hmGWCP
.. section: Windows
Enable the :ref:`launcher` to detect Python 3.14 installs from the Windows
Store.
..
.. date: 2024-09-07-15-16-24
.. gh-issue: 123803
.. nonce: J9VNQU
.. section: Windows
All Windows code pages are now supported as "cpXXX" codecs on Windows.
..
.. date: 2024-11-13-22-23-36
.. gh-issue: 126807
.. nonce: vpaWuN
.. section: Tools/Demos
Fix extraction warnings in :program:`pygettext.py` caused by mistaking
function definitions for function calls.
..
.. date: 2024-10-30-13-59-07
.. gh-issue: 126167
.. nonce: j5cCWE
.. section: Tools/Demos
The iOS testbed was modified so that it can be used by third-party projects
for testing purposes.
..
.. date: 2024-11-17-16-56-48
.. gh-issue: 126909
.. nonce: 60VTxW
.. section: Tests
Fix test_os extended attribute tests to work on filesystems with 1 KiB xattr
size limit.
..
.. date: 2024-10-21-14-10-56
.. gh-issue: 125730
.. nonce: kcWbvI
.. section: Tests
Change ``make test`` to not run GUI tests by default. Use ``make ci`` to run
tests with GUI tests instead.
..
.. date: 2024-09-30-22-52-44
.. gh-issue: 124295
.. nonce: VZy5kx
.. section: Tests
Add translation tests to the :mod:`argparse` module.
..
.. date: 2024-11-13-11-09-12
.. gh-issue: 126623
.. nonce: TO7NnR
.. section: Security
Upgrade libexpat to 2.6.4
..
.. date: 2024-11-18-15-33-25
.. gh-issue: 85957
.. nonce: 8gT3B-
.. section: Library
Add missing MIME types for images with RFCs: emf, fits, g3fax, jp2, jpm,
jpx, t38, tiff-fx and wmf. Patch by Hugo van Kemenade.
..
.. date: 2024-11-17-01-14-59
.. gh-issue: 126920
.. nonce: s8-f_L
.. section: Library
Fix the ``prefix`` and ``exec_prefix`` keys from
:py:func:`sysconfig.get_config_vars` incorrectly having the same value as
:py:const:`sys.base_prefix` and :py:const:`sys.base_exec_prefix`,
respectively, inside virtual environments. They now accurately reflect
:py:const:`sys.prefix` and :py:const:`sys.exec_prefix`.
..
.. date: 2024-11-14-22-25-49
.. gh-issue: 67877
.. nonce: G9hw0w
.. section: Library
Fix memory leaks when :mod:`regular expression <re>` matching terminates
abruptly, either because of a signal or because memory allocation fails.
..
.. date: 2024-11-14-13-16-20
.. gh-issue: 125063
.. nonce: kJ-WnH
.. section: Library
:mod:`marshal` now supports :class:`slice` objects. The marshal format
version was increased to 5.
..
.. date: 2024-11-13-22-25-57
.. gh-issue: 126789
.. nonce: lKzlc7
.. section: Library
Fixed the values of :py:func:`sysconfig.get_config_vars`,
:py:func:`sysconfig.get_paths`, and their siblings when the :py:mod:`site`
initialization happens after :py:mod:`sysconfig` has built a cache for
:py:func:`sysconfig.get_config_vars`.
..
.. date: 2024-11-13-20-03-18
.. gh-issue: 126188
.. nonce: RJLKk-
.. section: Library
Update bundled pip to 24.3.1
..
.. date: 2024-11-12-21-43-12
.. gh-issue: 126766
.. nonce: oi2KJ7
.. section: Library
Fix issue where :func:`urllib.request.url2pathname` failed to discard two
leading slashes introducing an empty authority section.
..
.. date: 2024-11-11-14-52-21
.. gh-issue: 126705
.. nonce: 0W7jFW
.. section: Library
Allow :class:`os.PathLike` to be a base for Protocols.
..
.. date: 2024-11-11-13-24-22
.. gh-issue: 126699
.. nonce: ONGbMd
.. section: Library
Allow :class:`collections.abc.AsyncIterator` to be a base for Protocols.
..
.. date: 2024-11-11-13-00-21
.. gh-issue: 126654
.. nonce: 4gfP2y
.. section: Library
Fix crash when non-dict was passed to several functions in ``_interpreters``
module.
..
.. date: 2024-11-10-18-14-51
.. gh-issue: 104745
.. nonce: zAa5Ke
.. section: Library
Limit starting a patcher (from :func:`unittest.mock.patch` or
:func:`unittest.mock.patch.object`) more than once without stopping it
..
.. date: 2024-11-09-10-31-10
.. gh-issue: 126595
.. nonce: A-7MyC
.. section: Library
Fix a crash when instantiating :class:`itertools.count` with an initial
count of :data:`sys.maxsize` on debug builds. Patch by Bénédikt Tran.
..
.. date: 2024-11-08-17-05-10
.. gh-issue: 120423
.. nonce: 7rdLVV
.. section: Library
Fix issue where :func:`urllib.request.pathname2url` mishandled Windows paths
with embedded forward slashes.
..
.. date: 2024-11-08-11-06-14
.. gh-issue: 126565
.. nonce: dFFO22
.. section: Library
Improve performances of :meth:`zipfile.Path.open` for non-reading modes.
..
.. date: 2024-11-07-22-41-47
.. gh-issue: 126505
.. nonce: iztYE1
.. section: Library
Fix bugs in compiling case-insensitive :mod:`regular expressions <re>` with
character classes containing non-BMP characters: upper-case non-BMP
character did was ignored and the ASCII flag was ignored when matching a
character range whose upper bound is beyond the BMP region.
..
.. date: 2024-11-07-01-40-11
.. gh-issue: 117378
.. nonce: o9O5uM
.. section: Library
Fixed the :mod:`multiprocessing` ``"forkserver"`` start method forkserver
process to correctly inherit the parent's :data:`sys.path` during the
importing of :func:`multiprocessing.set_forkserver_preload` modules in the
same manner as :data:`sys.path` is configured in workers before executing
work items.
This bug caused some forkserver module preloading to silently fail to
preload. This manifested as a performance degradation in child processes when
the ``sys.path`` was required due to additional repeated work in every
worker.
It could also have a side effect of ``""`` remaining in :data:`sys.path`
during forkserver preload imports instead of the absolute path from
:func:`os.getcwd` at multiprocessing import time used in the worker
``sys.path``.
The ``sys.path`` differences between phases in the child process could
potentially have caused preload to import incorrect things from the wrong
location.  We are unaware of that actually having happened in practice.
..
.. date: 2024-11-06-23-40-28
.. gh-issue: 125679
.. nonce: Qq9xF5
.. section: Library
The :class:`multiprocessing.Lock` and :class:`multiprocessing.RLock`
``repr`` values no longer say "unknown" on macOS.
..
.. date: 2024-11-06-18-30-50
.. gh-issue: 126476
.. nonce: F1wh3c
.. section: Library
Raise :class:`calendar.IllegalMonthError` (now a subclass of
:class:`IndexError`) for :func:`calendar.month` when the input month is not
correct.
..
.. date: 2024-11-06-13-41-38
.. gh-issue: 126489
.. nonce: toaf-0
.. section: Library
The Python implementation of :mod:`pickle` no longer calls
:meth:`pickle.Pickler.persistent_id` for the result of
:meth:`!persistent_id`.
..
.. date: 2024-11-05-11-28-45
.. gh-issue: 126451
.. nonce: XJMtqz
.. section: Library
Register the :class:`contextvars.Context` type to
:class:`collections.abc.Mapping`.
..
.. date: 2024-11-05-09-54-49
.. gh-issue: 126175
.. nonce: spnjJr
.. section: Library
Add ``msg``, ``doc``, ``pos``, ``lineno`` and ``colno`` attributes to
:exc:`tomllib.TOMLDecodeError`. Deprecate instantiating with free-form
arguments.
..
.. date: 2024-11-04-22-53-09
.. gh-issue: 89416
.. nonce: YVQaas
.. section: Library
Add :rfc:`9559` MIME types for Matroska audiovisual container formats. Patch
by Hugo van Kemenade.
..
.. date: 2024-11-04-16-40-02
.. gh-issue: 126417
.. nonce: OWPqn0
.. section: Library
Register the :class:`!multiprocessing.managers.DictProxy` and
:class:`!multiprocessing.managers.ListProxy` types in
:mod:`multiprocessing.managers` to :class:`collections.abc.MutableMapping`
and :class:`collections.abc.MutableSequence`, respectively.
..
.. date: 2024-11-04-13-16-18
.. gh-issue: 126390
.. nonce: Cxvqa5
.. section: Library
Add support for returning intermixed options and non-option arguments in
order in :func:`getopt.gnu_getopt`.
..
.. date: 2024-11-03-23-25-07
.. gh-issue: 126374
.. nonce: Xu_THP
.. section: Library
Add support for options with optional arguments in the :mod:`getopt` module.
..
.. date: 2024-11-03-14-43-51
.. gh-issue: 126363
.. nonce: Xus7vU
.. section: Library
Speed up pattern parsing in :meth:`pathlib.Path.glob` by skipping creation
of a :class:`pathlib.Path` object for the pattern.
..
.. date: 2024-11-03-10-48-07
.. gh-issue: 126353
.. nonce: ChDzot
.. section: Library
:func:`asyncio.get_event_loop` now does not implicitly creates an event
loop. It now raises a :exc:`RuntimeError` if there is no set event loop.
Patch by Kumar Aditya.
..
.. date: 2024-11-03-09-42-42
.. gh-issue: 126313
.. nonce: EFP6Dl
.. section: Library
Fix an issue in :func:`curses.napms` when :func:`curses.initscr` has not yet
been called. Patch by Bénédikt Tran.
..
.. date: 2024-11-02-19-20-44
.. gh-issue: 126303
.. nonce: yVvyWB
.. section: Library
Fix pickling and copying of :class:`os.sched_param` objects.
..
.. date: 2024-11-01-14-31-41
.. gh-issue: 126138
.. nonce: yTniOG
.. section: Library
Fix a use-after-free crash on :class:`asyncio.Task` objects whose underlying
coroutine yields an object that implements an evil
:meth:`~object.__getattribute__`. Patch by Nico Posada.
..
.. date: 2024-11-01-10-35-49
.. gh-issue: 120057
.. nonce: YWy81Q
.. section: Library
Replace the ``os.environ.refresh()`` method with a new
:func:`os.reload_environ` function. Patch by Victor Stinner.
..
.. date: 2024-10-31-14-06-28
.. gh-issue: 126220
.. nonce: uJAJCU
.. section: Library
Fix crash in :class:`!cProfile.Profile` and :class:`!_lsprof.Profiler` when
their callbacks were directly called with 0 arguments.
..
.. date: 2024-10-30-23-59-36
.. gh-issue: 126212
.. nonce: _9uYjT
.. section: Library
Fix issue where :func:`urllib.request.pathname2url` and
:func:`~urllib.request.url2pathname` removed slashes from Windows DOS drive
paths and URLs.
..
.. date: 2024-10-30-23-42-44
.. gh-issue: 126223
.. nonce: k2qooc
.. section: Library
Raise a :exc:`UnicodeEncodeError` instead of a :exc:`SystemError` upon
calling :func:`!_interpreters.create` with an invalid Unicode character.
..
.. date: 2024-10-30-20-45-17
.. gh-issue: 126205
.. nonce: CHEmtx
.. section: Library
Fix issue where :func:`urllib.request.pathname2url` generated URLs beginning
with four slashes (rather than two) when given a Windows UNC path.
..
.. date: 2024-10-30-00-12-22
.. gh-issue: 126156
.. nonce: BOSqv0
.. section: Library
Improved performances of creating :py:class:`~http.cookies.Morsel` objects
by a factor of 3.8x.
..
.. date: 2024-10-29-11-45-44
.. gh-issue: 126105
.. nonce: cOL-R6
.. section: Library
Fix a crash in :mod:`ast` when the :attr:`ast.AST._fields` attribute is
deleted.
..
.. date: 2024-10-29-10-58-52
.. gh-issue: 126106
.. nonce: rlF798
.. section: Library
Fixes a possible ``NULL`` pointer dereference in :mod:`ssl`.
..
.. date: 2024-10-29-10-38-28
.. gh-issue: 126080
.. nonce: qKRBuo
.. section: Library
Fix a use-after-free crash on :class:`asyncio.Task` objects for which the
underlying event loop implements an evil :meth:`~object.__getattribute__`.
Reported by Nico-Posada. Patch by Bénédikt Tran.
..
.. date: 2024-10-29-07-24-52
.. gh-issue: 125322
.. nonce: sstOM-
.. section: Library
Correct detection of complex numbers support in libffi.
..
.. date: 2024-10-28-22-35-22
.. gh-issue: 126083
.. nonce: TuI--n
.. section: Library
Fixed a reference leak in :class:`asyncio.Task` objects when reinitializing
the same object with a non-``None`` context. Patch by Nico Posada.
..
.. date: 2024-10-28-11-33-59
.. gh-issue: 126068
.. nonce: Pdznm_
.. section: Library
Fix exceptions in the :mod:`argparse` module so that only error messages for
ArgumentError and ArgumentTypeError are now translated. ArgumentError is now
only used for command line errors, not for logical errors in the program.
TypeError is now raised instead of ValueError for some logical errors.
..
.. date: 2024-10-28-01-24-52
.. gh-issue: 125413
.. nonce: Jat5kq
.. section: Library
Add :meth:`!pathlib.Path.scandir` method to efficiently fetch directory
children and their file attributes. This is a trivial wrapper of
:func:`os.scandir`.
..
.. date: 2024-10-26-12-50-48
.. gh-issue: 125984
.. nonce: d4vp5_
.. section: Library
Fix use-after-free crashes on :class:`asyncio.Future` objects for which the
underlying event loop implements an evil :meth:`~object.__getattribute__`.
Reported by Nico-Posada. Patch by Bénédikt Tran.
..
.. date: 2024-10-25-20-52-15
.. gh-issue: 125926
.. nonce: pp8rtZ
.. section: Library
Fix :func:`urllib.parse.urljoin` for base URI with undefined authority.
Although :rfc:`3986` only specify reference resolution for absolute base
URI, :func:`!urljoin` should continue to return sensible result for relative
base URI.
..
.. date: 2024-10-25-11-13-24
.. gh-issue: 125969
.. nonce: YvbrTr
.. section: Library
Fix an out-of-bounds crash when an evil :meth:`asyncio.loop.call_soon`
mutates the length of the internal callbacks list. Patch by Bénédikt Tran.
..
.. date: 2024-10-25-10-53-56
.. gh-issue: 125966
.. nonce: eOCYU_
.. section: Library
Fix a use-after-free crash in :meth:`asyncio.Future.remove_done_callback`.
Patch by Bénédikt Tran.
..
.. date: 2024-10-24-14-08-10
.. gh-issue: 125789
.. nonce: eaiAMw
.. section: Library
Fix possible crash when mutating list of callbacks returned by
:attr:`!asyncio.Future._callbacks`. It now always returns a new copy in C
implementation :mod:`!_asyncio`. Patch by Kumar Aditya.
..
.. date: 2024-10-24-13-40-20
.. gh-issue: 126916
.. nonce: MAgz6D
.. section: Library
Allow the *initial* parameter of :func:`functools.reduce` to be passed as a
keyword argument. Patch by Sayandip Dutta.
..
.. date: 2024-10-24-10-49-47
.. gh-issue: 124452
.. nonce: eqTRgx
.. section: Library
Fix an issue in :meth:`email.policy.EmailPolicy.header_source_parse` and
:meth:`email.policy.Compat32.header_source_parse` that introduced spurious
leading whitespaces into header values when the header includes a newline
character after the header name delimiter (``:``) and before the value.
..
.. date: 2024-10-23-20-44-30
.. gh-issue: 117941
.. nonce: Y9jdlW
.. section: Library
:class:`!argparse.BooleanOptionalAction` now rejects option names starting
with ``--no-``.
..
.. date: 2024-10-23-17-45-40
.. gh-issue: 125884
.. nonce: 41E_PD
.. section: Library
Fixed the bug for :mod:`pdb` where it can't set breakpoints on functions
with certain annotations.
..
.. date: 2024-10-22-13-28-00
.. gh-issue: 125355
.. nonce: zssHm_
.. section: Library
Fix several bugs in :meth:`argparse.ArgumentParser.parse_intermixed_args`.
* The parser no longer changes temporarily during parsing.
* Default values are not processed twice.
* Required mutually exclusive groups containing positional arguments are now supported.
* The missing arguments report now includes the names of all required optional and positional arguments.
* Unknown options can be intermixed with positional arguments in parse_known_intermixed_args().
..
.. date: 2024-10-21-13-52-37
.. gh-issue: 125767
.. nonce: 0kK4lX
.. section: Library
:class:`super` objects are now :mod:`pickleable <pickle>` and :mod:`copyable
<copy>`.
..
.. date: 2024-10-21-12-06-55
.. gh-issue: 124969
.. nonce: xiY8UP
.. section: Library
``locale.nl_langinfo(locale.ALT_DIGITS)`` now returns a string again. The
returned value consists of up to 100 semicolon-separated symbols.
..
.. date: 2024-10-20-00-56-44
.. gh-issue: 84850
.. nonce: p5TeUB
.. section: Library
Remove :class:`!URLopener` and :class:`!FancyURLopener` classes from
:mod:`urllib.request`. They had previously raised :exc:`DeprecationWarning`
since Python 3.3.
..
.. date: 2024-10-19-16-06-52
.. gh-issue: 125666
.. nonce: jGfdCP
.. section: Library
Avoid the exiting the interpreter if a null byte is given as input in the
new REPL.
..
.. date: 2024-10-19-13-37-37
.. gh-issue: 125710
.. nonce: FyFAAr
.. section: Library
[Enum] fix hashable<->nonhashable comparisons for member values
..
.. date: 2024-10-19-11-06-06
.. gh-issue: 125631
.. nonce: BlhVvR
.. section: Library
Restore ability to set :attr:`~pickle.Pickler.persistent_id` and
:attr:`~pickle.Unpickler.persistent_load` attributes of instances of the
:class:`!Pickler` and :class:`!Unpickler` classes in the :mod:`pickle`
module.
..
.. date: 2024-10-19-01-30-40
.. gh-issue: 125378
.. nonce: WTosxX
.. section: Library
Fixed the bug in :mod:`pdb` where after a multi-line command, an empty line
repeats the first line of the multi-line command, instead of the full
command.
..
.. date: 2024-10-18-09-51-29
.. gh-issue: 125682
.. nonce: vsj4cU
.. section: Library
Reject non-ASCII digits in the Python implementation of :func:`json.loads`
conforming to the JSON specification.
..
.. date: 2024-10-18-08-58-10
.. gh-issue: 125660
.. nonce: sDdDqO
.. section: Library
Reject invalid unicode escapes for Python implementation of
:func:`json.loads`.
..
.. date: 2024-10-17-20-36-06
.. gh-issue: 52551
.. nonce: EIVNYY
.. section: Library
Use :c:func:`!wcsftime` to implement :func:`time.strftime` on Windows.
..
.. date: 2024-10-17-16-10-29
.. gh-issue: 125259
.. nonce: oMew0c
.. section: Library
Fix the notes removal logic for errors thrown in enum initialization.
..
.. date: 2024-10-17-04-52-00
.. gh-issue: 125633
.. nonce: lMck06
.. section: Library
Add function :func:`inspect.ispackage` to determine whether an object is a
:term:`package` or not.
..
.. date: 2024-10-16-22-45-50
.. gh-issue: 125614
.. nonce: 3OEo_Q
.. section: Library
In the :data:`~annotationlib.Format.FORWARDREF` format of
:mod:`annotationlib`, fix bug where nested expressions were not returned as
:class:`annotationlib.ForwardRef` format.
..
.. date: 2024-10-16-20-32-40
.. gh-issue: 125590
.. nonce: stHzOP
.. section: Library
Allow ``FrameLocalsProxy`` to delete and pop if the key is not a fast
variable.
..
.. date: 2024-10-16-15-55-50
.. gh-issue: 125600
.. nonce: yMsJx0
.. section: Library
Only show stale code warning in :mod:`pdb` when we display source code.
..
.. date: 2024-10-16-04-50-53
.. gh-issue: 125542
.. nonce: vZJ-Ns
.. section: Library
Deprecate passing keyword-only *prefix_chars* argument to
:meth:`argparse.ArgumentParser.add_argument_group`.
..
.. date: 2024-10-15-16-50-03
.. gh-issue: 125541
.. nonce: FfhmWo
.. section: Library
Pressing :kbd:`Ctrl-C` while blocked in :meth:`threading.Lock.acquire`,
:meth:`threading.RLock.acquire`, and :meth:`threading.Thread.join` now
interrupts the function call and raises a :exc:`KeyboardInterrupt` exception
on Windows, similar to how those functions behave on macOS and Linux.
..
.. date: 2024-10-15-14-01-03
.. gh-issue: 125519
.. nonce: TqGh6a
.. section: Library
Improve traceback if :func:`importlib.reload` is called with an object that
is not a module. Patch by Alex Waygood.
..
.. date: 2024-10-14-17-29-34
.. gh-issue: 125451
.. nonce: fmP3T9
.. section: Library
Fix deadlock when :class:`concurrent.futures.ProcessPoolExecutor` shuts down
concurrently with an error when feeding a job to a worker process.
..
.. date: 2024-10-14-02-07-44
.. gh-issue: 125115
.. nonce: IOf3ON
.. section: Library
Fixed a bug in :mod:`pdb` where arguments starting with ``-`` can't be
passed to the debugged script.
..
.. date: 2024-10-13-15-04-58
.. gh-issue: 125398
.. nonce: UW7Ndv
.. section: Library
Fix the conversion of the :envvar:`!VIRTUAL_ENV` path in the activate script
in :mod:`venv` when running in Git Bash for Windows.
..
.. date: 2024-10-11-00-40-13
.. gh-issue: 125245
.. nonce: 8vReM-
.. section: Library
Fix race condition when importing :mod:`collections.abc`, which could
incorrectly return an empty module.
..
.. date: 2024-10-09-17-07-33
.. gh-issue: 52551
.. nonce: PBakSY
.. section: Library
Fix encoding issues in :func:`time.strftime`, the
:meth:`~datetime.datetime.strftime` method of the :mod:`datetime` classes
:class:`~datetime.datetime`, :class:`~datetime.date` and
:class:`~datetime.time` and formatting of these classes. Characters not
encodable in the current locale are now acceptable in the format string.
Surrogate pairs and sequence of surrogatescape-encoded bytes are no longer
recombinated. Embedded null character no longer terminates the format
string.
..
.. date: 2024-10-04-22-43-48
.. gh-issue: 124984
.. nonce: xjMv9b
.. section: Library
Fixed thread safety in :mod:`ssl` in the free-threaded build. OpenSSL
operations are now protected by a per-object lock.
..
.. date: 2024-09-28-02-03-04
.. gh-issue: 124651
.. nonce: bLBGtH
.. section: Library
Properly quote template strings in :mod:`venv` activation scripts.
..
.. date: 2024-09-27-15-42-55
.. gh-issue: 124694
.. nonce: uUy32y
.. section: Library
We've added :class:`concurrent.futures.InterpreterPoolExecutor`, which
allows you to run code in multiple isolated interpreters.  This allows you
to circumvent the limitations of CPU-bound threads (due to the GIL). Patch
by Eric Snow.
This addition is unrelated to :pep:`734`.
..
.. date: 2024-09-27-13-10-17
.. gh-issue: 58032
.. nonce: 0aNAQ0
.. section: Library
Deprecate the :class:`argparse.FileType` type converter.
..
.. date: 2024-09-24-18-49-16
.. gh-issue: 99749
.. nonce: gBDJX7
.. section: Library
Adds a feature to optionally enable suggestions for argument choices and
subparser names if mistyped by the user.
..
.. date: 2024-09-24-18-16-59
.. gh-issue: 58956
.. nonce: 0wFrBR
.. section: Library
Fixed a bug in :mod:`pdb` where sometimes the breakpoint won't trigger if it
was set on a function which is already in the call stack.
..
.. date: 2024-09-17-10-38-26
.. gh-issue: 124111
.. nonce: Hd53VN
.. section: Library
The tkinter module can now be built to use either the new version 9.0.0 of
Tcl/Tk or the latest release 8.6.15 of Tcl/Tk 8.  Tcl/Tk 9 includes many
improvements, both to the Tcl language and to the appearance and utility of
the graphical user interface provided by Tk.
..
.. date: 2024-09-07-13-57-49
.. gh-issue: 80958
.. nonce: fVYnqV
.. section: Library
unittest discovery supports PEP 420 namespace packages as start directory
again.
..
.. date: 2024-08-28-19-27-35
.. gh-issue: 123370
.. nonce: SPZ9Ux
.. section: Library
Fix the canvas not clearing after running turtledemo clock.
..
.. date: 2024-08-22-12-12-35
.. gh-issue: 89083
.. nonce: b6zFh0
.. section: Library
Add :func:`uuid.uuid8` for generating UUIDv8 objects as specified in
:rfc:`9562`. Patch by Bénédikt Tran
..
.. date: 2024-08-01-11-15-55
.. gh-issue: 122549
.. nonce: ztV4Kz
.. section: Library
Add :func:`platform.invalidate_caches` to invalidate cached results.
..
.. date: 2024-07-23-02-24-50
.. gh-issue: 120754
.. nonce: nHb5mG
.. section: Library
Update unbounded ``read`` calls in :mod:`zipfile` to specify an explicit
``size`` putting a limit on how much data they may read. This also updates
handling around ZIP max comment size to match the standard instead of
reading comments that are one byte too long.
..
.. date: 2024-07-02-15-56-42
.. gh-issue: 121267
.. nonce: yFBWkh
.. section: Library
Improve the performance of :mod:`tarfile` when writing files, by caching
user names and group names.
..
.. date: 2024-06-06-04-06-05
.. gh-issue: 70764
.. nonce: 6511hw
.. section: Library
Fixed an issue where :func:`inspect.getclosurevars` would incorrectly
classify an attribute name as a global variable when the name exists both as
an attribute name and a global variable.
..
.. date: 2024-06-05-19-09-36
.. gh-issue: 118289
.. nonce: moL9_d
.. section: Library
:func:`!posixpath.realpath` now raises :exc:`NotADirectoryError` when
*strict* mode is enabled and a non-directory path with a trailing slash is
supplied.
..
.. date: 2024-06-02-11-48-19
.. gh-issue: 119826
.. nonce: N1obGa
.. section: Library
Always return an absolute path for :func:`os.path.abspath` on Windows.
..
.. date: 2024-05-28-14-35-23
.. gh-issue: 97850
.. nonce: dCtjel
.. section: Library
Remove deprecated :func:`!pkgutil.get_loader` and
:func:`!pkgutil.find_loader`.
..
.. date: 2024-05-13-10-09-41
.. gh-issue: 118986
.. nonce: -r4W9h
.. section: Library
Add :data:`!socket.IPV6_RECVERR` constant (available since Linux 2.2).
..
.. date: 2024-03-16-13-38-27
.. gh-issue: 116897
.. nonce: UDQTjp
.. section: Library
Accepting objects with false values (like ``0`` and ``[]``) except empty
strings, byte-like objects and ``None`` in :mod:`urllib.parse` functions
:func:`~urllib.parse.parse_qsl` and :func:`~urllib.parse.parse_qs` is now
deprecated.
..
.. date: 2023-10-26-16-36-22
.. gh-issue: 101955
.. nonce: Ixu3IF
.. section: Library
Fix SystemError when match regular expression pattern containing some
combination of possessive quantifier, alternative and capture group.
..
.. date: 2022-10-15-10-18-20
.. gh-issue: 71936
.. nonce: MzJjc_
.. section: Library
Fix a race condition in :class:`multiprocessing.pool.Pool`.
..
.. bpo: 46128
.. date: 2021-12-19-10-47-24
.. nonce: Qv3EK1
.. section: Library
Strip :class:`unittest.IsolatedAsyncioTestCase` stack frames from reported
stacktraces.
..
.. date: 2020-05-19-01-12-47
.. gh-issue: 84852
.. nonce: FEjHJW
.. section: Library
Add MIME types for MS Embedded OpenType, OpenType Layout, TrueType, WOFF 1.0
and 2.0 fonts. Patch by Sahil Prajapati and Hugo van Kemenade.
..
.. date: 2024-11-09-19-43-10
.. gh-issue: 126622
.. nonce: YacfDc
.. section: Documentation
Added stub pages for removed modules explaining their removal, where to find
replacements, and linking to the last Python version that supported them.
Contributed by Ned Batchelder.
..
.. date: 2024-10-10-23-46-54
.. gh-issue: 125277
.. nonce: QAby09
.. section: Documentation
Require Sphinx 7.2.6 or later to build the Python documentation. Patch by
Adam Turner.
..
.. date: 2023-03-28-22-24-45
.. gh-issue: 60712
.. nonce: So5uad
.. section: Documentation
Include the :class:`object` type in the lists of documented types. Change by
Furkan Onder and Martin Panter.
..
.. date: 2024-11-13-17-18-13
.. gh-issue: 126795
.. nonce: _JBX9e
.. section: Core and Builtins
Increase the threshold for JIT code warmup. Depending on platform and
workload, this can result in performance gains of 1-9% and memory savings of
3-5%.
..
.. date: 2024-11-12-19-24-00
.. gh-issue: 126341
.. nonce: 5SdAe1
.. section: Core and Builtins
Now :exc:`ValueError` is raised instead of :exc:`SystemError` when trying to
iterate over a released :class:`memoryview` object.
..
.. date: 2024-11-11-17-02-48
.. gh-issue: 126688
.. nonce: QiOXUi
.. section: Core and Builtins
Fix a crash when calling :func:`os.fork` on some operating systems,
including SerenityOS.
..
.. date: 2024-11-09-16-10-22
.. gh-issue: 126066
.. nonce: 9zs4m4
.. section: Library
Fix :mod:`importlib` to not write an incomplete .pyc files when a ulimit or
some other operating system mechanism is preventing the write to go through
fully.
..
.. date: 2024-11-06-16-34-11
.. gh-issue: 126222
.. nonce: 9NBfTn
.. section: Core and Builtins
Do not include count of "peek" items in ``_PyUop_num_popped``. This ensures
that the correct number of items are popped from the stack when a micro-op
exits with an error.
..
.. date: 2024-11-03-15-15-36
.. gh-issue: 126366
.. nonce: 8BBdGU
.. section: Core and Builtins
Fix crash when using ``yield from`` on an object that raises an exception in
its ``__iter__``.
..
.. date: 2024-11-02-18-01-31
.. gh-issue: 126209
.. nonce: 2ZIhrS
.. section: Library
Fix an issue with ``skip_file_prefixes`` parameter which resulted in an
inconsistent behaviour between the C and Python implementations of
:func:`warnings.warn`. Patch by Daehee Kim.
..
.. date: 2024-11-02-14-43-46
.. gh-issue: 126312
.. nonce: LMHzLT
.. section: Core and Builtins
Fix crash during garbage collection on an object frozen by :func:`gc.freeze`
on the free-threaded build.
..
.. date: 2024-11-01-09-58-06
.. gh-issue: 103951
.. nonce: 6qduwj
.. section: Core and Builtins
Relax optimization requirements to allow fast attribute access to module
subclasses.
..
.. date: 2024-10-31-21-49-00
.. gh-issue: 126072
.. nonce: o9k8Ns
.. section: Core and Builtins
Following :gh:`126101`, for :ref:`codeobjects` like lambda, annotation and
type alias, we no longer  add ``None`` to its :attr:`~codeobject.co_consts`.
..
.. date: 2024-10-30-18-16-10
.. gh-issue: 126195
.. nonce: 6ezBpr
.. section: Core and Builtins
Improve JIT performance by 1.4% on macOS Apple Silicon by using
platform-specific memory protection APIs. Patch by Diego Russo.
..
.. date: 2024-10-29-15-17-31
.. gh-issue: 126139
.. nonce: B4OQ8a
.. section: Core and Builtins
Provide better error location when attempting to use a :term:`future
statement <__future__>` with an unknown future feature.
..
.. date: 2024-10-29-10-37-39
.. gh-issue: 126072
.. nonce: XLKlxv
.. section: Core and Builtins
Add a new attribute in :attr:`~codeobject.co_flags` to indicate whether the
first item in :attr:`~codeobject.co_consts` is the docstring. If a code
object has no docstring, ``None`` will **NOT** be inserted.
..
.. date: 2024-10-28-13-18-16
.. gh-issue: 126076
.. nonce: MebZuS
.. section: Core and Builtins
Relocated objects such as ``tuple``, ``bytes`` and ``str`` objects are
properly tracked by :mod:`tracemalloc` and its associated hooks. Patch by
Pablo Galindo.
..
.. date: 2024-10-27-20-31-43
.. gh-issue: 90370
.. nonce: IP_W3a
.. section: Core and Builtins
Avoid temporary tuple creation for vararg in argument passing with Argument
Clinic generated code (if arguments either vararg or positional-only).
..
.. date: 2024-10-26-23-50-03
.. gh-issue: 126018
.. nonce: Hq-qcM
.. section: Core and Builtins
Fix a crash in :func:`sys.audit` when passing a non-string as first argument
and Python was compiled in debug mode.
..
.. date: 2024-10-26-13-32-48
.. gh-issue: 126012
.. nonce: 2KalhG
.. section: Core and Builtins
The :class:`memoryview` type now supports subscription, making it a
:term:`generic type`.
..
.. date: 2024-10-25-15-56-14
.. gh-issue: 125837
.. nonce: KlCdgD
.. section: Core and Builtins
Adds :opcode:`LOAD_SMALL_INT` and :opcode:`!LOAD_CONST_IMMORTAL`
instructions. ``LOAD_SMALL_INT`` pushes a small integer equal to the
``oparg`` to the stack. ``LOAD_CONST_IMMORTAL`` does the same as
``LOAD_CONST`` but is more efficient for immortal objects. Removes
``RETURN_CONST``  instruction.
..
.. date: 2024-10-24-22-43-03
.. gh-issue: 125942
.. nonce: 3UQht1
.. section: Core and Builtins
On Android, the ``errors`` setting of :any:`sys.stdout` was changed from
``surrogateescape`` to ``backslashreplace``.
..
.. date: 2024-10-23-14-42-27
.. gh-issue: 125859
.. nonce: m3EF9E
.. section: Core and Builtins
Fix a crash in the free threading build when :func:`gc.get_objects` or
:func:`gc.get_referrers` is called during an in-progress garbage collection.
..
.. date: 2024-10-23-14-05-47
.. gh-issue: 125868
.. nonce: uLfXYB
.. section: Core and Builtins
It was possible in 3.14.0a1 only for attribute lookup to give the wrong
value. This was due to an incorrect specialization in very specific
circumstances. This is fixed in 3.14.0a2.
..
.. date: 2024-10-22-04-18-53
.. gh-issue: 125498
.. nonce: cFjPIn
.. section: Core and Builtins
The JIT has been updated to leverage Clang 19’s new ``preserve_none``
attribute, which supports more platforms and is more useful than LLVM's
existing ``ghccc`` calling convention. This also removes the need to
manually patch the calling convention in LLVM IR, simplifying the JIT
compilation process.
..
.. date: 2024-10-18-16-00-10
.. gh-issue: 125703
.. nonce: QRoqMo
.. section: Core and Builtins
Correctly honour :mod:`tracemalloc` hooks in specialized ``Py_DECREF``
paths. Patch by Pablo Galindo
..
.. date: 2024-10-18-10-11-43
.. gh-issue: 125593
.. nonce: Q97m3A
.. section: Core and Builtins
Use color to highlight error locations in traceback from exception group
..
.. date: 2024-10-16-23-06-06
.. gh-issue: 125017
.. nonce: fcltj0
.. section: Core and Builtins
Fix crash on certain accesses to the ``__annotations__`` of
:class:`staticmethod` and :class:`classmethod` objects.
..
.. date: 2024-10-16-13-52-48
.. gh-issue: 125588
.. nonce: kCahyO
.. section: Core and Builtins
The Python PEG generator can now use f-strings in the grammar actions. Patch
by Pablo Galindo
..
.. date: 2024-10-16-12-12-39
.. gh-issue: 125444
.. nonce: 9tG2X6
.. section: Core and Builtins
Fix illegal instruction for older Arm architectures. Patch by Diego Russo,
testing by Ross Burton.
..
.. date: 2024-10-14-17-13-12
.. gh-issue: 118423
.. nonce: SkBoda
.. section: Core and Builtins
Add a new ``INSTRUCTION_SIZE`` macro to the cases generator which returns
the current instruction size.
..
.. date: 2024-10-09-13-53-50
.. gh-issue: 125038
.. nonce: ffSLCz
.. section: Core and Builtins
Fix crash when iterating over a generator expression after direct changes on
``gi_frame.f_locals``. Patch by Mikhail Efimov.
..
.. date: 2024-10-01-17-31-32
.. gh-issue: 124855
.. nonce: sdsv_H
.. section: Core and Builtins
Don't allow the JIT and perf support to be active at the same time. Patch by
Pablo Galindo
..
.. date: 2024-09-14-20-09-39
.. gh-issue: 123714
.. nonce: o1mbe4
.. section: Core and Builtins
Update JIT compilation to use LLVM 19
..
.. date: 2024-09-11-01-32-07
.. gh-issue: 123930
.. nonce: BkPfB6
.. section: Core and Builtins
Improve the error message when a script shadowing a module from the standard
library causes :exc:`ImportError` to be raised during a "from" import.
Similarly, improve the error message when a script shadowing a third party
module attempts to "from" import an attribute from that third party module
while still initialising.
..
.. date: 2024-06-13-19-12-49
.. gh-issue: 119793
.. nonce: FDVCDk
.. section: Core and Builtins
The :func:`map` built-in now has an optional keyword-only *strict* flag like
:func:`zip` to check that all the iterables are of equal length. Patch by
Wannes Boeykens.
..
.. date: 2024-05-12-03-10-36
.. gh-issue: 118950
.. nonce: 5Wc4vp
.. section: Library
Fix bug where SSLProtocol.connection_lost wasn't getting called when OSError
was thrown on writing to socket.
..
.. date: 2023-12-30-00-21-45
.. gh-issue: 113570
.. nonce: _XQgsW
.. section: Library
Fixed a bug in ``reprlib.repr`` where it incorrectly called the repr method
on shadowed Python built-in types.
..
.. date: 2024-11-07-20-24-58
.. gh-issue: 126554
.. nonce: ri12eb
.. section: C API
Fix error handling in :class:`ctypes.CDLL` objects which could result in a
crash in rare situations.
..
.. date: 2024-10-28-15-56-03
.. gh-issue: 126061
.. nonce: Py51_1
.. section: C API
Add :c:func:`PyLong_IsPositive`, :c:func:`PyLong_IsNegative` and
:c:func:`PyLong_IsZero` for checking if a :c:type:`PyLongObject` is
positive, negative, or zero, respectively.
..
.. date: 2024-10-16-19-28-23
.. gh-issue: 125608
.. nonce: gTsU2g
.. section: C API
Fix a bug where dictionary watchers (e.g., :c:func:`PyDict_Watch`) on an
object's attribute dictionary (:attr:`~object.__dict__`) were not triggered
when the object's attributes were modified.
..
.. date: 2024-09-03-13-33-33
.. gh-issue: 123619
.. nonce: HhgUUI
.. section: C API
Added the :c:func:`PyUnstable_Object_EnableDeferredRefcount` function for
enabling :pep:`703` deferred reference counting.
..
.. date: 2024-07-30-14-40-08
.. gh-issue: 121654
.. nonce: tgGeAl
.. section: C API
Add :c:func:`PyType_Freeze` function to make a type immutable. Patch by
Victor Stinner.
..
.. date: 2024-06-04-13-38-44
.. gh-issue: 120026
.. nonce: uhEvJ9
.. section: C API
The :c:macro:`!Py_HUGE_VAL` macro is :term:`soft deprecated`.
..
.. date: 2024-11-13-15-47-09
.. gh-issue: 126691
.. nonce: ni4K-b
.. section: Build
Removed the ``--with-emscripten-target`` configure flag. We unified the
``node`` and ``browser`` options and the same build can now be used,
independent of target runtime.
..
.. date: 2024-11-07-11-09-31
.. gh-issue: 123877
.. nonce: CVdd0b
.. section: Build
Use ``wasm32-wasip1`` as the target triple for WASI instead of
``wasm32-wasi``. The latter will eventually be reclaimed for WASI 1.0 while
CPython currently only supports WASI preview1.
..
.. date: 2024-11-06-11-12-04
.. gh-issue: 126458
.. nonce: 7vzHtx
.. section: Build
Disable SIMD support for HACL under WASI.
..
.. date: 2024-11-04-09-42-04
.. gh-issue: 89640
.. nonce: QBv05o
.. section: Build
Hard-code float word ordering as little endian on WASM.
..
.. date: 2024-10-31-15-37-05
.. gh-issue: 126206
.. nonce: oC6z2i
.. section: Build
``make clinic`` now runs Argument Clinic using the ``--force`` option, thus
forcefully regenerating generated code.
..
.. date: 2024-10-30-17-47-15
.. gh-issue: 126187
.. nonce: 0jFCZB
.. section: Build
Introduced ``Tools/wasm/emscripten.py`` to simplify doing Emscripten builds.
..
.. date: 2024-10-25-17-20-50
.. gh-issue: 124932
.. nonce: F-aNuS
.. section: Build
For cross builds, there is now support for having a different install
``prefix`` than the ``host_prefix`` used by ``getpath.py``. This is set to
``/`` by default for Emscripten, on other platforms the default behavior is
the same as before.
..
.. date: 2024-10-25-00-29-15
.. gh-issue: 125946
.. nonce: KPA3g0
.. section: Build
The minimum supported Android version is now 7.0 (API level 24).
..
.. date: 2024-10-24-22-14-35
.. gh-issue: 125940
.. nonce: 2wMtTA
.. section: Build
The Android build now supports `16 KB page sizes
<https://developer.android.com/guide/practices/page-sizes>`__.
..
.. date: 2024-10-16-09-37-51
.. gh-issue: 89640
.. nonce: UDsW-j
.. section: Build
Improve detection of float word ordering on Linux when link-time
optimizations are enabled.
..
.. date: 2024-10-04-17-29-23
.. gh-issue: 124928
.. nonce: FsGffe
.. section: Build
Emscripten builds now require node >= 18.
..
.. date: 2024-03-03-20-28-23
.. gh-issue: 115382
.. nonce: 97hJFE
.. section: Build
Fix cross compile failures when the host and target SOABIs match.

.. bpo: 33786
.. date: 2018-06-06-23-24-40
.. nonce: lBvT8z
.. release date: 2018-06-11
.. section: Core and Builtins
Fix asynchronous generators to handle GeneratorExit in athrow() correctly
..
.. bpo: 30654
.. date: 2018-05-28-12-28-53
.. nonce: 9fDJye
.. section: Core and Builtins
Fixed reset of the SIGINT handler to SIG_DFL on interpreter shutdown even
when there was a custom handler set previously. Patch by Philipp Kerling.
..
.. bpo: 33622
.. date: 2018-05-23-20-46-14
.. nonce: xPucO9
.. section: Core and Builtins
Fixed a leak when the garbage collector fails to add an object with the
``__del__`` method or referenced by it into the :data:`gc.garbage` list.
:c:func:`PyGC_Collect` can now be called when an exception is set and
preserves it.
..
.. bpo: 31849
.. date: 2018-05-14-11-00-00
.. nonce: EmHaH4
.. section: Core and Builtins
Fix signed/unsigned comparison warning in pyhash.c.
..
.. bpo: 33391
.. date: 2018-05-02-08-36-03
.. nonce: z4a7rb
.. section: Core and Builtins
Fix a leak in set_symmetric_difference().
..
.. bpo: 28055
.. date: 2018-04-25-20-44-42
.. nonce: f49kfC
.. section: Core and Builtins
Fix unaligned accesses in siphash24(). Patch by Rolf Eike Beer.
..
.. bpo: 33231
.. date: 2018-04-05-22-20-44
.. nonce: 3Jmo0q
.. section: Core and Builtins
Fix potential memory leak in ``normalizestring()``.
..
.. bpo: 29922
.. date: 2018-04-03-00-30-25
.. nonce: CdLuMl
.. section: Core and Builtins
Improved error messages in 'async with' when ``__aenter__()`` or
``__aexit__()`` return non-awaitable object.
..
.. bpo: 33199
.. date: 2018-04-02-09-32-40
.. nonce: TPnxQu
.. section: Core and Builtins
Fix ``ma_version_tag`` in dict implementation is uninitialized when copying
from key-sharing dict.
..
.. bpo: 33041
.. date: 2018-03-18-13-56-14
.. nonce: XwPhI2
.. section: Core and Builtins
Fixed jumping when the function contains an ``async for`` loop.
..
.. bpo: 32282
.. date: 2017-12-12-14-02-28
.. nonce: xFVMTn
.. section: Core and Builtins
Fix an unnecessary ifdef in the include of VersionHelpers.h in socketmodule
on Windows.
..
.. bpo: 21983
.. date: 2017-10-02-21-02-14
.. nonce: UoC319
.. section: Core and Builtins
Fix a crash in ``ctypes.cast()`` in case the type argument is a ctypes
structured data type. Patch by Eryk Sun and Oren Milman.
..
.. bpo: 30167
.. date: 2018-06-10-19-29-17
.. nonce: G5EgC5
.. section: Library
Prevent site.main() exception if PYTHONSTARTUP is set. Patch by Steve Weber.
..
.. bpo: 33812
.. date: 2018-06-10-13-26-02
.. nonce: frGAOr
.. section: Library
Datetime instance d with non-None tzinfo, but with d.tzinfo.utcoffset(d)
returning None is now treated as naive by the astimezone() method.
..
.. bpo: 30805
.. date: 2018-06-08-17-34-16
.. nonce: 3qCWa0
.. section: Library
Avoid race condition with debug logging
..
.. bpo: 33767
.. date: 2018-06-03-22-41-59
.. nonce: 2e82g3
.. section: Library
The concatenation (``+``) and repetition (``*``) sequence operations now
raise :exc:`TypeError` instead of :exc:`SystemError` when performed on
:class:`mmap.mmap` objects.  Patch by Zackery Spytz.
..
.. bpo: 32684
.. date: 2018-05-29-12-51-18
.. nonce: ZEIism
.. section: Library
Fix gather to propagate cancellation of itself even with return_exceptions.
..
.. bpo: 33674
.. date: 2018-05-28-22-49-59
.. nonce: 6LFFj7
.. section: Library
Fix a race condition in SSLProtocol.connection_made() of asyncio.sslproto:
start immediately the handshake instead of using call_soon(). Previously,
data_received() could be called before the handshake started, causing the
handshake to hang or fail.
..
.. bpo: 31647
.. date: 2018-05-28-18-40-26
.. nonce: s4Fad3
.. section: Library
Fixed bug where calling write_eof() on a _SelectorSocketTransport after it's
already closed raises AttributeError.
..
.. bpo: 33672
.. date: 2018-05-28-17-45-06
.. nonce: GM_Xm_
.. section: Library
Fix Task.__repr__ crash with Cython's bogus coroutines
..
.. bpo: 33469
.. date: 2018-05-28-15-55-12
.. nonce: hmXBpY
.. section: Library
Fix RuntimeError after closing loop that used run_in_executor
..
.. bpo: 11874
.. date: 2018-05-23-00-26-27
.. nonce: glK5iP
.. section: Library
Use a better regex when breaking usage into wrappable parts. Avoids bogus
assertion errors from custom metavar strings.
..
.. bpo: 30877
.. date: 2018-05-22-13-05-12
.. nonce: JZEGjI
.. section: Library
Fixed a bug in the Python implementation of the JSON decoder that prevented
the cache of parsed strings from clearing after finishing the decoding.
Based on patch by c-fos.
..
.. bpo: 33548
.. date: 2018-05-16-17-05-48
.. nonce: xWslmx
.. section: Library
tempfile._candidate_tempdir_list should consider common TEMP locations
..
.. bpo: 33542
.. date: 2018-05-16-09-30-27
.. nonce: idNAcs
.. section: Library
Prevent ``uuid.get_node`` from using a DUID instead of a MAC on Windows.
Patch by Zvi Effron
..
.. bpo: 26819
.. date: 2018-05-16-05-24-43
.. nonce: taxbVT
.. section: Library
Fix race condition with ``ReadTransport.resume_reading`` in Windows proactor
event loop.
..
.. bpo: 28556
.. date: 2018-05-10-14-51-19
.. nonce: y3zK6I
.. section: Library
Minor fixes in typing module: add annotations to ``NamedTuple.__new__``,
pass ``*args`` and ``**kwds`` in ``Generic.__new__``.  Original PRs by
Paulius Šarka and Chad Dombrova.
..
.. bpo: 20087
.. date: 2018-05-05-18-02-24
.. nonce: lJrvXL
.. section: Library
Updated alias mapping with glibc 2.27 supported locales.
..
.. bpo: 33422
.. date: 2018-05-05-09-53-05
.. nonce: 4FtQ0q
.. section: Library
Fix trailing quotation marks getting deleted when looking up byte/string
literals on pydoc. Patch by Andrés Delfino.
..
.. bpo: 33197
.. date: 2018-04-29-23-56-20
.. nonce: dgRLqr
.. section: Library
Update error message when constructing invalid inspect.Parameters Patch by
Donghee Na.
..
.. bpo: 33383
.. date: 2018-04-29-11-15-38
.. nonce: g32YWn
.. section: Library
Fixed crash in the get() method of the :mod:`dbm.ndbm` database object when
it is called with a single argument.
..
.. bpo: 33329
.. date: 2018-04-23-13-21-39
.. nonce: lQ-Eod
.. section: Library
Fix multiprocessing regression on newer glibcs
..
.. bpo: 991266
.. date: 2018-04-21-00-24-08
.. nonce: h93TP_
.. section: Library
Fix quoting of the ``Comment`` attribute of
:class:`http.cookies.SimpleCookie`.
..
.. bpo: 33131
.. date: 2018-04-20-10-43-17
.. nonce: L2E977
.. section: Library
Upgrade bundled version of pip to 10.0.1.
..
.. bpo: 33308
.. date: 2018-04-18-19-12-25
.. nonce: fW75xi
.. section: Library
Fixed a crash in the :mod:`parser` module when converting an ST object to a
tree of tuples or lists with ``line_info=False`` and ``col_info=True``.
..
.. bpo: 33263
.. date: 2018-04-11-20-29-19
.. nonce: B56Hc1
.. section: Library
Fix FD leak in ``_SelectorSocketTransport``  Patch by Vlad Starostin.
..
.. bpo: 33256
.. date: 2018-04-10-20-57-14
.. nonce: ndHkqu
.. section: Library
Fix display of ``<module>`` call in the html produced by ``cgitb.html()``.
Patch by Stéphane Blondon.
..
.. bpo: 33203
.. date: 2018-04-05-11-09-45
.. nonce: Hje9Py
.. section: Library
``random.Random.choice()`` now raises ``IndexError`` for empty sequences
consistently even when called from subclasses without a ``getrandbits()``
implementation.
..
.. bpo: 33224
.. date: 2018-04-04-23-41-30
.. nonce: pyR0jB
.. section: Library
Update difflib.mdiff() for :pep:`479`.  Convert an uncaught StopIteration in a
generator into a return-statement.
..
.. bpo: 33209
.. date: 2018-04-03-10-37-13
.. nonce: 9sGWE_
.. section: Library
End framing at the end of C implementation of :func:`pickle.Pickler.dump`.
..
.. bpo: 32861
.. date: 2018-04-02-20-44-54
.. nonce: HeBjzN
.. section: Library
The urllib.robotparser's ``__str__`` representation now includes wildcard
entries and the "Crawl-delay" and "Request-rate" fields. Patch by Michael
Lazar.
..
.. bpo: 33096
.. date: 2018-03-25-13-18-16
.. nonce: ofdbe7
.. section: Library
Allow ttk.Treeview.insert to insert iid that has a false boolean value. Note
iid=0 and iid=False would be same. Patch by Garvit Khatri.
..
.. bpo: 33127
.. date: 2018-03-24-15-08-24
.. nonce: olJmHv
.. section: Library
The ssl module now compiles with LibreSSL 2.7.1.
..
.. bpo: 33021
.. date: 2018-03-12-00-27-56
.. nonce: m19B9T
.. section: Library
Release the GIL during fstat() calls, avoiding hang of all threads when
calling mmap.mmap(), os.urandom(), and random.seed().  Patch by Nir Soffer.
..
.. bpo: 27683
.. date: 2018-03-07-22-28-17
.. nonce: 572Rv4
.. section: Library
Fix a regression in :mod:`ipaddress` that result of :meth:`hosts` is empty
when the network is constructed by a tuple containing an integer mask and
only 1 bit left for addresses.
..
.. bpo: 32844
.. date: 2018-02-28-13-08-00
.. nonce: u8tnAe
.. section: Library
Fix wrong redirection of a low descriptor (0 or 1) to stderr in subprocess
if another low descriptor is closed.
..
.. bpo: 31908
.. date: 2017-10-31
.. nonce: g4xh8x
.. section: Library
Fix output of cover files for ``trace`` module command-line tool. Previously
emitted cover files only when ``--missing`` option was used. Patch by
Michael Selik.
..
.. bpo: 31457
.. date: 2017-10-18-19-05-17
.. nonce: KlE6r8
.. section: Library
If nested log adapters are used, the inner ``process()`` methods are no
longer omitted.
..
.. bpo: 16865
.. date: 2017-09-29-16-40-38
.. nonce: l-f6I_
.. section: Library
Support arrays >=2GiB in :mod:`ctypes`.  Patch by Segev Finer.
..
.. bpo: 31238
.. date: 2017-08-21-12-31-53
.. nonce: Gg0LRH
.. section: Library
pydoc: the stop() method of the private ServerThread class now waits until
DocServer.serve_until_quit() completes and then explicitly sets its
docserver attribute to None to break a reference cycle.
..
.. bpo: 33503
.. date: 2018-05-14-20-08-58
.. nonce: Wvt0qg
.. section: Documentation
Fix broken pypi link
..
.. bpo: 33421
.. date: 2018-05-14-15-23-51
.. nonce: 3GU_QO
.. section: Documentation
Add missing documentation for ``typing.AsyncContextManager``.
..
.. bpo: 33378
.. date: 2018-04-29-04-02-18
.. nonce: -anAHN
.. section: Documentation
Add Korean language switcher for https://docs.python.org/3/
..
.. bpo: 33276
.. date: 2018-04-20-14-09-36
.. nonce: rA1z_3
.. section: Documentation
Clarify that the ``__path__`` attribute on modules cannot be just any value.
..
.. bpo: 33201
.. date: 2018-04-01-21-03-41
.. nonce: aa8Lkl
.. section: Documentation
Modernize documentation for writing C extension types.
..
.. bpo: 33195
.. date: 2018-04-01-14-30-36
.. nonce: dRS-XX
.. section: Documentation
Deprecate ``Py_UNICODE`` usage in ``c-api/arg`` document. ``Py_UNICODE``
related APIs are deprecated since Python 3.3, but it is missed in the
document.
..
.. bpo: 33126
.. date: 2018-03-28-17-03-17
.. nonce: 5UGkNv
.. section: Documentation
Document PyBuffer_ToContiguous().
..
.. bpo: 27212
.. date: 2018-03-22-19-23-04
.. nonce: wrE5KR
.. section: Documentation
Modify documentation for the :func:`islice` recipe to consume initial values
up to the start index.
..
.. bpo: 28247
.. date: 2018-03-20-20-11-05
.. nonce: -V-WS-
.. section: Documentation
Update :mod:`zipapp` documentation to describe how to make standalone
applications.
..
.. bpo: 18802
.. date: 2018-03-11-18-53-47
.. nonce: JhAqH3
.. section: Documentation
Documentation changes for ipaddress.  Patch by Jon Foster and Berker Peksag.
..
.. bpo: 27428
.. date: 2018-03-11-00-16-56
.. nonce: B7A8FT
.. section: Documentation
Update documentation to clarify that ``WindowsRegistryFinder`` implements
``MetaPathFinder``. (Patch by Himanshu Lakhara)
..
.. bpo: 8243
.. date: 2018-01-13-20-30-53
.. nonce: s98r28
.. section: Documentation
Add a note about curses.addch and curses.addstr exception behavior when
writing outside a window, or pad.
..
.. bpo: 31432
.. date: 2017-09-13-07-14-59
.. nonce: yAY4Z3
.. section: Documentation
Clarify meaning of CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED flags for
ssl.SSLContext.verify_mode.
..
.. bpo: 33655
.. date: 2018-05-26-16-01-40
.. nonce: Frb4LA
.. section: Tests
Ignore test_posix_fallocate failures on BSD platforms that might be due to
running on ZFS.
..
.. bpo: 19417
.. date: 2018-01-08-13-33-47
.. nonce: 2asoXy
.. section: Tests
Add test_bdb.py.
..
.. bpo: 5755
.. date: 2018-06-04-21-34-34
.. nonce: 65GmCj
.. section: Build
Move ``-Wstrict-prototypes`` option to ``CFLAGS_NODIST`` from ``OPT``. This
option emitted annoying warnings when building extension modules written in
C++.
..
.. bpo: 33614
.. date: 2018-05-28-11-40-22
.. nonce: 28e0sE
.. section: Build
Ensures module definition files for the stable ABI on Windows are correctly
regenerated.
..
.. bpo: 33522
.. date: 2018-05-15-12-44-50
.. nonce: mJoNcA
.. section: Build
Enable CI builds on Visual Studio Team Services at
https://python.visualstudio.com/cpython
..
.. bpo: 33012
.. date: 2018-05-10-21-10-01
.. nonce: 5Zfjac
.. section: Build
Add ``-Wno-cast-function-type`` for gcc 8 for silencing warnings about
function casts like casting to PyCFunction in method definition lists.
..
.. bpo: 33394
.. date: 2018-04-30-17-36-46
.. nonce: _Vdi4t
.. section: Build
Enable the verbose build for extension modules, when GNU make is passed
macros on the command line.
..
.. bpo: 33184
.. date: 2018-04-13-11-39-28
.. nonce: aEohx0
.. section: Windows
Update Windows installer to OpenSSL 1.0.2o.
..
.. bpo: 33184
.. date: 2018-04-07-00-58-50
.. nonce: rMTiqu
.. section: macOS
Update macOS installer build to use OpenSSL 1.0.2o.
..
.. bpo: 33656
.. date: 2018-06-10-17-59-36
.. nonce: 60ZqJS
.. section: IDLE
On Windows, add API call saying that tk scales for DPI. On Windows 8.1+ or
10, with DPI compatibility properties of the Python binary unchanged, and a
monitor resolution greater than 96 DPI, this should make text and lines
sharper.  It should otherwise have no effect.
..
.. bpo: 33768
.. date: 2018-06-04-19-23-11
.. nonce: I_2qpV
.. section: IDLE
Clicking on a context line moves that line to the top of the editor window.
..
.. bpo: 33763
.. date: 2018-06-03-20-12-57
.. nonce: URiFlE
.. section: IDLE
IDLE: Use read-only text widget for code context instead of label widget.
..
.. bpo: 33664
.. date: 2018-06-03-09-13-28
.. nonce: PZzQyL
.. section: IDLE
Scroll IDLE editor text by lines. Previously, the mouse wheel and scrollbar
slider moved text by a fixed number of pixels, resulting in partial lines at
the top of the editor box.  The change also applies to the shell and grep
output windows, but not to read-only text views.
..
.. bpo: 33679
.. date: 2018-05-29-07-14-37
.. nonce: MgX_Ui
.. section: IDLE
Enable theme-specific color configuration for Code Context. Use the
Highlights tab to see the setting for built-in themes or add settings to
custom themes.
..
.. bpo: 33642
.. date: 2018-05-24-20-42-44
.. nonce: J0VQbS
.. section: IDLE
Display up to maxlines non-blank lines for Code Context. If there is no
current context, show a single blank line.
..
.. bpo: 33628
.. date: 2018-05-23-19-51-07
.. nonce: sLlFLO
.. section: IDLE
IDLE: Cleanup codecontext.py and its test.
..
.. bpo: 33564
.. date: 2018-05-17-19-41-12
.. nonce: XzHZJe
.. section: IDLE
IDLE's code context now recognizes async as a block opener.
..
.. bpo: 29706
.. date: 2018-05-15-17-01-10
.. nonce: id4H5i
.. section: IDLE
IDLE now colors async and await as keywords in 3.6. They become full
keywords in 3.7.
..
.. bpo: 21474
.. date: 2018-04-29-16-13-02
.. nonce: bglg-F
.. section: IDLE
Update word/identifier definition from ascii to unicode. In text and entry
boxes, this affects selection by double-click, movement left/right by
control-left/right, and deletion left/right by control-BACKSPACE/DEL.
..
.. bpo: 33204
.. date: 2018-04-02-00-28-13
.. nonce: NBsuIv
.. section: IDLE
IDLE: consistently color invalid string prefixes. A 'u' string prefix cannot
be paired with either 'r' or 'f'. Consistently color as much of the prefix,
starting at the right, as is valid. Revise and extend colorizer test.
..
.. bpo: 32831
.. date: 2018-02-12-08-08-45
.. nonce: srDRvU
.. section: IDLE
Add docstrings and tests for codecontext.
..
.. bpo: 33189
.. date: 2018-04-03-18-10-00
.. nonce: QrXR00
.. section: Tools/Demos
:program:`pygettext.py` now recognizes only literal strings as docstrings
and translatable strings, and rejects bytes literals and f-string
expressions.
..
.. bpo: 31920
.. date: 2018-03-26-18-54-24
.. nonce: u_WKsT
.. section: Tools/Demos
Fixed handling directories as arguments in the ``pygettext`` script. Based
on patch by Oleg Krasnikov.
..
.. bpo: 29673
.. date: 2018-03-16-17-25-05
.. nonce: m8QtaW
.. section: Tools/Demos
Fix pystackv and pystack gdbinit macros.
..
.. bpo: 32885
.. date: 2018-02-20-12-16-47
.. nonce: dL5x7C
.. section: Tools/Demos
Add an ``-n`` flag for ``Tools/scripts/pathfix.py`` to disable automatic
backup creation (files with ``~`` suffix).
..
.. bpo: 31583
.. date: 2017-09-26-10-11-21
.. nonce: TM90_H
.. section: Tools/Demos
Fix 2to3 for using with --add-suffix option but without --output-dir option
for relative path to files in current directory.
..
.. bpo: 32374
.. date: 2018-01-09-17-03-54
.. nonce: SwwLoz
.. section: C API
Document that m_traverse for multi-phase initialized modules can be called
with m_state=NULL, and add a sanity check

.. bpo: 24467
.. date: 9236
.. nonce: BAJ80-
.. release date: 2015-07-05
.. section: Core and Builtins
Fixed possible buffer over-read in bytearray. The bytearray object now
always allocates place for trailing null byte and it's buffer now is always
null-terminated.
..
.. bpo: 0
.. date: 9235
.. nonce: 944IUY
.. section: Core and Builtins
Upgrade to Unicode 8.0.0.
..
.. bpo: 24345
.. date: 9234
.. nonce: fVcTaB
.. section: Core and Builtins
Add Py_tp_finalize slot for the stable ABI.
..
.. bpo: 24400
.. date: 9233
.. nonce: 2mNeD8
.. section: Core and Builtins
Introduce a distinct type for :pep:`492` coroutines; add types.CoroutineType,
inspect.getcoroutinestate, inspect.getcoroutinelocals; coroutines no longer
use CO_GENERATOR flag; sys.set_coroutine_wrapper works only for 'async def'
coroutines; inspect.iscoroutine no longer uses collections.abc.Coroutine,
it's intended to test for pure 'async def' coroutines only; add new opcode:
GET_YIELD_FROM_ITER; fix generators wrapper used in types.coroutine to be
instance of collections.abc.Generator; collections.abc.Awaitable and
collections.abc.Coroutine can no longer be used to detect generator-based
coroutines--use inspect.isawaitable instead.
..
.. bpo: 24450
.. date: 9232
.. nonce: lF0S5c
.. section: Core and Builtins
Add gi_yieldfrom to generators and cr_await to coroutines. Contributed by
Benno Leslie and Yury Selivanov.
..
.. bpo: 19235
.. date: 9231
.. nonce: 0kW4n5
.. section: Core and Builtins
Add new RecursionError exception. Patch by Georg Brandl.
..
.. bpo: 21750
.. date: 9230
.. nonce: _Ycvgi
.. section: Library
mock_open.read_data can now be read from each instance, as it could in
Python 3.3.
..
.. bpo: 24552
.. date: 9229
.. nonce: VTO6sf
.. section: Library
Fix use after free in an error case of the _pickle module.
..
.. bpo: 24514
.. date: 9228
.. nonce: _xRb2r
.. section: Library
tarfile now tolerates number fields consisting of only whitespace.
..
.. bpo: 19176
.. date: 9227
.. nonce: 8V6nOK
.. section: Library
Fixed doctype() related bugs in C implementation of ElementTree. A
deprecation warning no longer issued by XMLParser subclass with default
doctype() method.  Direct call of doctype() now issues a warning.  Parser's
doctype() now is not called if target's doctype() is called.  Based on patch
by Martin Panter.
..
.. bpo: 20387
.. date: 9226
.. nonce: aAbWbQ
.. section: Library
Restore semantic round-trip correctness in tokenize/untokenize for
tab-indented blocks.
..
.. bpo: 24456
.. date: 9225
.. nonce: yYSd2u
.. section: Library
Fixed possible buffer over-read in adpcm2lin() and lin2adpcm() functions of
the audioop module.
..
.. bpo: 24336
.. date: 9224
.. nonce: 4a5y1m
.. section: Library
The contextmanager decorator now works with functions with keyword arguments
called "func" and "self".  Patch by Martin Panter.
..
.. bpo: 24522
.. date: 9223
.. nonce: PkcqCA
.. section: Library
Fix possible integer overflow in json accelerator module.
..
.. bpo: 24489
.. date: 9222
.. nonce: GJnMcW
.. section: Library
ensure a previously set C errno doesn't disturb cmath.polar().
..
.. bpo: 24408
.. date: 9221
.. nonce: vPb5UK
.. section: Library
Fixed AttributeError in measure() and metrics() methods of tkinter.Font.
..
.. bpo: 14373
.. date: 9220
.. nonce: CTYZ4J
.. section: Library
C implementation of functools.lru_cache() now can be used with methods.
..
.. bpo: 24347
.. date: 9219
.. nonce: CPPDb8
.. section: Library
Set KeyError if PyDict_GetItemWithError returns NULL.
..
.. bpo: 24348
.. date: 9218
.. nonce: U11rhr
.. section: Library
Drop superfluous incref/decref.
..
.. bpo: 24359
.. date: 9217
.. nonce: -IRNG9
.. section: Library
Check for changed OrderedDict size during iteration.
..
.. bpo: 24368
.. date: 9216
.. nonce: 550kDT
.. section: Library
Support keyword arguments in OrderedDict methods.
..
.. bpo: 24362
.. date: 9215
.. nonce: cHYce5
.. section: Library
Simplify the C OrderedDict fast nodes resize logic.
..
.. bpo: 24377
.. date: 9214
.. nonce: Gp1Bqr
.. section: Library
Fix a ref leak in OrderedDict.__repr__.
..
.. bpo: 24369
.. date: 9213
.. nonce: qFl7lZ
.. section: Library
Defend against key-changes during iteration.
..
.. bpo: 24373
.. date: 9212
.. nonce: 6TL2XG
.. section: Tests
_testmultiphase and xxlimited now use tp_traverse and tp_finalize to avoid
reference leaks encountered when combining tp_dealloc with PyType_FromSpec
(see issue #16690 for details)
..
.. bpo: 24458
.. date: 9211
.. nonce: 1egApX
.. section: Documentation
Update documentation to cover multi-phase initialization for extension
modules (PEP 489). Patch by Petr Viktorin.
..
.. bpo: 24351
.. date: 9210
.. nonce: XeSVl5
.. section: Documentation
Clarify what is meant by "identifier" in the context of string.Template
instances.
..
.. bpo: 24432
.. date: 9209
.. nonce: IvUSiN
.. section: Build
Update Windows builds and OS X 10.5 installer to use OpenSSL 1.0.2c.

.. bpo: 24305
.. date: 9302
.. nonce: QeF4A8
.. release date: 2015-09-07
.. section: Core and Builtins
Prevent import subsystem stack frames from being counted by the
warnings.warn(stacklevel=) parameter.
..
.. bpo: 24912
.. date: 9301
.. nonce: ubSi5J
.. section: Core and Builtins
Prevent __class__ assignment to immutable built-in objects.
..
.. bpo: 24975
.. date: 9300
.. nonce: 2gLdfN
.. section: Core and Builtins
Fix AST compilation for :pep:`448` syntax.
..
.. bpo: 24917
.. date: 9299
.. nonce: xaQocz
.. section: Library
time_strftime() buffer over-read.
..
.. bpo: 24748
.. date: 9298
.. nonce: 83NuO8
.. section: Library
To resolve a compatibility problem found with py2exe and pywin32,
imp.load_dynamic() once again ignores previously loaded modules to support
Python modules replacing themselves with extension modules. Patch by Petr
Viktorin.
..
.. bpo: 24635
.. date: 9297
.. nonce: EiJPPf
.. section: Library
Fixed a bug in typing.py where isinstance([], typing.Iterable) would return
True once, then False on subsequent calls.
..
.. bpo: 24989
.. date: 9296
.. nonce: 9BJLiy
.. section: Library
Fixed buffer overread in BytesIO.readline() if a position is set beyond
size.  Based on patch by John Leitch.
..
.. bpo: 24913
.. date: 9295
.. nonce: p2ZAJ4
.. section: Library
Fix overrun error in deque.index(). Found by John Leitch and Bryce Darling.

.. bpo: 32176
.. date: 2017-12-02-21-37-22
.. nonce: Wt25-N
.. release date: 2017-12-05
.. section: Core and Builtins
co_flags.CO_NOFREE is now always set correctly by the code object
constructor based on freevars and cellvars, rather than needing to be set
correctly by the caller. This ensures it will be cleared automatically when
additional cell references are injected into a modified code object and
function.
..
.. bpo: 31949
.. date: 2017-11-05-16-11-07
.. nonce: 2yNC_z
.. section: Core and Builtins
Fixed several issues in printing tracebacks (PyTraceBack_Print()).
Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks.
Setting sys.tracebacklimit to None now causes using the default limit.
Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using
the limit LONG_MAX rather than the default limit.
Fixed integer overflows in the case of more than ``2**31`` traceback items on
Windows.
Fixed output errors handling.
..
.. bpo: 30696
.. date: 2017-10-28-22-06-03
.. nonce: lhC3HE
.. section: Core and Builtins
Fix the interactive interpreter looping endlessly when no memory.
..
.. bpo: 20047
.. date: 2017-10-28-19-11-05
.. nonce: GuNAto
.. section: Core and Builtins
Bytearray methods partition() and rpartition() now accept only bytes-like
objects as separator, as documented.  In particular they now raise TypeError
rather of returning a bogus result when an integer is passed as a separator.
..
.. bpo: 31852
.. date: 2017-10-27-19-18-44
.. nonce: P_4cVr
.. section: Core and Builtins
Fix a segmentation fault caused by a combination of the async soft keyword
and continuation lines.
..
.. bpo: 21720
.. date: 2017-10-25-15-51-37
.. nonce: BwIKLP
.. section: Core and Builtins
BytesWarning no longer emitted when the *fromlist* argument of
``__import__()`` or the ``__all__`` attribute of the module contain bytes
instances.
..
.. bpo: 31825
.. date: 2017-10-20-14-07-46
.. nonce: gJvmGW
.. section: Core and Builtins
Fixed OverflowError in the 'unicode-escape' codec and in
codecs.escape_decode() when decode an escaped non-ascii byte.
..
.. bpo: 28603
.. date: 2017-10-17-13-29-19
.. nonce: _-oia3
.. section: Core and Builtins
Print the full context/cause chain of exceptions on interpreter exit, even
if an exception in the chain is unhashable or compares equal to later ones.
Patch by Zane Bitter.
..
.. bpo: 31786
.. date: 2017-10-15-23-44-57
.. nonce: XwdEP4
.. section: Core and Builtins
Fix timeout rounding in the select module to round correctly negative
timeouts between -1.0 and 0.0. The functions now block waiting for events as
expected. Previously, the call was incorrectly non-blocking. Patch by Pablo
Galindo.
..
.. bpo: 31642
.. date: 2017-10-08-10-00-55
.. nonce: 1IKqgs
.. section: Core and Builtins
Restored blocking "from package import module" by setting
sys.modules["package.module"] to None.
..
.. bpo: 31626
.. date: 2017-10-01-15-48-03
.. nonce: reLPxY
.. section: Core and Builtins
Fixed a bug in debug memory allocator.  There was a write to freed memory
after shrinking a memory block.
..
.. bpo: 31619
.. date: 2017-09-29-20-32-24
.. nonce: 6gQ1kv
.. section: Core and Builtins
Fixed a ValueError when convert a string with large number of underscores to
integer with binary base.
..
.. bpo: 31592
.. date: 2017-09-26-16-05-04
.. nonce: IFBZj9
.. section: Core and Builtins
Fixed an assertion failure in Python parser in case of a bad
``unicodedata.normalize()``. Patch by Oren Milman.
..
.. bpo: 31588
.. date: 2017-09-26-13-03-16
.. nonce: wT9Iy7
.. section: Core and Builtins
Raise a ``TypeError`` with a helpful error message when class creation fails
due to a metaclass with a bad ``__prepare__()`` method. Patch by Oren
Milman.
..
.. bpo: 31566
.. date: 2017-09-24-09-57-04
.. nonce: OxwINs
.. section: Core and Builtins
Fix an assertion failure in ``_warnings.warn()`` in case of a bad ``__name__``
global. Patch by Oren Milman.
..
.. bpo: 31505
.. date: 2017-09-18-12-07-39
.. nonce: VomaFa
.. section: Core and Builtins
Fix an assertion failure in ``json``, in case ``_json.make_encoder()`` received
a bad ``encoder()`` argument. Patch by Oren Milman.
..
.. bpo: 31492
.. date: 2017-09-16-22-49-16
.. nonce: RtyteL
.. section: Core and Builtins
Fix assertion failures in case of failing to import from a module with a bad
``__name__`` attribute, and in case of failing to access an attribute of
such a module. Patch by Oren Milman.
..
.. bpo: 31490
.. date: 2017-09-16-13-32-35
.. nonce: r7m2sj
.. section: Core and Builtins
Fix an assertion failure in ``ctypes`` class definition, in case the class has
an attribute whose name is specified in ``_anonymous_`` but not in
``_fields_``. Patch by Oren Milman.
..
.. bpo: 31478
.. date: 2017-09-15-09-13-07
.. nonce: o06iKD
.. section: Core and Builtins
Fix an assertion failure in ``_random.Random.seed()`` in case the argument has
a bad ``__abs__()`` method. Patch by Oren Milman.
..
.. bpo: 31315
.. date: 2017-09-01-00-40-58
.. nonce: ZX20bl
.. section: Core and Builtins
Fix an assertion failure in imp.create_dynamic(), when spec.name is not a
string. Patch by Oren Milman.
..
.. bpo: 31311
.. date: 2017-08-31-17-52-56
.. nonce: bNE2l-
.. section: Core and Builtins
Fix a crash in the ``__setstate__()`` method of ``ctypes._CData``, in case of
a bad ``__dict__``. Patch by Oren Milman.
..
.. bpo: 31293
.. date: 2017-08-28-17-51-42
.. nonce: eMYZXj
.. section: Core and Builtins
Fix crashes in true division and multiplication of a timedelta object by a
float with a bad as_integer_ratio() method. Patch by Oren Milman.
..
.. bpo: 31285
.. date: 2017-08-27-21-18-30
.. nonce: 7lzaKV
.. section: Core and Builtins
Fix an assertion failure in ``warnings.warn_explicit``, when the return value
of the received loader's ``get_source()`` has a bad ``splitlines()`` method. Patch
by Oren Milman.
..
.. bpo: 30817
.. date: 2017-07-01-15-11-13
.. nonce: j7ZvN_
.. section: Core and Builtins
``PyErr_PrintEx()`` clears now the ignored exception that may be raised by
``_PySys_SetObjectId()``, for example when no memory.
..
.. bpo: 28556
.. date: 2017-12-05-02-03-07
.. nonce: 9Z_PsJ
.. section: Library
Two minor fixes for ``typing`` module: allow shallow copying instances of
generic classes, improve interaction of ``__init_subclass__`` with generics.
Original PRs by Ivan Levkivskyi.
..
.. bpo: 27240
.. date: 2017-12-02-16-06-00
.. nonce: Kji34M
.. section: Library
The header folding algorithm for the new email policies has been rewritten,
which also fixes bpo-30788, bpo-31831, and bpo-32182.  In particular,
RFC2231 folding is now done correctly.
..
.. bpo: 32186
.. date: 2017-11-30-20-38-16
.. nonce: O42bVe
.. section: Library
io.FileIO.readall() and io.FileIO.read() now release the GIL when getting
the file size. Fixed hang of all threads with inaccessible NFS server. Patch
by Nir Soffer.
..
.. bpo: 12239
.. date: 2017-11-24-14-07-55
.. nonce: Nj3A0x
.. section: Library
Make :meth:`!msilib.SummaryInformation.GetProperty` return ``None`` when the
value of property is ``VT_EMPTY``.  Initial patch by Mark Mc Mahon.
..
.. bpo: 31325
.. date: 2017-11-23-22-12-11
.. nonce: 8jAUxN
.. section: Library
Fix wrong usage of :func:`collections.namedtuple` in the
:meth:`RobotFileParser.parse() <urllib.robotparser.RobotFileParser.parse>`
method.
Initial patch by Robin Wellner.
..
.. bpo: 12382
.. date: 2017-11-23-21-47-36
.. nonce: xWT9k0
.. section: Library
:func:`!msilib.OpenDatabase` now raises a better exception message when it
couldn't open or create an MSI file.  Initial patch by William Tisäter.
..
.. bpo: 32110
.. date: 2017-11-22-09-44-15
.. nonce: VJa9bo
.. section: Library
``codecs.StreamReader.read(n)`` now returns not more than *n*
characters/bytes for non-negative *n*. This makes it compatible with
``read()`` methods of other file-like objects.
..
.. bpo: 32072
.. date: 2017-11-18-21-13-52
.. nonce: nwDV8L
.. section: Library
Fixed issues with binary plists:
Fixed saving bytearrays.
Identical objects will be saved only once.
Equal references will be load as identical objects.
Added support for saving and loading recursive data structures.
..
.. bpo: 32034
.. date: 2017-11-15-13-44-28
.. nonce: uHAOmu
.. section: Library
Make asyncio.IncompleteReadError and LimitOverrunError pickleable.
..
.. bpo: 32015
.. date: 2017-11-13-17-48-33
.. nonce: 4nqRTD
.. section: Library
Fixed the looping of asyncio in the case of reconnection the socket during
waiting async read/write from/to the socket.
..
.. bpo: 32011
.. date: 2017-11-12-20-47-59
.. nonce: NzVDdZ
.. section: Library
Restored support of loading marshal files with the TYPE_INT64 code. These
files can be produced in Python 2.7.
..
.. bpo: 31970
.. date: 2017-11-07-14-20-09
.. nonce: x4EN_9
.. section: Library
Reduce performance overhead of asyncio debug mode.
..
.. bpo: 9678
.. date: 2017-11-03-22-05-47
.. nonce: oD51q6
.. section: Library
Fixed determining the MAC address in the uuid module:
Using ifconfig on NetBSD and OpenBSD.
Using arp on Linux, FreeBSD, NetBSD and OpenBSD.
Based on patch by Takayuki Shimizukawa.
..
.. bpo: 30057
.. date: 2017-11-03-19-11-43
.. nonce: NCaijI
.. section: Library
Fix potential missed signal in signal.signal().
..
.. bpo: 31933
.. date: 2017-11-03-08-36-03
.. nonce: UrtoMP
.. section: Library
Fix Blake2 params leaf_size and node_offset on big endian platforms. Patch
by Jack O'Connor.
..
.. bpo: 31927
.. date: 2017-11-02-18-26-40
.. nonce: 40K6kp
.. section: Library
Fixed compilation of the socket module on NetBSD 8.  Fixed assertion failure
or reading arbitrary data when parse a AF_BLUETOOTH address on NetBSD and
DragonFly BSD.
..
.. bpo: 27666
.. date: 2017-11-01-18-13-42
.. nonce: j2zRnF
.. section: Library
Fixed stack corruption in curses.box() and curses.ungetmouse() when the size
of types chtype or mmask_t is less than the size of C long.  curses.box()
now accepts characters as arguments.  Based on patch by Steve Fink.
..
.. bpo: 31897
.. date: 2017-10-30-11-04-56
.. nonce: yjwdEb
.. section: Library
plistlib now catches more errors when read binary plists and raises
InvalidFileException instead of unexpected exceptions.
..
.. bpo: 25720
.. date: 2017-10-29-17-52-40
.. nonce: vSvb5h
.. section: Library
Fix the method for checking pad state of curses WINDOW. Patch by Masayuki
Yamamoto.
..
.. bpo: 31893
.. date: 2017-10-29-13-51-01
.. nonce: 8LZKEz
.. section: Library
Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD. Fixed
the comparison of the kqueue_event objects.
..
.. bpo: 31891
.. date: 2017-10-29-11-23-24
.. nonce: 9kAPha
.. section: Library
Fixed building the curses module on NetBSD.
..
.. bpo: 28416
.. date: 2017-10-23-12-05-33
.. nonce: Ldnw8X
.. section: Library
Instances of pickle.Pickler subclass with the persistent_id() method and
pickle.Unpickler subclass with the persistent_load() method no longer create
reference cycles.
..
.. bpo: 28326
.. date: 2017-10-22-11-06-02
.. nonce: rxh7L4
.. section: Library
Fix multiprocessing.Process when stdout and/or stderr is closed or None.
..
.. bpo: 31457
.. date: 2017-10-18-19-05-17
.. nonce: KlE6r8
.. section: Library
If nested log adapters are used, the inner ``process()`` methods are no
longer omitted.
..
.. bpo: 31457
.. date: 2017-10-18-16-48-09
.. nonce: _ovmzp
.. section: Library
The ``manager`` property on LoggerAdapter objects is now properly settable.
..
.. bpo: 31806
.. date: 2017-10-17-23-27-03
.. nonce: TzphdL
.. section: Library
Fix timeout rounding in time.sleep(), threading.Lock.acquire() and
socket.socket.settimeout() to round correctly negative timeouts between -1.0
and 0.0. The functions now block waiting for events as expected. Previously,
the call was incorrectly non-blocking. Patch by Pablo Galindo.
..
.. bpo: 28603
.. date: 2017-10-17-12-29-18
.. nonce: tGuX2C
.. section: Library
traceback: Fix a TypeError that occurred during printing of exception
tracebacks when either the current exception or an exception in its
context/cause chain is unhashable. Patch by Zane Bitter.
..
.. bpo: 30058
.. date: 2017-10-12-19-00-53
.. nonce: cENtry
.. section: Library
Fixed buffer overflow in select.kqueue.control().
..
.. bpo: 31770
.. date: 2017-10-12-18-45-38
.. nonce: GV3MPx
.. section: Library
Prevent a crash when calling the ``__init__()`` method of a
``sqlite3.Cursor`` object more than once. Patch by Oren Milman.
..
.. bpo: 31672
.. date: 2017-10-12-02-47-16
.. nonce: DaOkVd
.. section: Library
``idpattern`` in ``string.Template`` matched some non-ASCII characters. Now
it uses ``-i`` regular expression local flag to avoid non-ASCII characters.
..
.. bpo: 31764
.. date: 2017-10-11-22-18-04
.. nonce: EMyIkK
.. section: Library
Prevent a crash in ``sqlite3.Cursor.close()`` in case the ``Cursor`` object
is uninitialized. Patch by Oren Milman.
..
.. bpo: 31752
.. date: 2017-10-11-00-45-01
.. nonce: DhWevN
.. section: Library
Fix possible crash in timedelta constructor called with custom integers.
..
.. bpo: 31701
.. date: 2017-10-09-17-42-30
.. nonce: NRrVel
.. section: Library
On Windows, faulthandler.enable() now ignores MSC and COM exceptions.
..
.. bpo: 31728
.. date: 2017-10-08-23-28-30
.. nonce: XrVMME
.. section: Library
Prevent crashes in ``_elementtree`` due to unsafe cleanup of ``Element.text``
and ``Element.tail``. Patch by Oren Milman.
..
.. bpo: 31620
.. date: 2017-10-06-04-35-31
.. nonce: gksLA1
.. section: Library
an empty asyncio.Queue now doesn't leak memory when queue.get pollers
timeout
..
.. bpo: 31632
.. date: 2017-10-04-11-37-14
.. nonce: LiOC3C
.. section: Library
Fix method set_protocol() of class _SSLProtocolTransport in asyncio module.
This method was previously modifying a wrong reference to the protocol.
..
.. bpo: 31675
.. date: 2017-10-03-15-06-24
.. nonce: Nh7jJ3
.. section: Library
Fixed memory leaks in Tkinter's methods splitlist() and split() when pass a
string larger than 2 GiB.
..
.. bpo: 31673
.. date: 2017-10-03-14-37-46
.. nonce: RFCrka
.. section: Library
Fixed typo in the name of Tkinter's method adderrorinfo().
..
.. bpo: 30806
.. date: 2017-09-29
.. nonce: lP5GrH
.. section: Library
Fix the string representation of a netrc object.
..
.. bpo: 15037
.. date: 2017-09-29-19-19-36
.. nonce: ykimLK
.. section: Library
Added a workaround for getkey() in curses for ncurses 5.7 and earlier.
..
.. bpo: 25351
.. date: 2017-09-28-23-10-51
.. nonce: 2JmFpF
.. section: Library
Avoid venv activate failures with undefined variables
..
.. bpo: 25532
.. date: 2017-09-27-08-11-38
.. nonce: ey4Yez
.. section: Library
inspect.unwrap() will now only try to unwrap an object
sys.getrecursionlimit() times, to protect against objects which create a new
object on every attribute access.
..
.. bpo: 30347
.. date: 2017-09-25-14-04-30
.. nonce: B4--_D
.. section: Library
Stop crashes when concurrently iterate over itertools.groupby() iterators.
..
.. bpo: 31516
.. date: 2017-09-20-18-43-01
.. nonce: 23Yuq3
.. section: Library
``threading.current_thread()`` should not return a dummy thread at shutdown.
..
.. bpo: 31351
.. date: 2017-09-17-15-24-25
.. nonce: yQdKv-
.. section: Library
python -m ensurepip now exits with non-zero exit code if pip bootstrapping
has failed.
..
.. bpo: 31482
.. date: 2017-09-16-01-53-11
.. nonce: 39s5dS
.. section: Library
``random.seed()`` now works with bytes in version=1
..
.. bpo: 31334
.. date: 2017-09-04-00-22-31
.. nonce: 9WYRfi
.. section: Library
Fix ``poll.poll([timeout])`` in the ``select`` module for arbitrary negative
timeouts on all OSes where it can only be a non-negative integer or -1.
Patch by Riccardo Coccioli.
..
.. bpo: 31310
.. date: 2017-08-30-18-23-54
.. nonce: 7D1UNt
.. section: Library
multiprocessing's semaphore tracker should be launched again if crashed.
..
.. bpo: 31308
.. date: 2017-08-30-17-59-36
.. nonce: KbexyC
.. section: Library
Make multiprocessing's forkserver process immune to Ctrl-C and other user
interruptions. If it crashes, restart it when necessary.
..
.. bpo: 32105
.. date: 2017-11-21-10-54-16
.. nonce: 91mhWm
.. section: Documentation
Added asyncio.BaseEventLoop.connect_accepted_socket versionadded marker.
..
.. bpo: 31537
.. date: 2017-10-08-23-02-14
.. nonce: SiFNM8
.. section: Documentation
Fix incorrect usage of ``get_history_length`` in readline documentation
example code. Patch by Brad Smith.
..
.. bpo: 30085
.. date: 2017-09-14-18-44-50
.. nonce: 0J9w-u
.. section: Documentation
The operator functions without double underscores are preferred for clarity.
The one with underscores are only kept for back-compatibility.
..
.. bpo: 31380
.. date: 2017-12-04-23-19-16
.. nonce: VlMmHW
.. section: Tests
Skip test_httpservers test_undecodable_file on macOS: fails on APFS.
..
.. bpo: 31705
.. date: 2017-11-30-12-27-10
.. nonce: yULW7O
.. section: Tests
Skip test_socket.test_sha256() on Linux kernel older than 4.5. The test
fails with ENOKEY on kernel 3.10 (on ppc64le). A fix was merged into the
kernel 4.5.
..
.. bpo: 31174
.. date: 2017-10-24-11-36-10
.. nonce: xCvXcr
.. section: Tests
Fix test_tools.test_unparse: DirectoryTestCase now stores the names sample
to always test the same files. It prevents false alarms when hunting
reference leaks.
..
.. bpo: 30695
.. date: 2017-06-30-11-20-20
.. nonce: lo7FQX
.. section: Tests
Add the ``set_nomemory(start, stop)`` and ``remove_mem_hooks()`` functions to
the ``_testcapi`` module.
..
.. bpo: 32059
.. date: 2017-11-18-11-19-28
.. nonce: a0Hxgp
.. section: Build
``detect_modules()`` in ``setup.py`` now also searches the sysroot paths
when cross-compiling.
..
.. bpo: 31957
.. date: 2017-11-06-11-53-39
.. nonce: S_1jFK
.. section: Build
Fixes Windows SDK version detection when building for Windows.
..
.. bpo: 31609
.. date: 2017-11-04-15-35-08
.. nonce: k7_nBR
.. section: Build
Fixes quotes in PCbuild/clean.bat
..
.. bpo: 31934
.. date: 2017-11-03-15-17-50
.. nonce: 8bUlpv
.. section: Build
Abort the build when building out of a not clean source tree.
..
.. bpo: 31926
.. date: 2017-11-03-10-07-14
.. nonce: 57wE98
.. section: Build
Fixed Argument Clinic sometimes causing compilation errors when there was
more than one function and/or method in a .c file with the same name.
..
.. bpo: 28791
.. date: 2017-11-02-20-30-57
.. nonce: VaE3o8
.. section: Build
Update Windows builds to use SQLite 3.21.0.
..
.. bpo: 28791
.. date: 2017-11-02-20-13-46
.. nonce: STt3jL
.. section: Build
Update OS X installer to use SQLite 3.21.0.
..
.. bpo: 22140
.. date: 2017-09-26-22-39-58
.. nonce: ZRf7Wn
.. section: Build
Prevent double substitution of prefix in python-config.sh.
..
.. bpo: 31536
.. date: 2017-09-20-21-32-21
.. nonce: KUDjno
.. section: Build
Avoid wholesale rebuild after ``make regen-all`` if nothing changed.
..
.. bpo: 1102
.. date: 2017-11-19-09-46-27
.. nonce: NY-g1F
.. section: Windows
Return ``None`` when ``View.Fetch()`` returns ``ERROR_NO_MORE_ITEMS``
instead of raising ``MSIError``.
Initial patch by Anthony Tuininga.
..
.. bpo: 31944
.. date: 2017-11-04-15-29-47
.. nonce: 0Bx8tZ
.. section: Windows
Fixes Modify button in Apps and Features dialog.
..
.. bpo: 31392
.. date: 2017-12-04-21-57-43
.. nonce: f8huBC
.. section: macOS
Update macOS installer to use OpenSSL 1.0.2m
..
.. bpo: 32207
.. date: 2017-12-04-15-04-43
.. nonce: IzyAJo
.. section: IDLE
Improve tk event exception tracebacks in IDLE. When tk event handling is
driven by IDLE's run loop, a confusing and distracting queue.EMPTY traceback
context is no longer added to tk event exception tracebacks.  The traceback
is now the same as when event handling is driven by user code.  Patch based
on a suggestion by Serhiy Storchaka.
..
.. bpo: 32164
.. date: 2017-11-28-21-47-15
.. nonce: 2T2Na8
.. section: IDLE
Delete unused file idlelib/tabbedpages.py. Use of TabbedPageSet in
configdialog was replaced by ttk.Notebook.
..
.. bpo: 32100
.. date: 2017-11-21-08-26-08
.. nonce: P43qx2
.. section: IDLE
IDLE: Fix old and new bugs in pathbrowser; improve tests. Patch mostly by
Cheryl Sabella.
..
.. bpo: 31858
.. date: 2017-10-26-20-20-19
.. nonce: VuSA_e
.. section: IDLE
IDLE -- Restrict shell prompt manipulation to the shell. Editor and output
windows only see an empty last prompt line.  This simplifies the code and
fixes a minor bug when newline is inserted. Sys.ps1, if present, is read on
Shell start-up, but is not set or changed.
..
.. bpo: 31860
.. date: 2017-10-24-16-21-50
.. nonce: gECuWx
.. section: IDLE
The font sample in the IDLE configuration dialog is now editable. Changes
persist while IDLE remains open
..
.. bpo: 31836
.. date: 2017-10-21-15-41-53
.. nonce: fheLME
.. section: IDLE
Test_code_module now passes if run after test_idle, which sets ps1.
The code module uses sys.ps1 if present or sets it to '>>> ' if not.
Test_code_module now properly tests both behaviors.  Ditto for ps2.
..
.. bpo: 28603
.. date: 2017-10-17-13-26-13
.. nonce: TMEQfp
.. section: IDLE
Fix a TypeError that caused a shell restart when printing a traceback that
includes an exception that is unhashable. Patch by Zane Bitter.
..
.. bpo: 13802
.. date: 2017-10-12-00-51-29
.. nonce: VwjZRD
.. section: IDLE
Use non-Latin characters in the IDLE's Font settings sample. Even if one
selects a font that defines a limited subset of the unicode Basic
Multilingual Plane, tcl/tk will use other fonts that define a character. The
expanded example give users of non-Latin characters a better idea of what
they might see in IDLE's shell and editors. To make room for the expanded
sample, frames on the Font tab are re-arranged. The Font/Tabs help explains
a bit about the additions.
..
.. bpo: 31460
.. date: 2017-09-30-19-03-26
.. nonce: HpveI6
.. section: IDLE
Simplify the API of IDLE's Module Browser.
Passing a widget instead of an flist with a root widget opens the option of
creating a browser frame that is only part of a window.  Passing a full file
name instead of pieces assumed to come from a .py file opens the possibility
of browsing python files that do not end in .py.
..
.. bpo: 31649
.. date: 2017-09-30-13-59-18
.. nonce: LxN4Vb
.. section: IDLE
IDLE - Make _htest, _utest parameters keyword only.
..
.. bpo: 31559
.. date: 2017-09-23-12-52-24
.. nonce: ydckYX
.. section: IDLE
Remove test order dependence in idle_test.test_browser.
..
.. bpo: 31459
.. date: 2017-09-22-20-26-23
.. nonce: L0pnH9
.. section: IDLE
Rename IDLE's module browser from Class Browser to Module Browser. The
original module-level class and method browser became a module browser, with
the addition of module-level functions, years ago. Nested classes and
functions were added yesterday.  For back-compatibility, the virtual event
<<open-class-browser>>, which appears on the Keys tab of the Settings
dialog, is not changed. Patch by Cheryl Sabella.
..
.. bpo: 31500
.. date: 2017-09-18-10-43-03
.. nonce: Y_YDxA
.. section: IDLE
Default fonts now are scaled on HiDPI displays.
..
.. bpo: 1612262
.. date: 2017-08-14-15-13-50
.. nonce: -x_Oyq
.. section: IDLE
IDLE module browser now shows nested classes and functions. Original patches
for code and tests by Guilherme Polo and Cheryl Sabella, respectively.
..
.. bpo: 30722
.. date: 2017-10-23-19-45-52
.. nonce: ioRlAu
.. section: Tools/Demos
Make redemo work with Python 3.6 and newer versions.
Also, remove the ``LOCALE`` option since it doesn't work with string
patterns in Python 3.
Patch by Christoph Sarnowski.
..
.. bpo: 20891
.. date: 2017-11-30-18-13-45
.. nonce: wBnMdF
.. section: C API
Fix PyGILState_Ensure(). When PyGILState_Ensure() is called in a non-Python
thread before PyEval_InitThreads(), only call PyEval_InitThreads() after
calling PyThreadState_New() to fix a crash.
..
.. bpo: 31532
.. date: 2017-09-20-21-59-52
.. nonce: s9Cw9_
.. section: C API
Fix memory corruption due to allocator mix in getpath.c between Py_GetPath()
and Py_SetPath()
..
.. bpo: 30697
.. date: 2017-06-30-11-58-01
.. nonce: Q3T_8n
.. section: C API
The ``PyExc_RecursionErrorInst`` singleton is removed and
``PyErr_NormalizeException()`` does not use it anymore. This singleton is
persistent and its members being never cleared may cause a segfault during
finalization of the interpreter. See also issue #22898.

.. bpo: 46009
.. date: 2021-12-08-11-06-53
.. nonce: cL8pH0
.. release date: 2021-12-08
.. section: Core and Builtins
Restore behavior from 3.9 and earlier when sending non-None to newly started
generator. In 3.9 this did not affect the state of the generator. In 3.10.0
and 3.10.1 ``gen_func().send(0)`` is equivalent to
``gen_func().throw(TypeError(...)`` which exhausts the generator. In 3.10.2
onward, the behavior has been reverted to that of 3.9.
..
.. bpo: 46004
.. date: 2021-12-07-11-24-24
.. nonce: TTEU1p
.. section: Core and Builtins
Fix the :exc:`SyntaxError` location for errors involving for loops with
invalid targets. Patch by Pablo Galindo
..
.. bpo: 45711
.. date: 2021-12-05-17-36-08
.. nonce: 3TmTSw
.. section: Core and Builtins
:c:func:`!_PyErr_ChainStackItem` no longer normalizes ``exc_info`` (including
setting the traceback on the exception instance) because ``exc_info`` is
always normalized.
..
.. bpo: 45607
.. date: 2021-12-01-15-38-04
.. nonce: JhuF8b
.. section: Core and Builtins
The ``__note__`` field was added to :exc:`BaseException`. It is ``None`` by
default but can be set to a string which is added to the exception's
traceback.
..
.. bpo: 45947
.. date: 2021-12-01-14-06-36
.. nonce: 1XPPm_
.. section: Core and Builtins
Place pointers to dict and values immediately before GC header. This reduces
number of dependent memory loads to access either dict or values from 3 to
1.
..
.. bpo: 45915
.. date: 2021-11-28-11-25-08
.. nonce: TSGcLF
.. section: Core and Builtins
``is_valid_fd`` now uses faster ``fcntl(fd, F_GETFD)`` on Linux, macOS, and
Windows.
..
.. bpo: 44530
.. date: 2021-11-26-23-26-25
.. nonce: EZ0gel
.. section: Core and Builtins
Reverts a change to the ``code.__new__`` :ref:`audit event <audit-events>`
from an earlier prerelease.
..
.. bpo: 42268
.. date: 2021-11-26-22-31-22
.. nonce: 3wl-09
.. section: Core and Builtins
Fail the configure step if the selected compiler doesn't support memory
sanitizer. Patch by Pablo Galindo
..
.. bpo: 45711
.. date: 2021-11-25-17-51-29
.. nonce: D2igmz
.. section: Core and Builtins
The three values of ``exc_info`` are now always consistent with each other.
In particular, the ``type`` and ``traceback`` fields are now derived from
the exception instance. This impacts the return values of
:func:`sys.exc_info` and :c:func:`PyErr_GetExcInfo()` if the exception
instance is modified while the exception is handled, as well as
:c:func:`PyErr_SetExcInfo()`, which now ignores the ``type`` and
``traceback`` arguments provided to it.
..
.. bpo: 45727
.. date: 2021-11-24-18-24-49
.. nonce: _xVbbo
.. section: Core and Builtins
Refine the custom syntax error that suggests that a comma may be missing to
trigger only when the expressions are detected between parentheses or
brackets. Patch by Pablo Galindo
..
.. bpo: 45885
.. date: 2021-11-23-21-01-56
.. nonce: 3IxeCX
.. section: Core and Builtins
Specialized the ``COMPARE_OP`` opcode using the PEP 659 machinery.
..
.. bpo: 45786
.. date: 2021-11-23-15-25-00
.. nonce: UdEciD
.. section: Core and Builtins
Allocate space for the interpreter frame in the frame object, to avoid an
additional allocation when the frame object outlives the frame activation.
..
.. bpo: 45614
.. date: 2021-11-23-12-06-41
.. nonce: fIekgI
.. section: Library
Fix :mod:`traceback` display for exceptions with invalid module name.
..
.. bpo: 45813
.. date: 2021-11-22-11-28-13
.. nonce: ZMaWE2
.. section: Core and Builtins
Fix crash when calling coro.cr_frame.clear() after coroutine has been freed.
..
.. bpo: 45811
.. date: 2021-11-20-02-25-06
.. nonce: B-1Gsr
.. section: Core and Builtins
Improve the tokenizer errors when encountering invisible control characters
in the parser. Patch by Pablo Galindo
..
.. bpo: 45848
.. date: 2021-11-19-22-57-42
.. nonce: HgVBJ5
.. section: Core and Builtins
Allow the parser to obtain error lines directly from encoded files. Patch by
Pablo Galindo
..
.. bpo: 45709
.. date: 2021-11-19-13-17-47
.. nonce: H_t7ut
.. section: Core and Builtins
Restore behavior from 3.10 when tracing an exception raised within a with
statement.
..
.. bpo: 44525
.. date: 2021-11-18-10-02-02
.. nonce: M4xwn_
.. section: Core and Builtins
Adds new :opcode:`COPY_FREE_VARS` opcode, to make copying of free variables
from function to frame explicit. Helps optimization of calls to Python
function.
..
.. bpo: 45829
.. date: 2021-11-17-10-14-35
.. nonce: 5Cf6fY
.. section: Core and Builtins
Specialize :opcode:`BINARY_SUBSCR` for classes with a ``__getitem__`` method
implemented in Python
..
.. bpo: 45826
.. date: 2021-11-17-08-05-27
.. nonce: OERoTm
.. section: Core and Builtins
Fixed a crash when calling ``.with_traceback(None)`` on ``NameError``. This
occurs internally in ``unittest.TestCase.assertRaises()``.
..
.. bpo: 45822
.. date: 2021-11-16-19-41-04
.. nonce: OT6ueS
.. section: Core and Builtins
Fixed a bug in the parser that was causing it to not respect :pep:`263`
coding cookies when no flags are provided. Patch by Pablo Galindo
..
.. bpo: 45820
.. date: 2021-11-16-19-00-27
.. nonce: 2X6Psr
.. section: Core and Builtins
Fix a segfault when the parser fails without reading any input. Patch by
Pablo Galindo
..
.. bpo: 45636
.. date: 2021-11-15-13-32-54
.. nonce: RDlTdL
.. section: Core and Builtins
Simplify the implementation of :opcode:`BINARY_OP` by indexing into an array
of function pointers (rather than switching on the oparg).
..
.. bpo: 42540
.. date: 2021-11-15-12-08-27
.. nonce: V2w107
.. section: Core and Builtins
Fix crash when :func:`os.fork` is called with an active non-default memory
allocator.
..
.. bpo: 45738
.. date: 2021-11-14-00-14-45
.. nonce: e0cgKd
.. section: Core and Builtins
Fix computation of error location for invalid continuation characters in the
parser. Patch by Pablo Galindo.
..
.. bpo: 45636
.. date: 2021-11-11-19-11-57
.. nonce: 2fyIVm
.. section: Core and Builtins
Remove an existing "fast path" for old-style string formatting, since it no
longer appears to have any measurable impact.
..
.. bpo: 45753
.. date: 2021-11-11-17-14-21
.. nonce: nEBFcC
.. section: Core and Builtins
Make recursion checks a bit more efficient by tracking amount of calls left
before overflow.
..
.. bpo: 45773
.. date: 2021-11-09-13-01-35
.. nonce: POU8A4
.. section: Core and Builtins
Fix a compiler hang when attempting to optimize certain jump patterns.
..
.. bpo: 45764
.. date: 2021-11-09-12-19-22
.. nonce: 8RLhWL
.. section: Core and Builtins
The parser now gives a better error message when leaving out the opening
parenthesis ``(`` after a ``def``-statement::
>>> def f:
File "<stdin>", line 1
def f:
^
SyntaxError: expected '('
..
.. bpo: 45609
.. date: 2021-10-27-21-00-49
.. nonce: L1GKPX
.. section: Core and Builtins
Specialized the ``STORE_SUBSCR`` opcode using the PEP 659 machinery.
..
.. bpo: 45636
.. date: 2021-10-27-15-14-31
.. nonce: K2X7QS
.. section: Core and Builtins
Replace all numeric ``BINARY_*`` and ``INPLACE_*`` instructions with a
single :opcode:`BINARY_OP` implementation.
..
.. bpo: 45582
.. date: 2021-10-23-00-39-31
.. nonce: YONPuo
.. section: Core and Builtins
Path calculation (known as ``getpath``) has been reimplemented as a frozen
Python module. This should have no visible impact, but may affect
calculation of all paths referenced in :mod:`sys` and :mod:`sysconfig`.
..
.. bpo: 45450
.. date: 2021-10-12-18-22-44
.. nonce: d9a-bX
.. section: Core and Builtins
Improve the syntax error message for parenthesized arguments. Patch by Pablo
Galindo.
..
.. bpo: 27946
.. date: 2021-12-04-20-08-42
.. nonce: -Vuarf
.. section: Library
Fix possible crash when getting an attribute of
:class:`xml.etree.ElementTree.Element` simultaneously with replacing the
``attrib`` dict.
..
.. bpo: 45711
.. date: 2021-12-02-17-22-06
.. nonce: D6jsdv
.. section: Library
Make :mod:`asyncio` normalize exceptions as soon as they are captured with
:c:func:`PyErr_Fetch`, and before they are stored as an exc_info triplet.
This brings :mod:`asyncio` in line with the rest of the codebase, where an
exc_info triplet is always normalized.
..
.. bpo: 23819
.. date: 2021-12-02-14-37-30
.. nonce: An6vkT
.. section: Library
Replaced asserts with exceptions in asyncio, patch by Kumar Aditya.
..
.. bpo: 13236
.. date: 2021-11-30-13-52-02
.. nonce: FmJIkO
.. section: Library
:class:`unittest.TextTestResult` and :class:`unittest.TextTestRunner` flush
now the output stream more often.
..
.. bpo: 45917
.. date: 2021-11-28-17-24-11
.. nonce: J5TIrd
.. section: Library
Added :func:`math.exp2`:, which returns 2 raised to the power of x.
..
.. bpo: 37658
.. date: 2021-11-28-15-30-34
.. nonce: 8Hno7d
.. section: Library
Fix issue when on certain conditions ``asyncio.wait_for()`` may allow a
coroutine to complete successfully, but fail to return the result,
potentially causing memory leaks or other issues.
..
.. bpo: 45876
.. date: 2021-11-23-15-36-56
.. nonce: NO8Yaj
.. section: Library
Improve the accuracy of stdev() and pstdev() in the statistics module.  When
the inputs are floats or fractions, the output is a correctly rounded float
..
.. bpo: 44649
.. date: 2021-11-21-20-50-42
.. nonce: E8M936
.. section: Library
Handle dataclass(slots=True) with a field that has default a default value,
but for which init=False.
..
.. bpo: 45803
.. date: 2021-11-20-17-04-25
.. nonce: wSgFOy
.. section: Library
Added missing kw_only parameter to dataclasses.make_dataclass().
..
.. bpo: 45837
.. date: 2021-11-18-13-13-19
.. nonce: aGyr1I
.. section: Library
The :meth:`!turtle.RawTurtle.settiltangle` is deprecated since Python 3.1, it
now emits a deprecation warning and will be removed in Python 3.13.
Use :meth:`turtle.RawTurtle.tiltangle` instead.
:meth:`turtle.RawTurtle.tiltangle` was earlier incorrectly marked as
deprecated, its docstring has been corrected.
Patch by Hugo van Kemenade.
..
.. bpo: 45831
.. date: 2021-11-17-19-25-37
.. nonce: 9-TojK
.. section: Library
:mod:`faulthandler` can now write ASCII-only strings (like filenames and
function names) with a single write() syscall when dumping a traceback. It
reduces the risk of getting an unreadable dump when two threads or two
processes dump a traceback to the same file (like stderr) at the same time.
Patch by Victor Stinner.
..
.. bpo: 45828
.. date: 2021-11-17-11-40-21
.. nonce: kQU35U
.. section: Library
:mod:`sqlite` C callbacks now use unraisable exceptions if callback
tracebacks are enabled. Patch by Erlend E. Aasland.
..
.. bpo: 41735
.. date: 2021-11-16-18-13-49
.. nonce: D72UY1
.. section: Library
Fix thread lock in ``zlib.Decompress.flush()`` method before
``PyObject_GetBuffer``.
..
.. bpo: 45235
.. date: 2021-11-11-13-03-17
.. nonce: 8ZbkHa
.. section: Library
Reverted an argparse bugfix that caused regression in the handling of
default arguments for subparsers.  This prevented leaf level arguments from
taking precedence over root level arguments.
..
.. bpo: 45754
.. date: 2021-11-09-15-48-38
.. nonce: c-JDto
.. section: Library
Fix a regression in Python 3.11a1 and 3.11a2 where :mod:`sqlite3`
incorrectly would use ``SQLITE_LIMIT_LENGTH`` when checking SQL statement
lengths. Now, ``SQLITE_LIMIT_SQL_LENGTH`` is used. Patch by Erlend E.
Aasland.
..
.. bpo: 45766
.. date: 2021-11-09-09-18-06
.. nonce: dvbcMf
.. section: Library
Added *proportional* option to :meth:`statistics.linear_regression`.
..
.. bpo: 45765
.. date: 2021-11-09-09-04-19
.. nonce: JVobxK
.. section: Library
In importlib.metadata, fix distribution discovery for an empty path.
..
.. bpo: 45757
.. date: 2021-11-08-23-22-14
.. nonce: MHZHt3
.. section: Library
Fix bug where :mod:`dis` produced an incorrect oparg when
:opcode:`EXTENDED_ARG` is followed by an opcode that does not use its
argument.
..
.. bpo: 45644
.. date: 2021-11-06-17-47-46
.. nonce: ZMqHD_
.. section: Library
In-place JSON file formatting using ``python3 -m json.tool infile infile``
now works correctly, previously it left the file empty.  Patch by Chris
Wesseling.
..
.. bpo: 45703
.. date: 2021-11-03-13-41-49
.. nonce: 35AagL
.. section: Library
When a namespace package is imported before another module from the same
namespace is created/installed in a different :data:`sys.path` location
while the program is running, calling the
:func:`importlib.invalidate_caches` function will now also guarantee the new
module is noticed.
..
.. bpo: 45535
.. date: 2021-10-29-16-28-06
.. nonce: n8NiOE
.. section: Library
Improve output of ``dir()`` with Enums.
..
.. bpo: 45664
.. date: 2021-10-28-23-40-54
.. nonce: 7dqtxQ
.. section: Library
Fix :func:`types.resolve_bases` and :func:`types.new_class` for
:class:`types.GenericAlias` instance as a base.
..
.. bpo: 45663
.. date: 2021-10-28-23-11-59
.. nonce: J90N5R
.. section: Library
Fix :func:`dataclasses.is_dataclass` for dataclasses which are subclasses of
:class:`types.GenericAlias`.
..
.. bpo: 45662
.. date: 2021-10-28-22-58-14
.. nonce: sJd7Ir
.. section: Library
Fix the repr of :data:`dataclasses.InitVar` with a type alias to the
built-in class, e.g. ``InitVar[list[int]]``.
..
.. bpo: 43137
.. date: 2021-10-25-12-51-02
.. nonce: apo7jY
.. section: Library
Launch GNOME web browsers via gio tool instead of obsolete gvfs-open
..
.. bpo: 45429
.. date: 2021-10-25-01-22-49
.. nonce: VaEyN9
.. section: Library
On Windows, :func:`time.sleep` now uses a waitable timer which supports
high-resolution timers. Patch by Donghee Na and Eryk Sun.
..
.. bpo: 37295
.. date: 2021-10-18-16-08-55
.. nonce: wBEWH2
.. section: Library
Optimize :func:`math.comb` and :func:`math.perm`.
..
.. bpo: 45514
.. date: 2021-10-18-14-25-35
.. nonce: YmlzIl
.. section: Library
Deprecated legacy functions in :mod:`importlib.resources`.
..
.. bpo: 45507
.. date: 2021-10-18-14-00-01
.. nonce: lDotNV
.. section: Library
Add tests for truncated/missing trailers in gzip.decompress implementation.
..
.. bpo: 45359
.. date: 2021-10-03-22-27-35
.. nonce: LX_uxe
.. section: Library
Implement :pep:`585` for :class:`graphlib.TopologicalSorter`.
..
.. bpo: 44733
.. date: 2021-07-26-13-33-37
.. nonce: 88LrP1
.. section: Library
Add ``max_tasks_per_child`` to
:class:`concurrent.futures.ProcessPoolExecutor`. This allows users to
specify the maximum number of tasks a single process should execute before
the process needs to be restarted.
..
.. bpo: 28806
.. date: 2021-05-24-13-48-34
.. nonce: PkNw5D
.. section: Library
Improve netrc library. netrc file no longer needs to contain all tokens. And
if the login name is anonymous, security check is no longer need.
..
.. bpo: 43498
.. date: 2021-04-20-14-14-16
.. nonce: L_Hq-8
.. section: Library
Avoid a possible *"RuntimeError: dictionary changed size during iteration"*
when adjusting the process count of :class:`ProcessPoolExecutor`.
..
.. bpo: 42158
.. date: 2020-11-10-17-46-12
.. nonce: OhxAiH
.. section: Library
Add MIME types for N-quads, N-triples, Notation3 and TriG to ``mimetypes``.
..
.. bpo: 30533
.. date: 2020-06-16-18-00-56
.. nonce: StL57t
.. section: Library
Add :func:`inspect.getmembers_static` , it return all members without
triggering dynamic lookup via the descriptor protocol. Patch by Weipeng
Hong.
..
.. bpo: 42238
.. date: 2021-11-20-02-46-39
.. nonce: hlfMIc
.. section: Documentation
``make -C Doc suspicious`` will be removed soon in favor of ``make -C Doc
check``, mark it as deprecated.
..
.. bpo: 45840
.. date: 2021-11-19-02-02-32
.. nonce: A51B2S
.. section: Documentation
Improve cross-references in the documentation for the data model.
..
.. bpo: 45640
.. date: 2021-11-18-16-44-12
.. nonce: lSpc2A
.. section: Documentation
Properly marked-up grammar tokens in the documentation are now clickable and
take you to the definition of a given piece of grammar.  Patch by Arthur
Milchior.
..
.. bpo: 45788
.. date: 2021-11-18-00-07-40
.. nonce: qibUoB
.. section: Documentation
Link doc for sys.prefix to sysconfig doc on installation paths.
..
.. bpo: 45772
.. date: 2021-11-09-13-10-55
.. nonce: EdrM3t
.. section: Documentation
``socket.socket`` documentation is corrected to a class from a function.
..
.. bpo: 45392
.. date: 2021-11-06-10-54-17
.. nonce: JZnVOz
.. section: Documentation
Update the docstring of the :class:`type` built-in to remove a redundant
line and to mention keyword arguments for the constructor.
..
.. bpo: 45250
.. date: 2021-10-22-12-09-18
.. nonce: Iit5-Y
.. section: Documentation
Update the documentation to note that CPython does not consistently require
iterators to define ``__iter__``.
..
.. bpo: 25381
.. date: 2021-06-21-17-51-51
.. nonce: 7Kn-_H
.. section: Documentation
In the extending chapter of the extending doc, update a paragraph about the
global variables containing exception information.
..
.. bpo: 43905
.. date: 2021-05-24-05-00-12
.. nonce: tBIndE
.. section: Documentation
Expanded :func:`~dataclasses.astuple` and :func:`~dataclasses.asdict` docs,
warning about deepcopy being applied and providing a workaround.
..
.. bpo: 45695
.. date: 2021-12-03-14-19-16
.. nonce: QKBn2E
.. section: Tests
Out-of-tree builds with a read-only source directory are now tested by CI.
..
.. bpo: 19460
.. date: 2021-11-28-15-25-02
.. nonce: lr0aWs
.. section: Tests
Add new Test for ``Lib/email/mime/nonmultipart.py::MIMENonMultipart``.
..
.. bpo: 45835
.. date: 2021-11-17-14-28-08
.. nonce: Mgyhjx
.. section: Tests
Fix race condition in test_queue tests with multiple "feeder" threads.
..
.. bpo: 45783
.. date: 2021-11-11-13-56-00
.. nonce: 8k1Rng
.. section: Tests
The test for the freeze tool now handles file moves and deletions.
..
.. bpo: 45745
.. date: 2021-11-10-12-01-28
.. nonce: wX5B3K
.. section: Tests
Remove the ``--findleaks`` command line option of regrtest: use the
``--fail-env-changed`` option instead. Since Python 3.7, it was a deprecated
alias to the ``--fail-env-changed`` option.
..
.. bpo: 45701
.. date: 2021-10-31-10-58-45
.. nonce: r0LAUL
.. section: Tests
Add tests with ``tuple`` type with :func:`functools.lru_cache` to
``test_functools``.
..
.. bpo: 44035
.. date: 2021-12-06-09-31-27
.. nonce: BiO4XC
.. section: Build
CI now verifies that autoconf files have been regenerated with a current and
unpatched autoconf package.
..
.. bpo: 45950
.. date: 2021-12-01-17-28-39
.. nonce: eEVLoz
.. section: Build
The build system now uses a :program:`_bootstrap_python` interpreter for
freezing and deepfreezing again. To speed up build process the build tools
:program:`_bootstrap_python` and :program:`_freeze_module` are no longer
build with LTO.
..
.. bpo: 45881
.. date: 2021-11-29-16-32-55
.. nonce: 7597J6
.. section: Build
The :program:`configure` script now accepts ``--with-build-python`` and
``--with-freeze-module`` options to make cross compiling easier.
..
.. bpo: 40280
.. date: 2021-11-29-14-37-29
.. nonce: UlTMR8
.. section: Build
Emscripten platform now uses ``.wasm`` suffix by default.
..
.. bpo: 40280
.. date: 2021-11-29-11-24-45
.. nonce: Knx7d7
.. section: Build
Disable unusable core extension modules on WASM/Emscripten targets.
..
.. bpo: 40280
.. date: 2021-11-26-14-09-04
.. nonce: ZLpwQf
.. section: Build
``configure`` now checks for socket ``shutdown`` function. The check makes
it possible to disable ``SYS_shutdown`` with ``ac_cv_func_shutdown=no`` in
CONFIG_SITE.
..
.. bpo: 40280
.. date: 2021-11-26-09-10-19
.. nonce: xmiMJl
.. section: Build
``configure`` now checks for functions ``fork1, getegid, geteuid, getgid,
getppid, getuid, opendir, pipe, system, wait, ttyname``.
..
.. bpo: 33393
.. date: 2021-11-25-20-26-06
.. nonce: 24YNtM
.. section: Build
Update ``config.guess`` to 2021-06-03 and ``config.sub`` to 2021-08-14.
``Makefile`` now has an ``update-config`` target to make updating more
convenient.
..
.. bpo: 45866
.. date: 2021-11-25-13-53-36
.. nonce: ZH1W8N
.. section: Build
``make regen-all`` now produces the same output when run from a directory
other than the source tree: when building Python out of the source tree.
pegen now strips directory of the "generated by pygen from <FILENAME>"
header Patch by Victor Stinner.
..
.. bpo: 40280
.. date: 2021-11-25-10-55-03
.. nonce: E9-gsQ
.. section: Build
``configure`` now accepts machine ``wasm32`` or ``wasm64`` and OS ``wasi``
or ``emscripten`` for cross building, e.g. ``wasm32-unknown-emscripten``,
``wasm32-wasi``, or ``wasm32-unknown-wasi``.
..
.. bpo: 41498
.. date: 2021-11-25-09-15-04
.. nonce: qAk5eo
.. section: Build
Python now compiles on platforms without ``sigset_t``. Several functions in
:mod:`signal` are not available when ``sigset_t`` is missing.
Based on patch by Roman Yurchak for pyodide.
..
.. bpo: 45881
.. date: 2021-11-24-17-14-06
.. nonce: GTXXLk
.. section: Build
``setup.py`` now uses ``CC`` from environment first to discover multiarch
and cross compile paths.
..
.. bpo: 45886
.. date: 2021-11-23-23-37-49
.. nonce: _Ulnh-
.. section: Build
The ``_freeze_module`` program path can now be overridden on the command
line, e.g. ``make FREEZE_MODULE=../x86_64/Program/_freeze_module``.
..
.. bpo: 45873
.. date: 2021-11-23-04-28-40
.. nonce: 9dldZ4
.. section: Build
Get rid of the ``_bootstrap_python`` build step. The deepfreeze.py script is
now run using ``$(PYTHON_FOR_REGEN)`` which can be Python 3.7 or newer (on
Windows, 3.8 or newer).
..
.. bpo: 45847
.. date: 2021-11-19-17-57-57
.. nonce: 9phcpd
.. section: Build
Port builtin hashlib extensions to ``PY_STDLIB_MOD`` macro and ``addext()``.
..
.. bpo: 45723
.. date: 2021-11-19-15-42-27
.. nonce: vwIJWI
.. section: Build
Add ``autoconf`` helpers for saving and restoring environment variables:
* ``SAVE_ENV``: Save ``$CFLAGS``, ``$LDFLAGS``, ``$LIBS``, and
``$CPPFLAGS``.
* ``RESTORE_ENV``: Restore ``$CFLAGS``, ``$LDFLAGS``, ``$LIBS``, and
``$CPPFLAGS``.
* ``WITH_SAVE_ENV([SCRIPT])``: Run ``SCRIPT`` wrapped with ``SAVE_ENV`` and
``RESTORE_ENV``.
Patch by Erlend E. Aasland.
..
.. bpo: 45573
.. date: 2021-11-18-13-31-02
.. nonce: LCjGB8
.. section: Build
Mandatory core modules, that are required to bootstrap Python, are now in
``Modules/Setup.bootstrap``.
..
.. bpo: 45573
.. date: 2021-11-18-12-18-43
.. nonce: xsMZzn
.. section: Build
``configure`` now creates ``Modules/Setup.stdlib`` with conditionally
enabled/disabled extension module lines. The file is not used, yet.
..
.. bpo: 45573
.. date: 2021-11-17-19-02-51
.. nonce: GMNdun
.. section: Build
``configure`` now uses a unified format to set state, compiler flags, and
linker flags in Makefile. The new macro ``PY_STDLIB_MOD`` sets three
variables that are consumed by ``Modules/Setup`` and ``setup.py``.
..
.. bpo: 45816
.. date: 2021-11-16-14-44-06
.. nonce: nbdmVK
.. section: Build
Python now supports building with Visual Studio 2022 (MSVC v143, VS Version
17.0). Patch by Jeremiah Vivian.
..
.. bpo: 45800
.. date: 2021-11-13-16-40-05
.. nonce: 5Hz6nr
.. section: Build
Settings for :mod:`pyexpat` C extension are now detected by ``configure``.
The bundled ``expat`` library is built in ``Makefile``.
..
.. bpo: 45798
.. date: 2021-11-13-10-18-22
.. nonce: IraaTs
.. section: Build
Settings for :mod:`decimal` internal C extension are now detected by
``configure``. The bundled ``libmpdec`` library is built in ``Makefile``.
..
.. bpo: 45723
.. date: 2021-11-10-16-13-02
.. nonce: B5gCB1
.. section: Build
:program:`configure` has a new option ``--with-pkg-config`` to disable or
require pkg-config.
..
.. bpo: 45774
.. date: 2021-11-09-23-30-12
.. nonce: Mwm3ZR
.. section: Build
The build dependencies for :mod:`sqlite3` are now detected by ``configure``
and ``pkg-config``. Patch by Erlend E. Aasland.
..
.. bpo: 45763
.. date: 2021-11-09-10-15-33
.. nonce: gP-vrX
.. section: Build
The build dependencies for :mod:`zlib`, :mod:`bz2`, and :mod:`lzma` are now
detected by ``configure``.
..
.. bpo: 45747
.. date: 2021-11-08-11-31-48
.. nonce: AODmk_
.. section: Build
gdbm and dbm build dependencies are now detected by ``configure``.
..
.. bpo: 45743
.. date: 2021-11-08-08-58-06
.. nonce: fZ8CTi
.. section: Build
On macOS, the build system no longer passes ``search_paths_first`` to the
linker. The flag has been the default since Xcode 4 / macOS 10.6.
..
.. bpo: 45723
.. date: 2021-11-07-10-45-40
.. nonce: AreusF
.. section: Build
``configure.ac`` is now compatible with autoconf 2.71. Deprecated checks
``STDC_HEADERS`` and ``AC_HEADER_TIME`` have been removed.
..
.. bpo: 45723
.. date: 2021-11-07-10-36-12
.. nonce: JNwKSG
.. section: Build
``configure`` now prints a warning when pkg-config is missing.
..
.. bpo: 45731
.. date: 2021-11-05-20-56-29
.. nonce: 9SDnDf
.. section: Build
``configure --enable-loadable-sqlite-extensions`` is now handled by new
``PY_SQLITE_ENABLE_LOAD_EXTENSION`` macro instead of logic in setup.py.
..
.. bpo: 45723
.. date: 2021-11-05-15-09-49
.. nonce: gfSxur
.. section: Build
configure.ac now uses custom helper macros and ``AC_CACHE_CHECK`` to
simplify and speed up configure runs.
..
.. bpo: 45696
.. date: 2021-11-03-00-19-50
.. nonce: eKs46f
.. section: Build
Skip the marshal step for frozen modules by generating C code that produces
a set of ready-to-use code objects. This speeds up startup time by another
10% or more.
..
.. bpo: 45561
.. date: 2021-10-21-14-38-30
.. nonce: PVqhZE
.. section: Build
Run smelly.py tool from $(srcdir).
..
.. bpo: 46105
.. date: 2021-12-08-16-36-20
.. nonce: t1mJ6Q
.. section: Windows
Fixed calculation of :data:`sys.path` in a venv on Windows.
..
.. bpo: 45901
.. date: 2021-11-26-18-17-41
.. nonce: c5IBqM
.. section: Windows
When installed through the Microsoft Store and set as the default app for
:file:`*.py` files, command line arguments will now be passed to Python when
invoking a script without explicitly launching Python (that is, ``script.py
args`` rather than ``python script.py args``).
..
.. bpo: 45616
.. date: 2021-11-23-11-44-42
.. nonce: K52PLZ
.. section: Windows
Fix Python Launcher's ability to distinguish between versions 3.1 and 3.10
when either one is explicitly requested.  Previously, 3.1 would be used if
3.10 was requested but not installed, and 3.10 would be used if 3.1 was
requested but 3.10 was installed.
..
.. bpo: 45850
.. date: 2021-11-20-00-06-59
.. nonce: q9lofz
.. section: Windows
Implement changes to build with deep-frozen modules on Windows. Note that we
now require Python 3.10 as the "bootstrap" or "host" Python.
..
.. bpo: 45732
.. date: 2021-11-08-21-53-11
.. nonce: idl5kx
.. section: Windows
Updates bundled Tcl/Tk to 8.6.12.
..
.. bpo: 45720
.. date: 2021-11-05-01-05-46
.. nonce: 47Nc5I
.. section: Windows
Internal reference to :file:`shlwapi.dll` was dropped to help improve
startup time. This DLL will no longer be loaded at the start of every Python
process.
..
.. bpo: 45732
.. date: 2021-12-05-23-52-03
.. nonce: -BWrnh
.. section: macOS
Update python.org macOS installer to use Tcl/Tk 8.6.12.
..
.. bpo: 39026
.. date: 2021-11-09-15-42-11
.. nonce: sUnYWn
.. section: C API
Fix Python.h to build C extensions with Xcode: remove a relative include
from ``Include/cpython/pystate.h``.

.. bpo: 23285
.. date: 8948
.. nonce: bJJA8B
.. release date: 2015-02-08
.. section: Core and Builtins
PEP 475 - EINTR handling.
..
.. bpo: 22735
.. date: 8947
.. nonce: mFEX9n
.. section: Core and Builtins
Fix many edge cases (including crashes) involving custom mro()
implementations.
..
.. bpo: 22896
.. date: 8946
.. nonce: xSDAHK
.. section: Core and Builtins
Avoid using PyObject_AsCharBuffer(), PyObject_AsReadBuffer() and
PyObject_AsWriteBuffer().
..
.. bpo: 21295
.. date: 8945
.. nonce: LYq9nF
.. section: Core and Builtins
Revert some changes (issue #16795) to AST line numbers and column offsets
that constituted a regression.
..
.. bpo: 22986
.. date: 8944
.. nonce: yay2Lv
.. section: Core and Builtins
Allow changing an object's __class__ between a dynamic type and static type
in some cases.
..
.. bpo: 15859
.. date: 8943
.. nonce: Fs5mE2
.. section: Core and Builtins
PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() and
PyUnicode_EncodeCodePage() now raise an exception if the object is not a
Unicode object. For PyUnicode_EncodeFSDefault(), it was already the case on
platforms other than Windows. Patch written by Campbell Barton.
..
.. bpo: 21408
.. date: 8942
.. nonce: Lz6P3P
.. section: Core and Builtins
The default __ne__() now returns NotImplemented if __eq__() returned
NotImplemented.  Original patch by Martin Panter.
..
.. bpo: 23321
.. date: 8941
.. nonce: HQelge
.. section: Core and Builtins
Fixed a crash in str.decode() when error handler returned replacement string
longer than malformed input data.
..
.. bpo: 22286
.. date: 8940
.. nonce: l6Qyy1
.. section: Core and Builtins
The "backslashreplace" error handlers now works with decoding and
translating.
..
.. bpo: 23253
.. date: 8939
.. nonce: p4B1H-
.. section: Core and Builtins
Delay-load ShellExecute[AW] in os.startfile for reduced startup overhead on
Windows.
..
.. bpo: 22038
.. date: 8938
.. nonce: BMZUHx
.. section: Core and Builtins
pyatomic.h now uses stdatomic.h or GCC built-in functions for atomic memory
access if available. Patch written by Vitor de Lima and Gustavo Temple.
..
.. bpo: 20284
.. date: 8937
.. nonce: CH8wpD
.. section: Core and Builtins
%-interpolation (aka printf) formatting added for bytes and bytearray.
..
.. bpo: 23048
.. date: 8936
.. nonce: X5BUd3
.. section: Core and Builtins
Fix jumping out of an infinite while loop in the pdb.
..
.. bpo: 20335
.. date: 8935
.. nonce: YcAPOs
.. section: Core and Builtins
bytes constructor now raises TypeError when encoding or errors is specified
with non-string argument.  Based on patch by Renaud Blanch.
..
.. bpo: 22834
.. date: 8934
.. nonce: N1kAXN
.. section: Core and Builtins
If the current working directory ends up being set to a non-existent
directory then import will no longer raise FileNotFoundError.
..
.. bpo: 22869
.. date: 8933
.. nonce: rAWg-V
.. section: Core and Builtins
Move the interpreter startup & shutdown code to a new dedicated
pylifecycle.c module
..
.. bpo: 22847
.. date: 8932
.. nonce: 6baj9f
.. section: Core and Builtins
Improve method cache efficiency.
..
.. bpo: 22335
.. date: 8931
.. nonce: DWsXiy
.. section: Core and Builtins
Fix crash when trying to enlarge a bytearray to 0x7fffffff bytes on a 32-bit
platform.
..
.. bpo: 22653
.. date: 8930
.. nonce: pCNlpv
.. section: Core and Builtins
Fix an assertion failure in debug mode when doing a reentrant dict insertion
in debug mode.
..
.. bpo: 22643
.. date: 8929
.. nonce: xv8xev
.. section: Core and Builtins
Fix integer overflow in Unicode case operations (upper, lower, title,
swapcase, casefold).
..
.. bpo: 17636
.. date: 8928
.. nonce: wiqnhw
.. section: Core and Builtins
Circular imports involving relative imports are now supported.
..
.. bpo: 22604
.. date: 8927
.. nonce: yii-It
.. section: Core and Builtins
Fix assertion error in debug mode when dividing a complex number by
(nan+0j).
..
.. bpo: 21052
.. date: 8926
.. nonce: -sf3tp
.. section: Core and Builtins
Do not raise ImportWarning when sys.path_hooks or sys.meta_path are set to
None.
..
.. bpo: 16518
.. date: 8925
.. nonce: UADwcN
.. section: Core and Builtins
Use 'bytes-like object required' in error messages that previously used the
far more cryptic "'x' does not support the buffer protocol.
..
.. bpo: 22470
.. date: 8924
.. nonce: igrgN2
.. section: Core and Builtins
Fixed integer overflow issues in "backslashreplace", "xmlcharrefreplace",
and "surrogatepass" error handlers.
..
.. bpo: 22540
.. date: 8923
.. nonce: FM72m-
.. section: Core and Builtins
speed up ``PyObject_IsInstance`` and ``PyObject_IsSubclass`` in the common case
that the second argument has metaclass ``type``.
..
.. bpo: 18711
.. date: 8922
.. nonce: ds5wQa
.. section: Core and Builtins
Add a new ``PyErr_FormatV`` function, similar to ``PyErr_Format`` but accepting
a ``va_list`` argument.
..
.. bpo: 22520
.. date: 8921
.. nonce: ZPJXSq
.. section: Core and Builtins
Fix overflow checking when generating the repr of a unicode object.
..
.. bpo: 22519
.. date: 8920
.. nonce: xvJVg0
.. section: Core and Builtins
Fix overflow checking in PyBytes_Repr.
..
.. bpo: 22518
.. date: 8919
.. nonce: C9T6ed
.. section: Core and Builtins
Fix integer overflow issues in latin-1 encoding.
..
.. bpo: 16324
.. date: 8918
.. nonce: YfrBNz
.. section: Core and Builtins
_charset parameter of MIMEText now also accepts email.charset.Charset
instances. Initial patch by Claude Paroz.
..
.. bpo: 1764286
.. date: 8917
.. nonce: L4seL2
.. section: Core and Builtins
Fix inspect.getsource() to support decorated functions. Patch by Claudiu
Popa.
..
.. bpo: 18554
.. date: 8916
.. nonce: hxnaui
.. section: Core and Builtins
os.__all__ includes posix functions.
..
.. bpo: 21391
.. date: 8915
.. nonce: 3jntPd
.. section: Core and Builtins
Use os.path.abspath in the shutil module.
..
.. bpo: 11471
.. date: 8914
.. nonce: Uu752F
.. section: Core and Builtins
avoid generating a JUMP_FORWARD instruction at the end of an if-block if
there is no else-clause.  Original patch by Eugene Toder.
..
.. bpo: 22215
.. date: 8913
.. nonce: IBFi6H
.. section: Core and Builtins
Now ValueError is raised instead of TypeError when str or bytes argument
contains not permitted null character or byte.
..
.. bpo: 22258
.. date: 8912
.. nonce: 4FszMt
.. section: Core and Builtins
Fix the internal function set_inheritable() on Illumos. This platform
exposes the function ``ioctl(FIOCLEX)``, but calling it fails with errno is
ENOTTY: "Inappropriate ioctl for device". set_inheritable() now falls back
to the slower ``fcntl()`` (``F_GETFD`` and then ``F_SETFD``).
..
.. bpo: 21389
.. date: 8911
.. nonce: dnWZBn
.. section: Core and Builtins
Displaying the __qualname__ of the underlying function in the repr of a
bound method.
..
.. bpo: 22206
.. date: 8910
.. nonce: 0i_ihB
.. section: Core and Builtins
Using pthread, PyThread_create_key() now sets errno to ENOMEM and returns -1
(error) on integer overflow.
..
.. bpo: 20184
.. date: 8909
.. nonce: bb3uHY
.. section: Core and Builtins
Argument Clinic based signature introspection added for 30 of the builtin
functions.
..
.. bpo: 22116
.. date: 8908
.. nonce: auVmIt
.. section: Core and Builtins
C functions and methods (of the 'builtin_function_or_method' type) can now
be weakref'ed.  Patch by Wei Wu.
..
.. bpo: 22077
.. date: 8907
.. nonce: KZUDR-
.. section: Core and Builtins
Improve index error messages for bytearrays, bytes, lists, and tuples by
adding 'or slices'. Added ', not <typename>' for bytearrays. Original patch
by Claudiu Popa.
..
.. bpo: 20179
.. date: 8906
.. nonce: Nvhffc
.. section: Core and Builtins
Apply Argument Clinic to bytes and bytearray. Patch by Tal Einat.
..
.. bpo: 22082
.. date: 8905
.. nonce: 6X8Qmg
.. section: Core and Builtins
Clear interned strings in slotdefs.
..
.. bpo: 0
.. date: 8904
.. nonce: tuMnCc
.. section: Core and Builtins
Upgrade Unicode database to Unicode 7.0.0.
..
.. bpo: 21897
.. date: 8903
.. nonce: kiOGHe
.. section: Core and Builtins
Fix a crash with the f_locals attribute with closure variables when
frame.clear() has been called.
..
.. bpo: 21205
.. date: 8902
.. nonce: wZsx1K
.. section: Core and Builtins
Add a new ``__qualname__`` attribute to generator, the qualified name, and
use it in the representation of a generator (``repr(gen)``). The default
name of the generator (``__name__`` attribute) is now get from the function
instead of the code. Use ``gen.gi_code.co_name`` to get the name of the
code.
..
.. bpo: 21669
.. date: 8901
.. nonce: DFDrBA
.. section: Core and Builtins
With the aid of heuristics in SyntaxError.__init__, the parser now attempts
to generate more meaningful (or at least more search engine friendly) error
messages when "exec" and "print" are used as statements.
..
.. bpo: 21642
.. date: 8900
.. nonce: -lWoKz
.. section: Core and Builtins
In the conditional if-else expression, allow an integer written with no
space between itself and the ``else`` keyword (e.g. ``True if 42else
False``) to be valid syntax.
..
.. bpo: 21523
.. date: 8899
.. nonce: f_PPYO
.. section: Core and Builtins
Fix over-pessimistic computation of the stack effect of some opcodes in the
compiler.  This also fixes a quadratic compilation time issue noticeable
when compiling code with a large number of "and" and "or" operators.
..
.. bpo: 21418
.. date: 8898
.. nonce: z9jp1_
.. section: Core and Builtins
Fix a crash in the builtin function super() when called without argument and
without current frame (ex: embedded Python).
..
.. bpo: 21425
.. date: 8897
.. nonce: i3Teb8
.. section: Core and Builtins
Fix flushing of standard streams in the interactive interpreter.
..
.. bpo: 21435
.. date: 8896
.. nonce: ZojVOT
.. section: Core and Builtins
In rare cases, when running finalizers on objects in cyclic trash a bad
pointer dereference could occur due to a subtle flaw in internal iteration
logic.
..
.. bpo: 21377
.. date: 8895
.. nonce: OawYfl
.. section: Core and Builtins
PyBytes_Concat() now tries to concatenate in-place when the first argument
has a reference count of 1.  Patch by Nikolaus Rath.
..
.. bpo: 20355
.. date: 8894
.. nonce: OrCNkZ
.. section: Core and Builtins
-W command line options now have higher priority than the PYTHONWARNINGS
environment variable.  Patch by Arfrever.
..
.. bpo: 21274
.. date: 8893
.. nonce: fVGfwq
.. section: Core and Builtins
Define PATH_MAX for GNU/Hurd in Python/pythonrun.c.
..
.. bpo: 20904
.. date: 8892
.. nonce: fAGdj2
.. section: Core and Builtins
Support setting FPU precision on m68k.
..
.. bpo: 21209
.. date: 8891
.. nonce: nMljFr
.. section: Core and Builtins
Fix sending tuples to custom generator objects with the yield from syntax.
..
.. bpo: 21193
.. date: 8890
.. nonce: Dg98Oo
.. section: Core and Builtins
pow(a, b, c) now raises ValueError rather than TypeError when b is negative.
Patch by Josh Rosenberg.
..
.. bpo: 21176
.. date: 8889
.. nonce: mitDhW
.. section: Core and Builtins
PEP 465: Add the '@' operator for matrix multiplication.
..
.. bpo: 21134
.. date: 8888
.. nonce: ZL4SKo
.. section: Core and Builtins
Fix segfault when str is called on an uninitialized UnicodeEncodeError,
UnicodeDecodeError, or UnicodeTranslateError object.
..
.. bpo: 19537
.. date: 8887
.. nonce: AkuC_J
.. section: Core and Builtins
Fix PyUnicode_DATA() alignment under m68k.  Patch by Andreas Schwab.
..
.. bpo: 20929
.. date: 8886
.. nonce: 9NlUR7
.. section: Core and Builtins
Add a type cast to avoid shifting a negative number.
..
.. bpo: 20731
.. date: 8885
.. nonce: _03SZg
.. section: Core and Builtins
Properly position in source code files even if they are opened in text mode.
Patch by Serhiy Storchaka.
..
.. bpo: 20637
.. date: 8884
.. nonce: ppYU0o
.. section: Core and Builtins
Key-sharing now also works for instance dictionaries of subclasses.  Patch
by Peter Ingebretson.
..
.. bpo: 8297
.. date: 8883
.. nonce: _XdGON
.. section: Core and Builtins
Attributes missing from modules now include the module name in the error
text.  Original patch by ysj.ray.
..
.. bpo: 19995
.. date: 8882
.. nonce: mnHEzX
.. section: Core and Builtins
%c, %o, %x, and %X now raise TypeError on non-integer input.
..
.. bpo: 19655
.. date: 8881
.. nonce: JgVdes
.. section: Core and Builtins
The ASDL parser - used by the build process to generate code for managing
the Python AST in C - was rewritten. The new parser is self contained and
does not require to carry long the spark.py parser-generator library;
spark.py was removed from the source base.
..
.. bpo: 12546
.. date: 8880
.. nonce: 09naZ9
.. section: Core and Builtins
Allow ``\x00`` to be used as a fill character when using str, int, float,
and complex __format__ methods.
..
.. bpo: 20480
.. date: 8879
.. nonce: TIYPLo
.. section: Core and Builtins
Add ipaddress.reverse_pointer. Patch by Leon Weber.
..
.. bpo: 13598
.. date: 8878
.. nonce: GJelrw
.. section: Core and Builtins
Modify string.Formatter to support auto-numbering of replacement fields. It
now matches the behavior of str.format() in this regard. Patches by Phil
Elson and Ramchandra Apte.
..
.. bpo: 8931
.. date: 8877
.. nonce: M05x4f
.. section: Core and Builtins
Make alternate formatting ('#') for type 'c' raise an exception. In versions
prior to 3.5, '#' with 'c' had no effect. Now specifying it is an error.
Patch by Torsten Landschoff.
..
.. bpo: 23165
.. date: 8876
.. nonce: lk8uCE
.. section: Core and Builtins
Perform overflow checks before allocating memory in the _Py_char2wchar
function.
..
.. bpo: 23399
.. date: 8875
.. nonce: hXMYgA
.. section: Library
pyvenv creates relative symlinks where possible.
..
.. bpo: 20289
.. date: 8874
.. nonce: nio1N-
.. section: Library
cgi.FieldStorage() now supports the context management protocol.
..
.. bpo: 13128
.. date: 8873
.. nonce: vqEcsy
.. section: Library
Print response headers for CONNECT requests when debuglevel > 0. Patch by
Demian Brecht.
..
.. bpo: 15381
.. date: 8872
.. nonce: Xv-wu8
.. section: Library
Optimized io.BytesIO to make less allocations and copyings.
..
.. bpo: 22818
.. date: 8871
.. nonce: NYdAc9
.. section: Library
Splitting on a pattern that could match an empty string now raises a
warning.  Patterns that can only match empty strings are now rejected.
..
.. bpo: 23099
.. date: 8870
.. nonce: ZASrUo
.. section: Library
Closing io.BytesIO with exported buffer is rejected now to prevent
corrupting exported buffer.
..
.. bpo: 23326
.. date: 8869
.. nonce: 8VzlZD
.. section: Library
Removed __ne__ implementations.  Since fixing default __ne__ implementation
in issue #21408 they are redundant.
..
.. bpo: 23363
.. date: 8868
.. nonce: -koaol
.. section: Library
Fix possible overflow in itertools.permutations.
..
.. bpo: 23364
.. date: 8867
.. nonce: 3yBV-6
.. section: Library
Fix possible overflow in itertools.product.
..
.. bpo: 23366
.. date: 8866
.. nonce: tyAfm8
.. section: Library
Fixed possible integer overflow in itertools.combinations.
..
.. bpo: 23369
.. date: 8865
.. nonce: nqChyE
.. section: Library
Fixed possible integer overflow in _json.encode_basestring_ascii.
..
.. bpo: 23353
.. date: 8864
.. nonce: Iytkpc
.. section: Library
Fix the exception handling of generators in PyEval_EvalFrameEx(). At entry,
save or swap the exception state even if PyEval_EvalFrameEx() is called with
throwflag=0. At exit, the exception state is now always restored or swapped,
not only if why is WHY_YIELD or WHY_RETURN. Patch co-written with Antoine
Pitrou.
..
.. bpo: 14099
.. date: 8863
.. nonce: t9-HVE
.. section: Library
Restored support of writing ZIP files to tellable but non-seekable streams.
..
.. bpo: 14099
.. date: 8862
.. nonce: Myxxww
.. section: Library
Writing to ZipFile and reading multiple ZipExtFiles is threadsafe now.
..
.. bpo: 19361
.. date: 8861
.. nonce: 2mvrV3
.. section: Library
JSON decoder now raises JSONDecodeError instead of ValueError.
..
.. bpo: 18518
.. date: 8860
.. nonce: JXgicC
.. section: Library
timeit now rejects statements which can't be compiled outside a function or
a loop (e.g. "return" or "break").
..
.. bpo: 23094
.. date: 8859
.. nonce: -8AXSi
.. section: Library
Fixed readline with frames in Python implementation of pickle.
..
.. bpo: 23268
.. date: 8858
.. nonce: ATtRa5
.. section: Library
Fixed bugs in the comparison of ipaddress classes.
..
.. bpo: 21408
.. date: 8857
.. nonce: 0rI6tx
.. section: Library
Removed incorrect implementations of __ne__() which didn't returned
NotImplemented if __eq__() returned NotImplemented.  The default __ne__()
now works correctly.
..
.. bpo: 19996
.. date: 8856
.. nonce: 2-SiMf
.. section: Library
:class:`email.feedparser.FeedParser` now handles (malformed) headers with no
key rather than assuming the body has started.
..
.. bpo: 20188
.. date: 8855
.. nonce: xocY-2
.. section: Library
Support Application-Layer Protocol Negotiation (ALPN) in the ssl module.
..
.. bpo: 23133
.. date: 8854
.. nonce: 8p2Wnl
.. section: Library
Pickling of ipaddress objects now produces more compact and portable
representation.
..
.. bpo: 23248
.. date: 8853
.. nonce: FjcyCP
.. section: Library
Update ssl error codes from latest OpenSSL git master.
..
.. bpo: 23266
.. date: 8852
.. nonce: Mo7alR
.. section: Library
Much faster implementation of ipaddress.collapse_addresses() when there are
many non-consecutive addresses.
..
.. bpo: 23098
.. date: 8851
.. nonce: 7VwF3K
.. section: Library
64-bit dev_t is now supported in the os module.
..
.. bpo: 21817
.. date: 8850
.. nonce: xYUW-9
.. section: Library
When an exception is raised in a task submitted to a ProcessPoolExecutor,
the remote traceback is now displayed in the parent process.  Patch by
Claudiu Popa.
..
.. bpo: 15955
.. date: 8849
.. nonce: uvpBL4
.. section: Library
Add an option to limit output size when decompressing LZMA data.  Patch by
Nikolaus Rath and Martin Panter.
..
.. bpo: 23250
.. date: 8848
.. nonce: qNGAUf
.. section: Library
In the http.cookies module, capitalize "HttpOnly" and "Secure" as they are
written in the standard.
..
.. bpo: 23063
.. date: 8847
.. nonce: 9-UJRs
.. section: Library
In the distutils' check command, fix parsing of reST with code or code-block
directives.
..
.. bpo: 23209
.. date: 8846
.. nonce: I0bCCH
.. section: Library
selectors.BaseSelector.get_key() now raises a RuntimeError if the selector
is closed. And selectors.BaseSelector.close() now clears its internal
reference to the selector mapping to break a reference cycle. Initial patch
written by Martin Richard. (See also: bpo-23225)
..
.. bpo: 17911
.. date: 8845
.. nonce: yg65Iu
.. section: Library
Provide a way to seed the linecache for a PEP-302 module without actually
loading the code.
..
.. bpo: 17911
.. date: 8844
.. nonce: qeTePa
.. section: Library
Provide a new object API for traceback, including the ability to not lookup
lines at all until the traceback is actually rendered, without any trace of
the original objects being kept alive.
..
.. bpo: 19777
.. date: 8843
.. nonce: H_NDIA
.. section: Library
Provide a home() classmethod on Path objects.  Contributed by Victor Salgado
and Mayank Tripathi.
..
.. bpo: 23206
.. date: 8842
.. nonce: xSiYwq
.. section: Library
Make ``json.dumps(..., ensure_ascii=False)`` as fast as the default case of
``ensure_ascii=True``.  Patch by Naoki Inada.
..
.. bpo: 23185
.. date: 8841
.. nonce: KHyoSO
.. section: Library
Add math.inf and math.nan constants.
..
.. bpo: 23186
.. date: 8840
.. nonce: KzWLP2
.. section: Library
Add ssl.SSLObject.shared_ciphers() and ssl.SSLSocket.shared_ciphers() to
fetch the client's list ciphers sent at handshake.
..
.. bpo: 23143
.. date: 8839
.. nonce: AWxJXV
.. section: Library
Remove compatibility with OpenSSLs older than 0.9.8.
..
.. bpo: 23132
.. date: 8838
.. nonce: pbQcut
.. section: Library
Improve performance and introspection support of comparison methods created
by functool.total_ordering.
..
.. bpo: 19776
.. date: 8837
.. nonce: BxNgxd
.. section: Library
Add an expanduser() method on Path objects.
..
.. bpo: 23112
.. date: 8836
.. nonce: dZGf82
.. section: Library
Fix SimpleHTTPServer to correctly carry the query string and fragment when
it redirects to add a trailing slash.
..
.. bpo: 21793
.. date: 8835
.. nonce: T1kQBL
.. section: Library
Added http.HTTPStatus enums (i.e. HTTPStatus.OK, HTTPStatus.NOT_FOUND).
Patch by Demian Brecht.
..
.. bpo: 23093
.. date: 8834
.. nonce: cP7OqD
.. section: Library
In the io, module allow more operations to work on detached streams.
..
.. bpo: 23111
.. date: 8833
.. nonce: A34IA4
.. section: Library
In the ftplib, make ssl.PROTOCOL_SSLv23 the default protocol version.
..
.. bpo: 22585
.. date: 8832
.. nonce: F4BkNo
.. section: Library
On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(), instead of
reading /dev/urandom, to get pseudo-random bytes.
..
.. bpo: 19104
.. date: 8831
.. nonce: _eIThy
.. section: Library
pprint now produces evaluable output for wrapped strings.
..
.. bpo: 23071
.. date: 8830
.. nonce: 3BSqF7
.. section: Library
Added missing names to codecs.__all__.  Patch by Martin Panter.
..
.. bpo: 22783
.. date: 8829
.. nonce: OfYxBd
.. section: Library
Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EX opcode if
possible.
..
.. bpo: 15513
.. date: 8828
.. nonce: 7yVnRE
.. section: Library
Added a __sizeof__ implementation for pickle classes.
..
.. bpo: 19858
.. date: 8827
.. nonce: cqOlIt
.. section: Library
pickletools.optimize() now aware of the MEMOIZE opcode, can produce more
compact result and no longer produces invalid output if input data contains
MEMOIZE opcodes together with PUT or BINPUT opcodes.
..
.. bpo: 22095
.. date: 8826
.. nonce: iISzxM
.. section: Library
Fixed HTTPConnection.set_tunnel with default port.  The port value in the
host header was set to "None".  Patch by Demian Brecht.
..
.. bpo: 23016
.. date: 8825
.. nonce: LyrPd_
.. section: Library
A warning no longer produces an AttributeError when the program is run with
pythonw.exe.
..
.. bpo: 21775
.. date: 8824
.. nonce: ELR_Al
.. section: Library
shutil.copytree(): fix crash when copying to VFAT. An exception handler
assumed that OSError objects always have a 'winerror' attribute. That is not
the case, so the exception handler itself raised AttributeError when run on
Linux (and, presumably, any other non-Windows OS). Patch by Greg Ward.
..
.. bpo: 1218234
.. date: 8823
.. nonce: 4GcoQK
.. section: Library
Fix inspect.getsource() to load updated source of reloaded module. Initial
patch by Berker Peksag.
..
.. bpo: 21740
.. date: 8822
.. nonce: TtAApO
.. section: Library
Support wrapped callables in doctest. Patch by Claudiu Popa.
..
.. bpo: 23009
.. date: 8821
.. nonce: -sW7gk
.. section: Library
Make sure selectors.EpollSelector.select() works when no FD is registered.
..
.. bpo: 22959
.. date: 8820
.. nonce: Vxt3EP
.. section: Library
In the constructor of http.client.HTTPSConnection, prefer the context's
check_hostname attribute over the *check_hostname* parameter.
..
.. bpo: 22696
.. date: 8819
.. nonce: pvdcxs
.. section: Library
Add function :func:`sys.is_finalizing` to know about interpreter shutdown.
..
.. bpo: 16043
.. date: 8818
.. nonce: TGIC7t
.. section: Library
Add a default limit for the amount of data xmlrpclib.gzip_decode will
return. This resolves :cve:`2013-1753`.
..
.. bpo: 14099
.. date: 8817
.. nonce: GJ5meQ
.. section: Library
ZipFile.open() no longer reopen the underlying file.  Objects returned by
ZipFile.open() can now operate independently of the ZipFile even if the
ZipFile was created by passing in a file-like object as the first argument
to the constructor.
..
.. bpo: 22966
.. date: 8816
.. nonce: zIxDrT
.. section: Library
Fix __pycache__ pyc file name clobber when pyc_compile is asked to compile a
source file containing multiple dots in the source file name.
..
.. bpo: 21971
.. date: 8815
.. nonce: XlTc22
.. section: Library
Update turtledemo doc and add module to the index.
..
.. bpo: 21032
.. date: 8814
.. nonce: wxT_41
.. section: Library
Fixed socket leak if HTTPConnection.getresponse() fails. Original patch by
Martin Panter.
..
.. bpo: 22407
.. date: 8813
.. nonce: CWi1wX
.. section: Library
Deprecated the use of re.LOCALE flag with str patterns or re.ASCII. It was
newer worked.
..
.. bpo: 22902
.. date: 8812
.. nonce: ZqXriA
.. section: Library
The "ip" command is now used on Linux to determine MAC address in
uuid.getnode().  Patch by Bruno Cauet.
..
.. bpo: 22960
.. date: 8811
.. nonce: 2VDILT
.. section: Library
Add a context argument to xmlrpclib.ServerProxy constructor.
..
.. bpo: 22389
.. date: 8810
.. nonce: 82DuwD
.. section: Library
Add contextlib.redirect_stderr().
..
.. bpo: 21356
.. date: 8809
.. nonce: 8NY75J
.. section: Library
Make ssl.RAND_egd() optional to support LibreSSL. The availability of the
function is checked during the compilation. Patch written by Bernard Spil.
..
.. bpo: 22915
.. date: 8808
.. nonce: 709UAo
.. section: Library
SAX parser now supports files opened with file descriptor or bytes path.
..
.. bpo: 22609
.. date: 8807
.. nonce: mmLoeb
.. section: Library
Constructors and update methods of mapping classes in the collections module
now accept the self keyword argument.
..
.. bpo: 22940
.. date: 8806
.. nonce: SP99Nf
.. section: Library
Add readline.append_history_file.
..
.. bpo: 19676
.. date: 8805
.. nonce: Wijwr8
.. section: Library
Added the "namereplace" error handler.
..
.. bpo: 22788
.. date: 8804
.. nonce: vofL9e
.. section: Library
Add *context* parameter to logging.handlers.HTTPHandler.
..
.. bpo: 22921
.. date: 8803
.. nonce: a4wx1C
.. section: Library
Allow SSLContext to take the *hostname* parameter even if OpenSSL doesn't
support SNI.
..
.. bpo: 22894
.. date: 8802
.. nonce: 4AkwPA
.. section: Library
TestCase.subTest() would cause the test suite to be stopped when in failfast
mode, even in the absence of failures.
..
.. bpo: 22796
.. date: 8801
.. nonce: _pFPFA
.. section: Library
HTTP cookie parsing is now stricter, in order to protect against potential
injection attacks.
..
.. bpo: 22370
.. date: 8800
.. nonce: j4y21u
.. section: Library
Windows detection in pathlib is now more robust.
..
.. bpo: 22841
.. date: 8799
.. nonce: 8wpk7T
.. section: Library
Reject coroutines in asyncio add_signal_handler(). Patch by Ludovic.Gasc.
..
.. bpo: 19494
.. date: 8798
.. nonce: 7O5O8k
.. section: Library
Added urllib.request.HTTPBasicPriorAuthHandler. Patch by Matej Cepl.
..
.. bpo: 22578
.. date: 8797
.. nonce: 6XZ0Jf
.. section: Library
Added attributes to the re.error class.
..
.. bpo: 22849
.. date: 8796
.. nonce: AqBPyj
.. section: Library
Fix possible double free in the io.TextIOWrapper constructor.
..
.. bpo: 12728
.. date: 8795
.. nonce: rHZmXO
.. section: Library
Different Unicode characters having the same uppercase but different
lowercase are now matched in case-insensitive regular expressions.
..
.. bpo: 22821
.. date: 8794
.. nonce: 30cQ-U
.. section: Library
Fixed fcntl() with integer argument on 64-bit big-endian platforms.
..
.. bpo: 21650
.. date: 8793
.. nonce: 62MLqr
.. section: Library
Add an ``--sort-keys`` option to ``json.tool`` CLI.
..
.. bpo: 22824
.. date: 8792
.. nonce: d5Txvr
.. section: Library
Updated reprlib output format for sets to use set literals. Patch
contributed by Berker Peksag.
..
.. bpo: 22824
.. date: 8791
.. nonce: H_r9uH
.. section: Library
Updated reprlib output format for arrays to display empty arrays without an
unnecessary empty list.  Suggested by Serhiy Storchaka.
..
.. bpo: 22406
.. date: 8790
.. nonce: sPlVbI
.. section: Library
Fixed the uu_codec codec incorrectly ported to 3.x. Based on patch by Martin
Panter.
..
.. bpo: 17293
.. date: 8789
.. nonce: Hk06bO
.. section: Library
uuid.getnode() now determines MAC address on AIX using netstat. Based on
patch by Aivars Kalvāns.
..
.. bpo: 22769
.. date: 8788
.. nonce: PunnvQ
.. section: Library
Fixed ttk.Treeview.tag_has() when called without arguments.
..
.. bpo: 22417
.. date: 8787
.. nonce: To4b7U
.. section: Library
Verify certificates by default in httplib (PEP 476).
..
.. bpo: 22775
.. date: 8786
.. nonce: V5aCUz
.. section: Library
Fixed unpickling of http.cookies.SimpleCookie with protocol 2 and above.
Patch by Tim Graham.
..
.. bpo: 22776
.. date: 8785
.. nonce: xNcRse
.. section: Library
Brought excluded code into the scope of a try block in SysLogHandler.emit().
..
.. bpo: 22665
.. date: 8784
.. nonce: j6Jlp8
.. section: Library
Add missing get_terminal_size and SameFileError to shutil.__all__.
..
.. bpo: 6623
.. date: 8783
.. nonce: 6LOidS
.. section: Library
Remove deprecated Netrc class in the ftplib module. Patch by Matt Chaput.
..
.. bpo: 17381
.. date: 8782
.. nonce: 4J5yv7
.. section: Library
Fixed handling of case-insensitive ranges in regular expressions.
..
.. bpo: 22410
.. date: 8781
.. nonce: 99YFdd
.. section: Library
Module level functions in the re module now cache compiled locale-dependent
regular expressions taking into account the locale.
..
.. bpo: 22759
.. date: 8780
.. nonce: BJPdiL
.. section: Library
Query methods on pathlib.Path() (exists(), is_dir(), etc.) now return False
when the underlying stat call raises NotADirectoryError.
..
.. bpo: 8876
.. date: 8779
.. nonce: A83Av4
.. section: Library
distutils now falls back to copying files when hard linking doesn't work.
This allows use with special filesystems such as VirtualBox shared folders.
..
.. bpo: 22217
.. date: 8778
.. nonce: nXzGur
.. section: Library
Implemented reprs of classes in the zipfile module.
..
.. bpo: 22457
.. date: 8777
.. nonce: Xd2Mk-
.. section: Library
Honour load_tests in the start_dir of discovery.
..
.. bpo: 18216
.. date: 8776
.. nonce: trTZw4
.. section: Library
gettext now raises an error when a .mo file has an unsupported major version
number.  Patch by Aaron Hill.
..
.. bpo: 13918
.. date: 8775
.. nonce: -OnUhD
.. section: Library
Provide a locale.delocalize() function which can remove locale-specific
number formatting from a string representing a number, without then
converting it to a specific type.  Patch by Cédric Krier.
..
.. bpo: 22676
.. date: 8774
.. nonce: d2v8QM
.. section: Library
Make the pickling of global objects which don't have a __module__ attribute
less slow.
..
.. bpo: 18853
.. date: 8773
.. nonce: 76DrPD
.. section: Library
Fixed ResourceWarning in shlex.__nain__.
..
.. bpo: 9351
.. date: 8772
.. nonce: u5UI-6
.. section: Library
Defaults set with set_defaults on an argparse subparser are no longer
ignored when also set on the parent parser.
..
.. bpo: 7559
.. date: 8771
.. nonce: QG35ZP
.. section: Library
unittest test loading ImportErrors are reported as import errors with their
import exception rather than as attribute errors after the import has
already failed.
..
.. bpo: 19746
.. date: 8770
.. nonce: S1dg1K
.. section: Library
Make it possible to examine the errors from unittest discovery without
executing the test suite. The new ``errors`` attribute on ``TestLoader`` exposes
these non-fatal errors encountered during discovery.
..
.. bpo: 21991
.. date: 8769
.. nonce: Mkm0IN
.. section: Library
Make email.headerregistry's header 'params' attributes be read-only
(MappingProxyType).  Previously the dictionary was modifiable but a new one
was created on each access of the attribute.
..
.. bpo: 22638
.. date: 8768
.. nonce: Ur73gJ
.. section: Library
SSLv3 is now disabled throughout the standard library. It can still be
enabled by instantiating a SSLContext manually.
..
.. bpo: 22641
.. date: 8767
.. nonce: m0ldtl
.. section: Library
In asyncio, the default SSL context for client connections is now created
using ssl.create_default_context(), for stronger security.
..
.. bpo: 17401
.. date: 8766
.. nonce: SZd19P
.. section: Library
Include closefd in io.FileIO repr.
..
.. bpo: 21338
.. date: 8765
.. nonce: evDyHD
.. section: Library
Add silent mode for compileall. quiet parameters of compile_{dir, file,
path} functions now have a multilevel value. Also, -q option of the CLI now
have a multilevel value. Patch by Thomas Kluyver.
..
.. bpo: 20152
.. date: 8764
.. nonce: 9_o92A
.. section: Library
Convert the array and cmath modules to Argument Clinic.
..
.. bpo: 18643
.. date: 8763
.. nonce: 6Qdc0J
.. section: Library
Add socket.socketpair() on Windows.
..
.. bpo: 22435
.. date: 8762
.. nonce: s2U7Zm
.. section: Library
Fix a file descriptor leak when socketserver bind fails.
..
.. bpo: 13096
.. date: 8761
.. nonce: rsailB
.. section: Library
Fixed segfault in CTypes POINTER handling of large values.
..
.. bpo: 11694
.. date: 8760
.. nonce: JuDrch
.. section: Library
Raise ConversionError in xdrlib as documented.  Patch by Filip Gruszczyński
and Claudiu Popa.
..
.. bpo: 19380
.. date: 8759
.. nonce: nqgoRQ
.. section: Library
Optimized parsing of regular expressions.
..
.. bpo: 1519638
.. date: 8758
.. nonce: 2pbuog
.. section: Library
Now unmatched groups are replaced with empty strings in re.sub() and
re.subn().
..
.. bpo: 18615
.. date: 8757
.. nonce: 65TxnY
.. section: Library
sndhdr.what/whathdr now return a namedtuple.
..
.. bpo: 22462
.. date: 8756
.. nonce: 1h4Kpr
.. section: Library
Fix pyexpat's creation of a dummy frame to make it appear in exception
tracebacks.
..
.. bpo: 21965
.. date: 8755
.. nonce: n_jnXs
.. section: Library
Add support for in-memory SSL to the ssl module.  Patch by Geert Jansen.
..
.. bpo: 21173
.. date: 8754
.. nonce: egkbEx
.. section: Library
Fix len() on a WeakKeyDictionary when .clear() was called with an iterator
alive.
..
.. bpo: 11866
.. date: 8753
.. nonce: xrvbIC
.. section: Library
Eliminated race condition in the computation of names for new threads.
..
.. bpo: 21905
.. date: 8752
.. nonce: coKyRo
.. section: Library
Avoid RuntimeError in pickle.whichmodule() when sys.modules is mutated while
iterating.  Patch by Olivier Grisel.
..
.. bpo: 11271
.. date: 8751
.. nonce: ZYiJru
.. section: Library
concurrent.futures.Executor.map() now takes a *chunksize* argument to allow
batching of tasks in child processes and improve performance of
ProcessPoolExecutor.  Patch by Dan O'Reilly.
..
.. bpo: 21883
.. date: 8750
.. nonce: qpuQu6
.. section: Library
os.path.join() and os.path.relpath() now raise a TypeError with more helpful
error message for unsupported or mismatched types of arguments.
..
.. bpo: 22219
.. date: 8749
.. nonce: l9Enh9
.. section: Library
The zipfile module CLI now adds entries for directories (including empty
directories) in ZIP file.
..
.. bpo: 22449
.. date: 8748
.. nonce: nFW_Fl
.. section: Library
In the ssl.SSLContext.load_default_certs, consult the environmental
variables SSL_CERT_DIR and SSL_CERT_FILE on Windows.
..
.. bpo: 22508
.. date: 8747
.. nonce: 2LbnGQ
.. section: Library
The email.__version__ variable has been removed; the email code is no longer
shipped separately from the stdlib, and __version__ hasn't been updated in
several releases.
..
.. bpo: 20076
.. date: 8746
.. nonce: -7OIVB
.. section: Library
Added non derived UTF-8 aliases to locale aliases table.
..
.. bpo: 20079
.. date: 8745
.. nonce: qM949O
.. section: Library
Added locales supported in glibc 2.18 to locale alias table.
..
.. bpo: 20218
.. date: 8744
.. nonce: CMgOyE
.. section: Library
Added convenience methods read_text/write_text and read_bytes/ write_bytes
to pathlib.Path objects.
..
.. bpo: 22396
.. date: 8743
.. nonce: cQSizA
.. section: Library
On 32-bit AIX platform, don't expose os.posix_fadvise() nor
os.posix_fallocate() because their prototypes in system headers are wrong.
..
.. bpo: 22517
.. date: 8742
.. nonce: qT6-aB
.. section: Library
When an io.BufferedRWPair object is deallocated, clear its weakrefs.
..
.. bpo: 22437
.. date: 8741
.. nonce: MRVnmQ
.. section: Library
Number of capturing groups in regular expression is no longer limited by
100.
..
.. bpo: 17442
.. date: 8740
.. nonce: rnc87D
.. section: Library
InteractiveInterpreter now displays the full chained traceback in its
showtraceback method, to match the built in interactive interpreter.
..
.. bpo: 23392
.. date: 8739
.. nonce: Pe7_WK
.. section: Library
Added tests for marshal C API that works with FILE*.
..
.. bpo: 10510
.. date: 8738
.. nonce: N-ntcD
.. section: Library
distutils register and upload methods now use HTML standards compliant CRLF
line endings.
..
.. bpo: 9850
.. date: 8737
.. nonce: D-UnVi
.. section: Library
Fixed macpath.join() for empty first component.  Patch by Oleg Oshmyan.
..
.. bpo: 5309
.. date: 8736
.. nonce: pVMmQ8
.. section: Library
distutils' build and build_ext commands now accept a ``-j`` option to enable
parallel building of extension modules.
..
.. bpo: 22448
.. date: 8735
.. nonce: fAapvE
.. section: Library
Improve canceled timer handles cleanup to prevent unbound memory usage.
Patch by Joshua Moore-Oliva.
..
.. bpo: 22427
.. date: 8734
.. nonce: TZ5S_u
.. section: Library
TemporaryDirectory no longer attempts to clean up twice when used in the
with statement in generator.
..
.. bpo: 22362
.. date: 8733
.. nonce: xIBThN
.. section: Library
Forbidden ambiguous octal escapes out of range 0-0o377 in regular
expressions.
..
.. bpo: 20912
.. date: 8732
.. nonce: cAq3mZ
.. section: Library
Now directories added to ZIP file have correct Unix and MS-DOS directory
attributes.
..
.. bpo: 21866
.. date: 8731
.. nonce: hSc4wM
.. section: Library
ZipFile.close() no longer writes ZIP64 central directory records if
allowZip64 is false.
..
.. bpo: 22278
.. date: 8730
.. nonce: abqBXZ
.. section: Library
Fix urljoin problem with relative urls, a regression observed after changes
to issue22118 were submitted.
..
.. bpo: 22415
.. date: 8729
.. nonce: xJLAvI
.. section: Library
Fixed debugging output of the GROUPREF_EXISTS opcode in the re module.
Removed trailing spaces in debugging output.
..
.. bpo: 22423
.. date: 8728
.. nonce: Rtb4oT
.. section: Library
Unhandled exception in thread no longer causes unhandled AttributeError when
sys.stderr is None.
..
.. bpo: 21332
.. date: 8727
.. nonce: Gwxwlr
.. section: Library
Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering,
rather than block buffering.  Patch by Akira Li.
..
.. bpo: 21091
.. date: 8726
.. nonce: M5hAtT
.. section: Library
Fix API bug: email.message.EmailMessage.is_attachment is now a method.
..
.. bpo: 21079
.. date: 8725
.. nonce: czVcL8
.. section: Library
Fix email.message.EmailMessage.is_attachment to return the correct result
when the header has parameters as well as a value.
..
.. bpo: 22247
.. date: 8724
.. nonce: sGIpR3
.. section: Library
Add NNTPError to nntplib.__all__.
..
.. bpo: 22366
.. date: 8723
.. nonce: Dd1eFj
.. section: Library
urllib.request.urlopen will accept a context object (SSLContext) as an
argument which will then be used for HTTPS connection. Patch by Alex Gaynor.
..
.. bpo: 4180
.. date: 8722
.. nonce: QBx0JK
.. section: Library
The warnings registries are now reset when the filters are modified.
..
.. bpo: 22419
.. date: 8721
.. nonce: FqH4aC
.. section: Library
Limit the length of incoming HTTP request in wsgiref server to 65536 bytes
and send a 414 error code for higher lengths. Patch contributed by Devin
Cook.
..
.. bpo: 0
.. date: 8720
.. nonce: y7r3O2
.. section: Library
Lax cookie parsing in http.cookies could be a security issue when combined
with non-standard cookie handling in some web browsers.  Reported by Sergey
Bobrov.
..
.. bpo: 20537
.. date: 8719
.. nonce: E0CE54
.. section: Library
logging methods now accept an exception instance as well as a Boolean value
or exception tuple. Thanks to Yury Selivanov for the patch.
..
.. bpo: 22384
.. date: 8718
.. nonce: -Nl4He
.. section: Library
An exception in Tkinter callback no longer crashes the program when it is
run with pythonw.exe.
..
.. bpo: 22168
.. date: 8717
.. nonce: vLeKWC
.. section: Library
Prevent turtle AttributeError with non-default Canvas on OS X.
..
.. bpo: 21147
.. date: 8716
.. nonce: w9DE17
.. section: Library
sqlite3 now raises an exception if the request contains a null character
instead of truncating it.  Based on patch by Victor Stinner.
..
.. bpo: 13968
.. date: 8715
.. nonce: 1okGqm
.. section: Library
The glob module now supports recursive search in subdirectories using the
``**`` pattern.
..
.. bpo: 21951
.. date: 8714
.. nonce: 3vS4LK
.. section: Library
Fixed a crash in Tkinter on AIX when called Tcl command with empty string or
tuple argument.
..
.. bpo: 21951
.. date: 8713
.. nonce: _CCC4v
.. section: Library
Tkinter now most likely raises MemoryError instead of crash if the memory
allocation fails.
..
.. bpo: 22338
.. date: 8712
.. nonce: rKlCMz
.. section: Library
Fix a crash in the json module on memory allocation failure.
..
.. bpo: 12410
.. date: 8711
.. nonce: oFf-cB
.. section: Library
imaplib.IMAP4 now supports the context management protocol. Original patch
by Tarek Ziadé.
..
.. bpo: 21270
.. date: 8710
.. nonce: qMBaY-
.. section: Library
We now override tuple methods in mock.call objects so that they can be used
as normal call attributes.
..
.. bpo: 16662
.. date: 8709
.. nonce: Nghn-Y
.. section: Library
``load_tests()`` is now unconditionally run when it is present in a package's
``__init__.py``.  ``TestLoader.loadTestsFromModule()`` still accepts use_load_tests,
but it is deprecated and ignored.  A new keyword-only attribute ``pattern`` is
added and documented.  Patch given by Robert Collins, tweaked by Barry
Warsaw.
..
.. bpo: 22226
.. date: 8708
.. nonce: T1ZMPY
.. section: Library
First letter no longer is stripped from the "status" key in the result of
Treeview.heading().
..
.. bpo: 19524
.. date: 8707
.. nonce: EQJjlF
.. section: Library
Fixed resource leak in the HTTP connection when an invalid response is
received.  Patch by Martin Panter.
..
.. bpo: 20421
.. date: 8706
.. nonce: iR0S1s
.. section: Library
Add a .version() method to SSL sockets exposing the actual protocol version
in use.
..
.. bpo: 19546
.. date: 8705
.. nonce: 8VdYBK
.. section: Library
configparser exceptions no longer expose implementation details. Chained
KeyErrors are removed, which leads to cleaner tracebacks.  Patch by Claudiu
Popa.
..
.. bpo: 22051
.. date: 8704
.. nonce: cUjFqL
.. section: Library
turtledemo no longer reloads examples to re-run them. Initialization of
variables and gui setup should be done in main(), which is called each time
a demo is run, but not on import.
..
.. bpo: 21933
.. date: 8703
.. nonce: IhMjN1
.. section: Library
Turtledemo users can change the code font size with a menu selection or
control(command) '-' or '+' or control-mousewheel. Original patch by Lita
Cho.
..
.. bpo: 21597
.. date: 8702
.. nonce: aPTCWJ
.. section: Library
The separator between the turtledemo text pane and the drawing canvas can
now be grabbed and dragged with a mouse.  The code text pane can be widened
to easily view or copy the full width of the text.  The canvas can be
widened on small screens.  Original patches by Jan Kanis and Lita Cho.
..
.. bpo: 18132
.. date: 8701
.. nonce: 2R2nwM
.. section: Library
Turtledemo buttons no longer disappear when the window is shrunk.  Original
patches by Jan Kanis and Lita Cho.
..
.. bpo: 22043
.. date: 8700
.. nonce: Q6RvGL
.. section: Library
time.monotonic() is now always available. ``threading.Lock.acquire()``,
``threading.RLock.acquire()`` and socket operations now use a monotonic
clock, instead of the system clock, when a timeout is used.
..
.. bpo: 21527
.. date: 8699
.. nonce: N5WPxr
.. section: Library
Add a default number of workers to ThreadPoolExecutor equal to 5 times the
number of CPUs.  Patch by Claudiu Popa.
..
.. bpo: 22216
.. date: 8698
.. nonce: Cmalu6
.. section: Library
smtplib now resets its state more completely after a quit.  The most obvious
consequence of the previous behavior was a STARTTLS failure during a
connect/starttls/quit/connect/starttls sequence.
..
.. bpo: 22098
.. date: 8697
.. nonce: 5JYiQN
.. section: Library
ctypes' BigEndianStructure and LittleEndianStructure now define an empty
__slots__ so that subclasses don't always get an instance dict.  Patch by
Claudiu Popa.
..
.. bpo: 22185
.. date: 8696
.. nonce: 1SCCIK
.. section: Library
Fix an occasional RuntimeError in threading.Condition.wait() caused by
mutation of the waiters queue without holding the lock.  Patch by Doug
Zongker.
..
.. bpo: 22287
.. date: 8695
.. nonce: awH2AI
.. section: Library
On UNIX, _PyTime_gettimeofday() now uses clock_gettime(CLOCK_REALTIME) if
available. As a side effect, Python now depends on the librt library on
Solaris and on Linux (only with glibc older than 2.17).
..
.. bpo: 22182
.. date: 8694
.. nonce: 5EG1Bc
.. section: Library
Use e.args to unpack exceptions correctly in distutils.file_util.move_file.
Patch by Claudiu Popa.
..
.. bpo: 0
.. date: 8693
.. nonce: zBfe8J
.. section: Library
The webbrowser module now uses subprocess's start_new_session=True rather
than a potentially risky preexec_fn=os.setsid call.
..
.. bpo: 22042
.. date: 8692
.. nonce: WZvb8s
.. section: Library
signal.set_wakeup_fd(fd) now raises an exception if the file descriptor is
in blocking mode.
..
.. bpo: 16808
.. date: 8691
.. nonce: kPy_5U
.. section: Library
inspect.stack() now returns a named tuple instead of a tuple. Patch by
Daniel Shahaf.
..
.. bpo: 22236
.. date: 8690
.. nonce: 1utXkg
.. section: Library
Fixed Tkinter images copying operations in NoDefaultRoot mode.
..
.. bpo: 2527
.. date: 8689
.. nonce: fR2GS6
.. section: Library
Add a *globals* argument to timeit functions, in order to override the
globals namespace in which the timed code is executed. Patch by Ben Roberts.
..
.. bpo: 22118
.. date: 8688
.. nonce: 3gdkOF
.. section: Library
Switch urllib.parse to use RFC 3986 semantics for the resolution of relative
URLs, rather than RFCs 1808 and 2396. Patch by Demian Brecht.
..
.. bpo: 21549
.. date: 8687
.. nonce: i1LVvg
.. section: Library
Added the "members" parameter to TarFile.list().
..
.. bpo: 19628
.. date: 8686
.. nonce: ssQVP8
.. section: Library
Allow compileall recursion depth to be specified with a -r option.
..
.. bpo: 15696
.. date: 8685
.. nonce: PTwXYJ
.. section: Library
Add a __sizeof__ implementation for mmap objects on Windows.
..
.. bpo: 22068
.. date: 8684
.. nonce: wCdaW0
.. section: Library
Avoided reference loops with Variables and Fonts in Tkinter.
..
.. bpo: 22165
.. date: 8683
.. nonce: J1np4o
.. section: Library
SimpleHTTPRequestHandler now supports undecodable file names.
..
.. bpo: 15381
.. date: 8682
.. nonce: Ia8pf6
.. section: Library
Optimized line reading in io.BytesIO.
..
.. bpo: 8797
.. date: 8681
.. nonce: aJcIPu
.. section: Library
Raise HTTPError on failed Basic Authentication immediately. Initial patch by
Sam Bull.
..
.. bpo: 20729
.. date: 8680
.. nonce: I-1Lap
.. section: Library
Restored the use of lazy iterkeys()/itervalues()/iteritems() in the mailbox
module.
..
.. bpo: 21448
.. date: 8679
.. nonce: THJSYB
.. section: Library
Changed FeedParser feed() to avoid *O*\ (*n*\ :sup:`2`) behavior when parsing long line.
Original patch by Raymond Hettinger.
..
.. bpo: 22184
.. date: 8678
.. nonce: UCbSOt
.. section: Library
The functools LRU Cache decorator factory now gives an earlier and clearer
error message when the user forgets the required parameters.
..
.. bpo: 17923
.. date: 8677
.. nonce: YI_QjG
.. section: Library
glob() patterns ending with a slash no longer match non-dirs on AIX.  Based
on patch by Delhallt.
..
.. bpo: 21725
.. date: 8676
.. nonce: eIu-2N
.. section: Library
Added support for RFC 6531 (SMTPUTF8) in smtpd.
..
.. bpo: 22176
.. date: 8675
.. nonce: rgbRyg
.. section: Library
Update the ctypes module's libffi to v3.1.  This release adds support for
the Linux AArch64 and POWERPC ELF ABIv2 little endian architectures.
..
.. bpo: 5411
.. date: 8674
.. nonce: 5Utapn
.. section: Library
Added support for the "xztar" format in the shutil module.
..
.. bpo: 21121
.. date: 8673
.. nonce: ZLsRil
.. section: Library
Don't force 3rd party C extensions to be built with
-Werror=declaration-after-statement.
..
.. bpo: 21975
.. date: 8672
.. nonce: MI8ntO
.. section: Library
Fixed crash when using uninitialized sqlite3.Row (in particular when
unpickling pickled sqlite3.Row).  sqlite3.Row is now initialized in the
__new__() method.
..
.. bpo: 20170
.. date: 8671
.. nonce: 8QfhN7
.. section: Library
Convert posixmodule to use Argument Clinic.
..
.. bpo: 21539
.. date: 8670
.. nonce: YccmZF
.. section: Library
Add an *exists_ok* argument to ``Pathlib.mkdir()`` to mimic ``mkdir -p`` and
``os.makedirs()`` functionality.  When true, ignore ``FileExistsErrors``.  Patch
by Berker Peksag.
..
.. bpo: 22127
.. date: 8669
.. nonce: 0l2OO5
.. section: Library
Bypass IDNA for pure-ASCII host names in the socket module (in particular
for numeric IPs).
..
.. bpo: 21047
.. date: 8668
.. nonce: XfUQG3
.. section: Library
set the default value for the *convert_charrefs* argument of HTMLParser to
True.  Patch by Berker Peksag.
..
.. bpo: 0
.. date: 8667
.. nonce: 56bAnQ
.. section: Library
Add an __all__ to html.entities.
..
.. bpo: 15114
.. date: 8666
.. nonce: jXwseC
.. section: Library
the strict mode and argument of HTMLParser, HTMLParser.error, and the
HTMLParserError exception have been removed.
..
.. bpo: 22085
.. date: 8665
.. nonce: 3JM_Aw
.. section: Library
Dropped support of Tk 8.3 in Tkinter.
..
.. bpo: 21580
.. date: 8664
.. nonce: 3ssycS
.. section: Library
Now Tkinter correctly handles bytes arguments passed to Tk. In particular
this allows initializing images from binary data.
..
.. bpo: 22003
.. date: 8663
.. nonce: 4ZIDS1
.. section: Library
When initialized from a bytes object, io.BytesIO() now defers making a copy
until it is mutated, improving performance and memory use on some use cases.
Patch by David Wilson.
..
.. bpo: 22018
.. date: 8662
.. nonce: 6ApxSH
.. section: Library
On Windows, signal.set_wakeup_fd() now also supports sockets. A side effect
is that Python depends to the WinSock library.
..
.. bpo: 22054
.. date: 8661
.. nonce: zp6Svw
.. section: Library
Add os.get_blocking() and os.set_blocking() functions to get and set the
blocking mode of a file descriptor (False if the O_NONBLOCK flag is set,
True otherwise). These functions are not available on Windows.
..
.. bpo: 17172
.. date: 8660
.. nonce: R_LI_2
.. section: Library
Make turtledemo start as active on OS X even when run with subprocess.
Patch by Lita Cho.
..
.. bpo: 21704
.. date: 8659
.. nonce: gL3ikj
.. section: Library
Fix build error for _multiprocessing when semaphores are not available.
Patch by Arfrever Frehtes Taifersar Arahesis.
..
.. bpo: 20173
.. date: 8658
.. nonce: FAL-4L
.. section: Library
Convert sha1, sha256, sha512 and md5 to ArgumentClinic. Patch by Vajrasky
Kok.
..
.. bpo: 0
.. date: 8657
.. nonce: G25tq3
.. section: Library
Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError on
closed socket. repr(socket.socket) already works fine.
..
.. bpo: 22033
.. date: 8656
.. nonce: nkBNci
.. section: Library
Reprs of most Python implemented classes now contain actual class name
instead of hardcoded one.
..
.. bpo: 21947
.. date: 8655
.. nonce: mlisu-
.. section: Library
The dis module can now disassemble generator-iterator objects based on their
gi_code attribute. Patch by Clement Rouault.
..
.. bpo: 16133
.. date: 8654
.. nonce: tYuYQF
.. section: Library
The asynchat.async_chat.handle_read() method now ignores BlockingIOError
exceptions.
..
.. bpo: 22044
.. date: 8653
.. nonce: t09GRU
.. section: Library
Fixed premature DECREF in call_tzinfo_method. Patch by Tom Flanagan.
..
.. bpo: 19884
.. date: 8652
.. nonce: v73gSn
.. section: Library
readline: Disable the meta modifier key if stdout is not a terminal to not
write the ANSI sequence ``"\033[1034h"`` into stdout. This sequence is used
on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit
characters.
..
.. bpo: 4350
.. date: 8651
.. nonce: nrTzJn
.. section: Library
Removed a number of out-of-dated and non-working for a long time Tkinter
methods.
..
.. bpo: 6167
.. date: 8650
.. nonce: n9dV_D
.. section: Library
Scrollbar.activate() now returns the name of active element if the argument
is not specified.  Scrollbar.set() now always accepts only 2 arguments.
..
.. bpo: 15275
.. date: 8649
.. nonce: jk0tTI
.. section: Library
Clean up and speed up the ntpath module.
..
.. bpo: 21888
.. date: 8648
.. nonce: danlpz
.. section: Library
plistlib's load() and loads() now work if the fmt parameter is specified.
..
.. bpo: 22032
.. date: 8647
.. nonce: UklzQW
.. section: Library
__qualname__ instead of __name__ is now always used to format fully
qualified class names of Python implemented classes.
..
.. bpo: 22031
.. date: 8646
.. nonce: 9aazp1
.. section: Library
Reprs now always use hexadecimal format with the "0x" prefix when contain an
id in form " at 0x...".
..
.. bpo: 22018
.. date: 8645
.. nonce: b_JTHH
.. section: Library
signal.set_wakeup_fd() now raises an OSError instead of a ValueError on
``fstat()`` failure.
..
.. bpo: 21044
.. date: 8644
.. nonce: 16xo9u
.. section: Library
tarfile.open() now handles fileobj with an integer 'name' attribute.  Based
on patch by Antoine Pietri.
..
.. bpo: 21966
.. date: 8643
.. nonce: hHD9MK
.. section: Library
Respect -q command-line option when code module is ran.
..
.. bpo: 19076
.. date: 8642
.. nonce: xCoIai
.. section: Library
Don't pass the redundant 'file' argument to self.error().
..
.. bpo: 16382
.. date: 8641
.. nonce: -XBK7z
.. section: Library
Improve exception message of warnings.warn() for bad category. Initial patch
by Phil Elson.
..
.. bpo: 21932
.. date: 8640
.. nonce: LK_5S1
.. section: Library
os.read() now uses a :c:func:`Py_ssize_t` type instead of :c:expr:`int` for
the size to support reading more than 2 GB at once. On Windows, the size is
truncated to INT_MAX. As any call to os.read(), the OS may read less bytes
than the number of requested bytes.
..
.. bpo: 21942
.. date: 8639
.. nonce: TLOS41
.. section: Library
Fixed source file viewing in pydoc's server mode on Windows.
..
.. bpo: 11259
.. date: 8638
.. nonce: GxfYnE
.. section: Library
asynchat.async_chat().set_terminator() now raises a ValueError if the number
of received bytes is negative.
..
.. bpo: 12523
.. date: 8637
.. nonce: XBdAky
.. section: Library
asynchat.async_chat.push() now raises a TypeError if it doesn't get a bytes
string
..
.. bpo: 21707
.. date: 8636
.. nonce: rrY_wd
.. section: Library
Add missing kwonlyargcount argument to ModuleFinder.replace_paths_in_code().
..
.. bpo: 20639
.. date: 8635
.. nonce: YdvOpp
.. section: Library
calling Path.with_suffix('') allows removing the suffix again.  Patch by
July Tikhonov.
..
.. bpo: 21714
.. date: 8634
.. nonce: HhkGXW
.. section: Library
Disallow the construction of invalid paths using Path.with_name().  Original
patch by Antony Lee.
..
.. bpo: 15014
.. date: 8633
.. nonce: dB50zb
.. section: Library
Added 'auth' method to smtplib to make implementing auth mechanisms simpler,
and used it internally in the login method.
..
.. bpo: 21151
.. date: 8632
.. nonce: o7IuiD
.. section: Library
Fixed a segfault in the winreg module when ``None`` is passed as a
``REG_BINARY`` value to SetValueEx.  Patch by John Ehresman.
..
.. bpo: 21090
.. date: 8631
.. nonce: 20Ooif
.. section: Library
io.FileIO.readall() does not ignore I/O errors anymore. Before, it ignored
I/O errors if at least the first C call read() succeed.
..
.. bpo: 5800
.. date: 8630
.. nonce: ZJiLZP
.. section: Library
headers parameter of wsgiref.headers.Headers is now optional. Initial patch
by Pablo Torres Navarrete and SilentGhost.
..
.. bpo: 21781
.. date: 8629
.. nonce: u_oiv9
.. section: Library
ssl.RAND_add() now supports strings longer than 2 GB.
..
.. bpo: 21679
.. date: 8628
.. nonce: CTVT9A
.. section: Library
Prevent extraneous fstat() calls during open().  Patch by Bohuslav Kabrda.
..
.. bpo: 21863
.. date: 8627
.. nonce: BzbwSL
.. section: Library
cProfile now displays the module name of C extension functions, in addition
to their own name.
..
.. bpo: 11453
.. date: 8626
.. nonce: 53Gr_R
.. section: Library
asyncore: emit a ResourceWarning when an unclosed file_wrapper object is
destroyed. The destructor now closes the file if needed. The close() method
can now be called twice: the second call does nothing.
..
.. bpo: 21858
.. date: 8625
.. nonce: 0hbFBG
.. section: Library
Better handling of Python exceptions in the sqlite3 module.
..
.. bpo: 21476
.. date: 8624
.. nonce: VN-5pW
.. section: Library
Make sure the email.parser.BytesParser TextIOWrapper is discarded after
parsing, so the input file isn't unexpectedly closed.
..
.. bpo: 20295
.. date: 8623
.. nonce: U1MPhw
.. section: Library
imghdr now recognizes OpenEXR format images.
..
.. bpo: 21729
.. date: 8622
.. nonce: dk7o_U
.. section: Library
Used the "with" statement in the dbm.dumb module to ensure files closing.
Patch by Claudiu Popa.
..
.. bpo: 21491
.. date: 8621
.. nonce: Zxmut-
.. section: Library
socketserver: Fix a race condition in child processes reaping.
..
.. bpo: 21719
.. date: 8620
.. nonce: DhQz3I
.. section: Library
Added the ``st_file_attributes`` field to os.stat_result on Windows.
..
.. bpo: 21832
.. date: 8619
.. nonce: PBA0Uu
.. section: Library
Require named tuple inputs to be exact strings.
..
.. bpo: 21722
.. date: 8618
.. nonce: WTHuRy
.. section: Library
The distutils "upload" command now exits with a non-zero return code when
uploading fails.  Patch by Martin Dengler.
..
.. bpo: 21723
.. date: 8617
.. nonce: r86fwb
.. section: Library
asyncio.Queue: support any type of number (ex: float) for the maximum size.
Patch written by Vajrasky Kok.
..
.. bpo: 21711
.. date: 8616
.. nonce: JWPFQZ
.. section: Library
support for "site-python" directories has now been removed from the site
module (it was deprecated in 3.4).
..
.. bpo: 17552
.. date: 8615
.. nonce: NunErD
.. section: Library
new socket.sendfile() method allowing a file to be sent over a socket by
using high-performance os.sendfile() on UNIX. Patch by Giampaolo Rodola'.
..
.. bpo: 18039
.. date: 8614
.. nonce: vC9hNy
.. section: Library
dbm.dump.open() now always creates a new database when the flag has the
value 'n'.  Patch by Claudiu Popa.
..
.. bpo: 21326
.. date: 8613
.. nonce: Y6iW3s
.. section: Library
Add a new is_closed() method to asyncio.BaseEventLoop. run_forever() and
run_until_complete() methods of asyncio.BaseEventLoop now raise an exception
if the event loop was closed.
..
.. bpo: 21766
.. date: 8612
.. nonce: 0xk_xC
.. section: Library
Prevent a security hole in CGIHTTPServer by URL unquoting paths before
checking for a CGI script at that path.
..
.. bpo: 21310
.. date: 8611
.. nonce: 2mjByJ
.. section: Library
Fixed possible resource leak in failed open().
..
.. bpo: 21256
.. date: 8610
.. nonce: dGq6cw
.. section: Library
Printout of keyword args should be in deterministic order in a mock function
call. This will help to write better doctests.
..
.. bpo: 21677
.. date: 8609
.. nonce: 58CDDD
.. section: Library
Fixed chaining nonnormalized exceptions in io close() methods.
..
.. bpo: 11709
.. date: 8608
.. nonce: JdObvL
.. section: Library
Fix the pydoc.help function to not fail when sys.stdin is not a valid file.
..
.. bpo: 21515
.. date: 8607
.. nonce: D9TLJF
.. section: Library
tempfile.TemporaryFile now uses os.O_TMPFILE flag is available.
..
.. bpo: 13223
.. date: 8606
.. nonce: 9AzEbN
.. section: Library
Fix pydoc.writedoc so that the HTML documentation for methods that use
'self' in the example code is generated correctly.
..
.. bpo: 21463
.. date: 8605
.. nonce: 09PsgH
.. section: Library
In urllib.request, fix pruning of the FTP cache.
..
.. bpo: 21618
.. date: 8604
.. nonce: 3Z7WS3
.. section: Library
The subprocess module could fail to close open fds that were inherited by
the calling process and already higher than POSIX resource limits would
otherwise allow.  On systems with a functioning /proc/self/fd or /dev/fd
interface the max is now ignored and all fds are closed.
..
.. bpo: 20383
.. date: 8603
.. nonce: pSPFpW
.. section: Library
Introduce importlib.util.module_from_spec() as the preferred way to create a
new module.
..
.. bpo: 21552
.. date: 8602
.. nonce: uVy4tM
.. section: Library
Fixed possible integer overflow of too long string lengths in the tkinter
module on 64-bit platforms.
..
.. bpo: 14315
.. date: 8601
.. nonce: YzZzS8
.. section: Library
The zipfile module now ignores extra fields in the central directory that
are too short to be parsed instead of letting a struct.unpack error bubble
up as this "bad data" appears in many real world zip files in the wild and
is ignored by other zip tools.
..
.. bpo: 13742
.. date: 8600
.. nonce: QJiVSC
.. section: Library
Added "key" and "reverse" parameters to heapq.merge(). (First draft of patch
contributed by Simon Sapin.)
..
.. bpo: 21402
.. date: 8599
.. nonce: 51vDXt
.. section: Library
tkinter.ttk now works when default root window is not set.
..
.. bpo: 3015
.. date: 8598
.. nonce: FE_PII
.. section: Library
``_tkinter.create()`` now creates ``tkapp`` object with ``wantobjects=1`` by
default.
..
.. bpo: 10203
.. date: 8597
.. nonce: zgr0hh
.. section: Library
sqlite3.Row now truly supports sequence protocol.  In particular it supports
reverse() and negative indices.  Original patch by Claudiu Popa.
..
.. bpo: 18807
.. date: 8596
.. nonce: XP7p8B
.. section: Library
If copying (no symlinks) specified for a venv, then the python interpreter
aliases (python, python3) are now created by copying rather than symlinking.
..
.. bpo: 20197
.. date: 8595
.. nonce: nYR9fq
.. section: Library
Added support for the WebP image type in the imghdr module. Patch by Fabrice
Aneche and Claudiu Popa.
..
.. bpo: 21513
.. date: 8594
.. nonce: ro4AOe
.. section: Library
Speedup some properties of IP addresses (IPv4Address, IPv6Address) such as
.is_private or .is_multicast.
..
.. bpo: 21137
.. date: 8593
.. nonce: wgHb_F
.. section: Library
Improve the repr for threading.Lock() and its variants by showing the
"locked" or "unlocked" status.  Patch by Berker Peksag.
..
.. bpo: 21538
.. date: 8592
.. nonce: Q60FWA
.. section: Library
The plistlib module now supports loading of binary plist files when
reference or offset size is not a power of two.
..
.. bpo: 21455
.. date: 8591
.. nonce: 6-Uvv4
.. section: Library
Add a default backlog to socket.listen().
..
.. bpo: 21525
.. date: 8590
.. nonce: hAKOve
.. section: Library
Most Tkinter methods which accepted tuples now accept lists too.
..
.. bpo: 22166
.. date: 8589
.. nonce: sZYhmv
.. section: Library
With the assistance of a new internal _codecs._forget_codec helping
function, test_codecs now clears the encoding caches to avoid the appearance
of a reference leak
..
.. bpo: 22236
.. date: 8588
.. nonce: ginJSI
.. section: Library
Tkinter tests now don't reuse default root window.  New root window is
created for every test class.
..
.. bpo: 10744
.. date: 8587
.. nonce: kfV0wm
.. section: Library
Fix :pep:`3118` format strings on ctypes objects with a nontrivial shape.
..
.. bpo: 20826
.. date: 8586
.. nonce: 3rXqMC
.. section: Library
Optimize ipaddress.collapse_addresses().
..
.. bpo: 21487
.. date: 8585
.. nonce: sX8YmK
.. section: Library
Optimize ipaddress.summarize_address_range() and
ipaddress.{IPv4Network,IPv6Network}.subnets().
..
.. bpo: 21486
.. date: 8584
.. nonce: CeFKRP
.. section: Library
Optimize parsing of netmasks in ipaddress.IPv4Network and
ipaddress.IPv6Network.
..
.. bpo: 13916
.. date: 8583
.. nonce: D77YVH
.. section: Library
Disallowed the surrogatepass error handler for non UTF-\* encodings.
..
.. bpo: 20998
.. date: 8582
.. nonce: fkxpXI
.. section: Library
Fixed re.fullmatch() of repeated single character pattern with ignore case.
Original patch by Matthew Barnett.
..
.. bpo: 21075
.. date: 8581
.. nonce: f_hmEh
.. section: Library
fileinput.FileInput now reads bytes from standard stream if binary mode is
specified.  Patch by Sam Kimbrel.
..
.. bpo: 19775
.. date: 8580
.. nonce: yxxD_R
.. section: Library
Add a samefile() method to pathlib Path objects.  Initial patch by Vajrasky
Kok.
..
.. bpo: 21226
.. date: 8579
.. nonce: pzGmG1
.. section: Library
Set up modules properly in PyImport_ExecCodeModuleObject (and friends).
..
.. bpo: 21398
.. date: 8578
.. nonce: guSBXt
.. section: Library
Fix a unicode error in the pydoc pager when the documentation contains
characters not encodable to the stdout encoding.
..
.. bpo: 16531
.. date: 8577
.. nonce: AhrY_v
.. section: Library
ipaddress.IPv4Network and ipaddress.IPv6Network now accept an (address,
netmask) tuple argument, so as to easily construct network objects from
existing addresses.
..
.. bpo: 21156
.. date: 8576
.. nonce: 3dmBEp
.. section: Library
importlib.abc.InspectLoader.source_to_code() is now a staticmethod.
..
.. bpo: 21424
.. date: 8575
.. nonce: 8CJBqW
.. section: Library
Simplified and optimized heaqp.nlargest() and nmsmallest() to make fewer
tuple comparisons.
..
.. bpo: 21396
.. date: 8574
.. nonce: cqO6DN
.. section: Library
Fix TextIOWrapper(..., write_through=True) to not force a flush() on the
underlying binary stream.  Patch by akira.
..
.. bpo: 18314
.. date: 8573
.. nonce: NCd_KF
.. section: Library
Unlink now removes junctions on Windows. Patch by Kim Gräsman
..
.. bpo: 21088
.. date: 8572
.. nonce: WOg7Xy
.. section: Library
Bugfix for curses.window.addch() regression in 3.4.0. In porting to Argument
Clinic, the first two arguments were reversed.
..
.. bpo: 21407
.. date: 8571
.. nonce: cZjFde
.. section: Library
_decimal: The module now supports function signatures.
..
.. bpo: 10650
.. date: 8570
.. nonce: HYT4Oe
.. section: Library
Remove the non-standard 'watchexp' parameter from the Decimal.quantize()
method in the Python version.  It had never been present in the C version.
..
.. bpo: 21469
.. date: 8569
.. nonce: _fFGuq
.. section: Library
Reduced the risk of false positives in robotparser by checking to make sure
that robots.txt has been read or does not exist prior to returning True in
can_fetch().
..
.. bpo: 19414
.. date: 8568
.. nonce: bAAw4D
.. section: Library
Have the OrderedDict mark deleted links as unusable. This gives an early
failure if the link is deleted during iteration.
..
.. bpo: 21421
.. date: 8567
.. nonce: 5AKAat
.. section: Library
Add __slots__ to the MappingViews ABC. Patch by Josh Rosenberg.
..
.. bpo: 21101
.. date: 8566
.. nonce: Lj-_P4
.. section: Library
Eliminate double hashing in the C speed-up code for collections.Counter().
..
.. bpo: 21321
.. date: 8565
.. nonce: wUkTON
.. section: Library
itertools.islice() now releases the reference to the source iterator when
the slice is exhausted.  Patch by Anton Afanasyev.
..
.. bpo: 21057
.. date: 8564
.. nonce: 0TC4Xl
.. section: Library
TextIOWrapper now allows the underlying binary stream's read() or read1()
method to return an arbitrary bytes-like object (such as a memoryview).
Patch by Nikolaus Rath.
..
.. bpo: 20951
.. date: 8563
.. nonce: tF0dJi
.. section: Library
SSLSocket.send() now raises either SSLWantReadError or SSLWantWriteError on
a non-blocking socket if the operation would block. Previously, it would
return 0.  Patch by Nikolaus Rath.
..
.. bpo: 13248
.. date: 8562
.. nonce: 7vtGj0
.. section: Library
removed previously deprecated asyncore.dispatcher __getattr__ cheap
inheritance hack.
..
.. bpo: 9815
.. date: 8561
.. nonce: 52FPlI
.. section: Library
assertRaises now tries to clear references to local variables in the
exception's traceback.
..
.. bpo: 19940
.. date: 8560
.. nonce: 2qtBQ8
.. section: Library
ssl.cert_time_to_seconds() now interprets the given time string in the UTC
timezone (as specified in RFC 5280), not the local timezone.
..
.. bpo: 13204
.. date: 8559
.. nonce: ZPKA5g
.. section: Library
Calling sys.flags.__new__ would crash the interpreter, now it raises a
TypeError.
..
.. bpo: 19385
.. date: 8558
.. nonce: PexO_g
.. section: Library
Make operations on a closed dbm.dumb database always raise the same
exception.
..
.. bpo: 21207
.. date: 8557
.. nonce: Hr72AB
.. section: Library
Detect when the os.urandom cached fd has been closed or replaced, and open
it anew.
..
.. bpo: 21291
.. date: 8556
.. nonce: 5sSLWN
.. section: Library
subprocess's Popen.wait() is now thread safe so that multiple threads may be
calling wait() or poll() on a Popen instance at the same time without losing
the Popen.returncode value.
..
.. bpo: 21127
.. date: 8555
.. nonce: A1aBjG
.. section: Library
Path objects can now be instantiated from str subclass instances (such as
``numpy.str_``).
..
.. bpo: 15002
.. date: 8554
.. nonce: qorYDe
.. section: Library
urllib.response object to use _TemporaryFileWrapper (and
_TemporaryFileCloser) facility. Provides a better way to handle file
descriptor close. Patch contributed by Christian Theune.
..
.. bpo: 12220
.. date: 8553
.. nonce: U25uE9
.. section: Library
mindom now raises a custom ValueError indicating it doesn't support spaces
in URIs instead of letting a 'split' ValueError bubble up.
..
.. bpo: 21068
.. date: 8552
.. nonce: 9k6N9m
.. section: Library
The ssl.PROTOCOL* constants are now enum members.
..
.. bpo: 21276
.. date: 8551
.. nonce: JkfhvQ
.. section: Library
posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd.
..
.. bpo: 21262
.. date: 8550
.. nonce: 1J5ylk
.. section: Library
New method assert_not_called for Mock. It raises AssertionError if the mock
has been called.
..
.. bpo: 21238
.. date: 8549
.. nonce: 5CDoox
.. section: Library
New keyword argument ``unsafe`` to Mock. It raises ``AttributeError`` in case of
an attribute startswith assert or assret.
..
.. bpo: 20896
.. date: 8548
.. nonce: oWwAb1
.. section: Library
ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not PROTOCOL_SSLv3,
for maximum compatibility.
..
.. bpo: 21239
.. date: 8547
.. nonce: EalCNt
.. section: Library
patch.stopall() didn't work deterministically when the same name was patched
more than once.
..
.. bpo: 21203
.. date: 8546
.. nonce: 1IMs-Z
.. section: Library
Updated fileConfig and dictConfig to remove inconsistencies. Thanks to Jure
Koren for the patch.
..
.. bpo: 21222
.. date: 8545
.. nonce: G6MQBP
.. section: Library
Passing name keyword argument to mock.create_autospec now works.
..
.. bpo: 21197
.. date: 8544
.. nonce: Gzfqdl
.. section: Library
Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
..
.. bpo: 17498
.. date: 8543
.. nonce: LR9xyb
.. section: Library
Some SMTP servers disconnect after certain errors, violating strict RFC
conformance.  Instead of losing the error code when we issue the subsequent
RSET, smtplib now returns the error code and defers raising the
SMTPServerDisconnected error until the next command is issued.
..
.. bpo: 17826
.. date: 8542
.. nonce: z0zMRV
.. section: Library
setting an iterable side_effect on a mock function created by
create_autospec now works. Patch by Kushal Das.
..
.. bpo: 7776
.. date: 8541
.. nonce: K5S2Pe
.. section: Library
Fix ``Host:`` header and reconnection when using
http.client.HTTPConnection.set_tunnel(). Patch by Nikolaus Rath.
..
.. bpo: 20968
.. date: 8540
.. nonce: 53Aagz
.. section: Library
unittest.mock.MagicMock now supports division. Patch by Johannes Baiter.
..
.. bpo: 21529
.. date: 8539
.. nonce: 57R_Fc
.. section: Library
Fix arbitrary memory access in JSONDecoder.raw_decode with a negative second
parameter. Bug reported by Guido Vranken. (See also: :cve:`2014-4616`)
..
.. bpo: 21169
.. date: 8538
.. nonce: KE7B0M
.. section: Library
getpass now handles non-ascii characters that the input stream encoding
cannot encode by re-encoding using the replace error handler.
..
.. bpo: 21171
.. date: 8537
.. nonce: iUbV9S
.. section: Library
Fixed undocumented filter API of the rot13 codec. Patch by Berker Peksag.
..
.. bpo: 20539
.. date: 8536
.. nonce: 62nbEb
.. section: Library
Improved math.factorial error message for large positive inputs and changed
exception type (OverflowError -> ValueError) for large negative inputs.
..
.. bpo: 21172
.. date: 8535
.. nonce: dQ7yY7
.. section: Library
isinstance check relaxed from dict to collections.Mapping.
..
.. bpo: 21155
.. date: 8534
.. nonce: JSKEE7
.. section: Library
asyncio.EventLoop.create_unix_server() now raises a ValueError if path and
sock are specified at the same time.
..
.. bpo: 21136
.. date: 8533
.. nonce: JZAKv3
.. section: Library
Avoid unnecessary normalization of Fractions resulting from power and other
operations.  Patch by Raymond Hettinger.
..
.. bpo: 17621
.. date: 8532
.. nonce: 1x0mvJ
.. section: Library
Introduce importlib.util.LazyLoader.
..
.. bpo: 21076
.. date: 8531
.. nonce: upxQc6
.. section: Library
signal module constants were turned into enums. Patch by Giampaolo Rodola'.
..
.. bpo: 20636
.. date: 8530
.. nonce: KGh-BD
.. section: Library
Improved the repr of Tkinter widgets.
..
.. bpo: 19505
.. date: 8529
.. nonce: VEtIE6
.. section: Library
The items, keys, and values views of OrderedDict now support reverse
iteration using reversed().
..
.. bpo: 21149
.. date: 8528
.. nonce: cnjwMR
.. section: Library
Improved thread-safety in logging cleanup during interpreter shutdown.
Thanks to Devin Jeanpierre for the patch.
..
.. bpo: 21058
.. date: 8527
.. nonce: IhluPP
.. section: Library
Fix a leak of file descriptor in :func:`tempfile.NamedTemporaryFile`, close
the file descriptor if :func:`io.open` fails
..
.. bpo: 21200
.. date: 8526
.. nonce: Kht8yD
.. section: Library
Return None from pkgutil.get_loader() when __spec__ is missing.
..
.. bpo: 21013
.. date: 8525
.. nonce: 3s8Ic0
.. section: Library
Enhance ssl.create_default_context() when used for server side sockets to
provide better security by default.
..
.. bpo: 20145
.. date: 8524
.. nonce: FP5FY0
.. section: Library
``assertRaisesRegex`` and ``assertWarnsRegex`` now raise a ``TypeError`` if the
second argument is not a string or compiled regex.
..
.. bpo: 20633
.. date: 8523
.. nonce: 6kaPjT
.. section: Library
Replace relative import by absolute import.
..
.. bpo: 20980
.. date: 8522
.. nonce: cYszHY
.. section: Library
Stop wrapping exception when using ThreadPool.
..
.. bpo: 21082
.. date: 8521
.. nonce: GLzGlV
.. section: Library
In os.makedirs, do not set the process-wide umask. Note this changes
behavior of makedirs when exist_ok=True.
..
.. bpo: 20990
.. date: 8520
.. nonce: PBfjW3
.. section: Library
Fix issues found by pyflakes for multiprocessing.
..
.. bpo: 21015
.. date: 8519
.. nonce: xnwWAH
.. section: Library
SSL contexts will now automatically select an elliptic curve for ECDH key
exchange on OpenSSL 1.0.2 and later, and otherwise default to "prime256v1".
..
.. bpo: 21000
.. date: 8518
.. nonce: JUyyVV
.. section: Library
Improve the command-line interface of json.tool.
..
.. bpo: 20995
.. date: 8517
.. nonce: KSORJT
.. section: Library
Enhance default ciphers used by the ssl module to enable better security and
prioritize perfect forward secrecy.
..
.. bpo: 20884
.. date: 8516
.. nonce: qNmub_
.. section: Library
Don't assume that __file__ is defined on importlib.__init__.
..
.. bpo: 21499
.. date: 8515
.. nonce: wU4OBi
.. section: Library
Ignore __builtins__ in several test_importlib.test_api tests.
..
.. bpo: 20627
.. date: 8514
.. nonce: fgfQ1x
.. section: Library
xmlrpc.client.ServerProxy is now a context manager.
..
.. bpo: 19165
.. date: 8513
.. nonce: sAkUjU
.. section: Library
The formatter module now raises DeprecationWarning instead of
PendingDeprecationWarning.
..
.. bpo: 13936
.. date: 8512
.. nonce: _Q0Yog
.. section: Library
Remove the ability of datetime.time instances to be considered false in
boolean contexts.
..
.. bpo: 18931
.. date: 8511
.. nonce: mq4Mud
.. section: Library
selectors module now supports /dev/poll on Solaris. Patch by Giampaolo
Rodola'.
..
.. bpo: 19977
.. date: 8510
.. nonce: A-sQ_V
.. section: Library
When the ``LC_TYPE`` locale is the POSIX locale (``C`` locale),
:py:data:`sys.stdin` and :py:data:`sys.stdout` are now using the
``surrogateescape`` error handler, instead of the ``strict`` error handler.
..
.. bpo: 20574
.. date: 8509
.. nonce: KaKqSs
.. section: Library
Implement incremental decoder for cp65001 code (Windows code page 65001,
Microsoft UTF-8).
..
.. bpo: 20879
.. date: 8508
.. nonce: myeYdq
.. section: Library
Delay the initialization of encoding and decoding tables for base32, ascii85
and base85 codecs in the base64 module, and delay the initialization of the
unquote_to_bytes() table of the urllib.parse module, to not waste memory if
these modules are not used.
..
.. bpo: 19157
.. date: 8507
.. nonce: V1-XhC
.. section: Library
Include the broadcast address in the usable hosts for IPv6 in ipaddress.
..
.. bpo: 11599
.. date: 8506
.. nonce: 9QOXf4
.. section: Library
When an external command (e.g. compiler) fails, distutils now prints out the
whole command line (instead of just the command name) if the environment
variable DISTUTILS_DEBUG is set.
..
.. bpo: 4931
.. date: 8505
.. nonce: uF10hr
.. section: Library
distutils should not produce unhelpful "error: None" messages anymore.
distutils.util.grok_environment_error is kept but doc-deprecated.
..
.. bpo: 20875
.. date: 8504
.. nonce: IjfI5V
.. section: Library
Prevent possible gzip "'read' is not defined" NameError. Patch by Claudiu
Popa.
..
.. bpo: 11558
.. date: 8503
.. nonce: pxrsmq
.. section: Library
``email.message.Message.attach`` now returns a more useful error message if
``attach`` is called on a message for which ``is_multipart`` is False.
..
.. bpo: 20283
.. date: 8502
.. nonce: v0Vs9V
.. section: Library
RE pattern methods now accept the string keyword parameters as documented.
The pattern and source keyword parameters are left as deprecated aliases.
..
.. bpo: 20778
.. date: 8501
.. nonce: g_fAGI
.. section: Library
Fix modulefinder to work with bytecode-only modules.
..
.. bpo: 20791
.. date: 8500
.. nonce: n_zrkc
.. section: Library
copy.copy() now doesn't make a copy when the input is a bytes object.
Initial patch by Peter Otten.
..
.. bpo: 19748
.. date: 8499
.. nonce: kiA171
.. section: Library
On AIX, time.mktime() now raises an OverflowError for year outsize range
[1902; 2037].
..
.. bpo: 19573
.. date: 8498
.. nonce: QJvX_V
.. section: Library
inspect.signature: Use enum for parameter kind constants.
..
.. bpo: 20726
.. date: 8497
.. nonce: 0yfRDI
.. section: Library
inspect.signature: Make Signature and Parameter picklable.
..
.. bpo: 17373
.. date: 8496
.. nonce: ECwuJO
.. section: Library
Add inspect.Signature.from_callable method.
..
.. bpo: 20378
.. date: 8495
.. nonce: l9M3H-
.. section: Library
Improve repr of inspect.Signature and inspect.Parameter.
..
.. bpo: 20816
.. date: 8494
.. nonce: DFMEgN
.. section: Library
Fix inspect.getcallargs() to raise correct TypeError for missing
keyword-only arguments. Patch by Jeremiah Lowin.
..
.. bpo: 20817
.. date: 8493
.. nonce: O5XyZB
.. section: Library
Fix inspect.getcallargs() to fail correctly if more than 3 arguments are
missing. Patch by Jeremiah Lowin.
..
.. bpo: 6676
.. date: 8492
.. nonce: CJu5On
.. section: Library
Ensure a meaningful exception is raised when attempting to parse more than
one XML document per pyexpat xmlparser instance. (Original patches by
Hirokazu Yamamoto and Amaury Forgeot d'Arc, with suggested wording by David
Gutteridge)
..
.. bpo: 21117
.. date: 8491
.. nonce: hyH7EK
.. section: Library
Fix inspect.signature to better support functools.partial. Due to the
specifics of functools.partial implementation, positional-or-keyword
arguments passed as keyword arguments become keyword-only.
..
.. bpo: 20334
.. date: 8490
.. nonce: 0yFmfQ
.. section: Library
inspect.Signature and inspect.Parameter are now hashable. Thanks to Antony
Lee for bug reports and suggestions.
..
.. bpo: 15916
.. date: 8489
.. nonce: _vhKPn
.. section: Library
doctest.DocTestSuite returns an empty unittest.TestSuite instead of raising
ValueError if it finds no tests
..
.. bpo: 21209
.. date: 8488
.. nonce: wRE7Dn
.. section: Library
Fix asyncio.tasks.CoroWrapper to workaround a bug in yield-from
implementation in CPythons prior to 3.4.1.
..
.. bpo: 0
.. date: 8487
.. nonce: Q1I78Z
.. section: Library
asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream
issue #163).
..
.. bpo: 21311
.. date: 8486
.. nonce: JsDF8H
.. section: Library
Avoid exception in _osx_support with non-standard compiler configurations.
Patch by John Szakmeister.
..
.. bpo: 11571
.. date: 8485
.. nonce: RPeGNo
.. section: Library
Ensure that the turtle window becomes the topmost window when launched on OS
X.
..
.. bpo: 21801
.. date: 8484
.. nonce: rzfhYl
.. section: Library
Validate that __signature__ is None or an instance of Signature.
..
.. bpo: 21923
.. date: 8483
.. nonce: hXnoZa
.. section: Library
Prevent AttributeError in distutils.sysconfig.customize_compiler due to
possible uninitialized _config_vars.
..
.. bpo: 21323
.. date: 8482
.. nonce: quiWfl
.. section: Library
Fix http.server to again handle scripts in CGI subdirectories, broken by the
fix for security issue #19435.  Patch by Zach Byrne.
..
.. bpo: 22733
.. date: 8481
.. nonce: 21gJBp
.. section: Library
Fix ffi_prep_args not zero-extending argument values correctly on 64-bit
Windows.
..
.. bpo: 23302
.. date: 8480
.. nonce: X2dabK
.. section: Library
Default to TCP_NODELAY=1 upon establishing an HTTPConnection. Removed use of
hard-coded MSS as it's an optimization that's no longer needed with Nagle
disabled.
..
.. bpo: 20577
.. date: 8479
.. nonce: Y71IMj
.. section: IDLE
Configuration of the max line length for the FormatParagraph extension has
been moved from the General tab of the Idle preferences dialog to the
FormatParagraph tab of the Config Extensions dialog. Patch by Tal Einat.
..
.. bpo: 16893
.. date: 8478
.. nonce: JfHAA4
.. section: IDLE
Update Idle doc chapter to match current Idle and add new information.
..
.. bpo: 3068
.. date: 8477
.. nonce: TYjXTA
.. section: IDLE
Add Idle extension configuration dialog to Options menu. Changes are written
to HOME/.idlerc/config-extensions.cfg. Original patch by Tal Einat.
..
.. bpo: 16233
.. date: 8476
.. nonce: sOadNo
.. section: IDLE
A module browser (File : Class Browser, Alt+C) requires an editor window
with a filename.  When Class Browser is requested otherwise, from a shell,
output window, or 'Untitled' editor, Idle no longer displays an error box.
It now pops up an Open Module box (Alt+M). If a valid name is entered and a
module is opened, a corresponding browser is also opened.
..
.. bpo: 4832
.. date: 8475
.. nonce: GRKi9M
.. section: IDLE
Save As to type Python files automatically adds .py to the name you enter
(even if your system does not display it).  Some systems automatically add
.txt when type is Text files.
..
.. bpo: 21986
.. date: 8474
.. nonce: 04GUv2
.. section: IDLE
Code objects are not normally pickled by the pickle module. To match this,
they are no longer pickled when running under Idle.
..
.. bpo: 17390
.. date: 8473
.. nonce: I4vHFh
.. section: IDLE
Adjust Editor window title; remove 'Python', move version to end.
..
.. bpo: 14105
.. date: 8472
.. nonce: -FZwYH
.. section: IDLE
Idle debugger breakpoints no longer disappear when inserting or deleting
lines.
..
.. bpo: 17172
.. date: 8471
.. nonce: R8jkU1
.. section: IDLE
Turtledemo can now be run from Idle. Currently, the entry is on the Help
menu, but it may move to Run. Patch by Ramchandra Apt and Lita Cho.
..
.. bpo: 21765
.. date: 8470
.. nonce: JyiDbd
.. section: IDLE
Add support for non-ascii identifiers to HyperParser.
..
.. bpo: 21940
.. date: 8469
.. nonce: VlIRz7
.. section: IDLE
Add unittest for WidgetRedirector. Initial patch by Saimadhav Heblikar.
..
.. bpo: 18592
.. date: 8468
.. nonce: sMG-SZ
.. section: IDLE
Add unittest for SearchDialogBase. Patch by Phil Webster.
..
.. bpo: 21694
.. date: 8467
.. nonce: 1oLmRo
.. section: IDLE
Add unittest for ParenMatch. Patch by Saimadhav Heblikar.
..
.. bpo: 21686
.. date: 8466
.. nonce: TAkFB0
.. section: IDLE
add unittest for HyperParser. Original patch by Saimadhav Heblikar.
..
.. bpo: 12387
.. date: 8465
.. nonce: XO7Ozk
.. section: IDLE
Add missing upper(lower)case versions of default Windows key bindings for
Idle so Caps Lock does not disable them. Patch by Roger Serwy.
..
.. bpo: 21695
.. date: 8464
.. nonce: g-t0Tm
.. section: IDLE
Closing a Find-in-files output window while the search is still in progress
no longer closes Idle.
..
.. bpo: 18910
.. date: 8463
.. nonce: ke8lMK
.. section: IDLE
Add unittest for textView. Patch by Phil Webster.
..
.. bpo: 18292
.. date: 8462
.. nonce: ks_3wm
.. section: IDLE
Add unittest for AutoExpand. Patch by Saihadhav Heblikar.
..
.. bpo: 18409
.. date: 8461
.. nonce: 7fe-aK
.. section: IDLE
Add unittest for AutoComplete. Patch by Phil Webster.
..
.. bpo: 21477
.. date: 8460
.. nonce: 33NOe0
.. section: IDLE
htest.py - Improve framework, complete set of tests. Patches by Saimadhav
Heblikar
..
.. bpo: 18104
.. date: 8459
.. nonce: 8Fj9Pf
.. section: IDLE
Add idlelib/idle_test/htest.py with a few sample tests to begin
consolidating and improving human-validated tests of Idle. Change other
files as needed to work with htest.  Running the module as __main__ runs all
tests.
..
.. bpo: 21139
.. date: 8458
.. nonce: kqetng
.. section: IDLE
Change default paragraph width to 72, the :pep:`8` recommendation.
..
.. bpo: 21284
.. date: 8457
.. nonce: KKJfmv
.. section: IDLE
Paragraph reformat test passes after user changes reformat width.
..
.. bpo: 17654
.. date: 8456
.. nonce: NbzhNS
.. section: IDLE
Ensure IDLE menus are customized properly on OS X for non-framework builds
and for all variants of Tk.
..
.. bpo: 23180
.. date: 8455
.. nonce: cE_89F
.. section: IDLE
Rename IDLE "Windows" menu item to "Window". Patch by Al Sweigart.
..
.. bpo: 15506
.. date: 8454
.. nonce: nh8KlR
.. section: Build
Use standard PKG_PROG_PKG_CONFIG autoconf macro in the configure script.
..
.. bpo: 22935
.. date: 8453
.. nonce: -vY3lc
.. section: Build
Allow the ssl module to be compiled if openssl doesn't support SSL 3.
..
.. bpo: 22592
.. date: 8452
.. nonce: O_IE9W
.. section: Build
Drop support of the Borland C compiler to build Python. The distutils module
still supports it to build extensions.
..
.. bpo: 22591
.. date: 8451
.. nonce: wwBlG8
.. section: Build
Drop support of MS-DOS, especially of the DJGPP compiler (MS-DOS port of
GCC).
..
.. bpo: 16537
.. date: 8450
.. nonce: llFo71
.. section: Build
Check whether self.extensions is empty in setup.py. Patch by Jonathan
Hosmer.
..
.. bpo: 22359
.. date: 8449
.. nonce: YYFOFG
.. section: Build
Remove incorrect uses of recursive make.  Patch by Jonas Wagner.
..
.. bpo: 21958
.. date: 8448
.. nonce: 3rq4qR
.. section: Build
Define HAVE_ROUND when building with Visual Studio 2013 and above.  Patch by
Zachary Turner.
..
.. bpo: 18093
.. date: 8447
.. nonce: gnZieo
.. section: Build
the programs that embed the CPython runtime are now in a separate "Programs"
directory, rather than being kept in the Modules directory.
..
.. bpo: 15759
.. date: 8446
.. nonce: iGLR6O
.. section: Build
"make suspicious", "make linkcheck" and "make doctest" in Doc/ now display
special message when and only when there are failures.
..
.. bpo: 21141
.. date: 8445
.. nonce: 669LzK
.. section: Build
The Windows build process no longer attempts to find Perl, instead relying
on OpenSSL source being configured and ready to build.  The
``PCbuild\build_ssl.py`` script has been re-written and re-named to
``PCbuild\prepare_ssl.py``, and takes care of configuring OpenSSL source for
both 32 and 64 bit platforms.  OpenSSL sources obtained from svn.python.org
will always be pre-configured and ready to build.
..
.. bpo: 21037
.. date: 8444
.. nonce: v1rZzo
.. section: Build
Add a build option to enable AddressSanitizer support.
..
.. bpo: 19962
.. date: 8443
.. nonce: HDlwsE
.. section: Build
The Windows build process now creates "python.bat" in the root of the source
tree, which passes all arguments through to the most recently built
interpreter.
..
.. bpo: 21285
.. date: 8442
.. nonce: cU9p2E
.. section: Build
Refactor and fix curses configure check to always search in a ncursesw
directory.
..
.. bpo: 15234
.. date: 8441
.. nonce: vlM720
.. section: Build
For BerkeleyDB and Sqlite, only add the found library and include directories
if they aren't already being searched. This avoids an explicit runtime
library dependency.
..
.. bpo: 17861
.. date: 8440
.. nonce: jCi44U
.. section: Build
Tools/scripts/generate_opcode_h.py automatically regenerates
Include/opcode.h from Lib/opcode.py if the latter gets any change.
..
.. bpo: 20644
.. date: 8439
.. nonce: aV0zq7
.. section: Build
OS X installer build support for documentation build changes in 3.4.1:
assume externally supplied sphinx-build is available in /usr/bin.
..
.. bpo: 20022
.. date: 8438
.. nonce: EqSCTW
.. section: Build
Eliminate use of deprecated bundlebuilder in OS X builds.
..
.. bpo: 15968
.. date: 8437
.. nonce: vxUxHK
.. section: Build
Incorporated Tcl, Tk, and Tix builds into the Windows build solution.
..
.. bpo: 17095
.. date: 8436
.. nonce: -XEBIU
.. section: Build
Fix Modules/Setup *shared* support.
..
.. bpo: 21811
.. date: 8435
.. nonce: 3_Xyr-
.. section: Build
Anticipated fixes to support OS X versions > 10.9.
..
.. bpo: 21166
.. date: 8434
.. nonce: KAl7aO
.. section: Build
Prevent possible segfaults and other random failures of python
--generate-posix-vars in pybuilddir.txt build target.
..
.. bpo: 18096
.. date: 8433
.. nonce: ELyAUJ
.. section: Build
Fix library order returned by python-config.
..
.. bpo: 17219
.. date: 8432
.. nonce: q8ueQ0
.. section: Build
Add library build dir for Python extension cross-builds.
..
.. bpo: 22919
.. date: 8431
.. nonce: 1XThL9
.. section: Build
Windows build updated to support VC 14.0 (Visual Studio 2015), which will be
used for the official release.
..
.. bpo: 21236
.. date: 8430
.. nonce: 84LXxj
.. section: Build
Build _msi.pyd with cabinet.lib instead of fci.lib
..
.. bpo: 17128
.. date: 8429
.. nonce: U2biLA
.. section: Build
Use private version of OpenSSL for OS X 10.5+ installer.
..
.. bpo: 14203
.. date: 8428
.. nonce: 3hv0TX
.. section: C API
Remove obsolete support for view==NULL in PyBuffer_FillInfo(),
bytearray_getbuffer(), bytesiobuf_getbuffer() and array_buffer_getbuf(). All
functions now raise BufferError in that case.
..
.. bpo: 22445
.. date: 8427
.. nonce: s0AOAS
.. section: C API
PyBuffer_IsContiguous() now implements precise contiguity tests, compatible
with NumPy's NPY_RELAXED_STRIDES_CHECKING compilation flag.  Previously the
function reported false negatives for corner cases.
..
.. bpo: 22079
.. date: 8426
.. nonce: zhs2qM
.. section: C API
PyType_Ready() now checks that statically allocated type has no dynamically
allocated bases.
..
.. bpo: 22453
.. date: 8425
.. nonce: XoO4ns
.. section: C API
Removed non-documented macro PyObject_REPR().
..
.. bpo: 18395
.. date: 8424
.. nonce: YC9B06
.. section: C API
Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, rename
``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these
functions.
..
.. bpo: 21233
.. date: 8423
.. nonce: 98hZAt
.. section: C API
Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(), PyObject_Calloc(),
_PyObject_GC_Calloc(). bytes(int) is now using ``calloc()`` instead of
``malloc()`` for large objects which is faster and use less memory.
..
.. bpo: 20942
.. date: 8422
.. nonce: qHLJ5-
.. section: C API
PyImport_ImportFrozenModuleObject() no longer sets __file__ to match what
importlib does; this affects _frozen_importlib as well as any module loaded
using imp.init_frozen().
..
.. bpo: 19548
.. date: 8421
.. nonce: yOX8sS
.. section: Documentation
Update the codecs module documentation to better cover the distinction
between text encodings and other codecs, together with other clarifications.
Patch by Martin Panter.
..
.. bpo: 22394
.. date: 8420
.. nonce: 6bJywY
.. section: Documentation
Doc/Makefile now supports ``make venv PYTHON=../python`` to create a venv
for generating the documentation, e.g., ``make html
PYTHON=venv/bin/python3``.
..
.. bpo: 21514
.. date: 8419
.. nonce: 1H16T6
.. section: Documentation
The documentation of the json module now refers to new JSON RFC 7159 instead
of obsoleted RFC 4627.
..
.. bpo: 21777
.. date: 8418
.. nonce: dtQCWV
.. section: Documentation
The binary sequence methods on bytes and bytearray are now documented
explicitly, rather than assuming users will be able to derive the expected
behaviour from the behaviour of the corresponding str methods.
..
.. bpo: 6916
.. date: 8417
.. nonce: 4sm3nE
.. section: Documentation
undocument deprecated asynchat.fifo class.
..
.. bpo: 17386
.. date: 8416
.. nonce: ivaGLb
.. section: Documentation
Expanded functionality of the ``Doc/make.bat`` script to make it much more
comparable to ``Doc/Makefile``.
..
.. bpo: 21312
.. date: 8415
.. nonce: 6IqcV4
.. section: Documentation
Update the thread_foobar.h template file to include newer threading APIs.
Patch by Jack McCracken.
..
.. bpo: 21043
.. date: 8414
.. nonce: oEOC8O
.. section: Documentation
Remove the recommendation for specific CA organizations and to mention the
ability to load the OS certificates.
..
.. bpo: 20765
.. date: 8413
.. nonce: Rv3GgV
.. section: Documentation
Add missing documentation for PurePath.with_name() and
PurePath.with_suffix().
..
.. bpo: 19407
.. date: 8412
.. nonce: mRyNnG
.. section: Documentation
New package installation and distribution guides based on the Python
Packaging Authority tools. Existing guides have been retained as legacy
links from the distutils docs, as they still contain some required reference
material for tool developers that isn't recorded anywhere else.
..
.. bpo: 19697
.. date: 8411
.. nonce: 2jMQBP
.. section: Documentation
Document cases where __main__.__spec__ is None.
..
.. bpo: 18982
.. date: 8410
.. nonce: TynSM6
.. section: Tests
Add tests for CLI of the calendar module.
..
.. bpo: 19548
.. date: 8409
.. nonce: 25Kxq_
.. section: Tests
Added some additional checks to test_codecs to ensure that statements in the
updated documentation remain accurate. Patch by Martin Panter.
..
.. bpo: 22838
.. date: 8408
.. nonce: VZBtZg
.. section: Tests
All test_re tests now work with unittest test discovery.
..
.. bpo: 22173
.. date: 8407
.. nonce: dxIIVx
.. section: Tests
Update lib2to3 tests to use unittest test discovery.
..
.. bpo: 16000
.. date: 8406
.. nonce: Y7O6TP
.. section: Tests
Convert test_curses to use unittest.
..
.. bpo: 21456
.. date: 8405
.. nonce: Axsw43
.. section: Tests
Skip two tests in test_urllib2net.py if _ssl module not present. Patch by
Remi Pointel.
..
.. bpo: 20746
.. date: 8404
.. nonce: N2pzAY
.. section: Tests
Fix test_pdb to run in refleak mode (-R).  Patch by Xavier de Gaye.
..
.. bpo: 22060
.. date: 8403
.. nonce: TduJNO
.. section: Tests
test_ctypes has been somewhat cleaned up and simplified; it now uses
unittest test discovery to find its tests.
..
.. bpo: 22104
.. date: 8402
.. nonce: -YYDup
.. section: Tests
regrtest.py no longer holds a reference to the suite of tests loaded from
test modules that don't define test_main().
..
.. bpo: 22111
.. date: 8401
.. nonce: 0XlFAU
.. section: Tests
Assorted cleanups in test_imaplib.  Patch by Milan Oberkirch.
..
.. bpo: 22002
.. date: 8400
.. nonce: jpiaA2
.. section: Tests
Added ``load_package_tests`` function to test.support and used it to
implement/augment test discovery in test_asyncio, test_email,
test_importlib, test_json, and test_tools.
..
.. bpo: 21976
.. date: 8399
.. nonce: Slq6se
.. section: Tests
Fix test_ssl to accept LibreSSL version strings.  Thanks to William Orr.
..
.. bpo: 21918
.. date: 8398
.. nonce: QTFFSj
.. section: Tests
Converted test_tools from a module to a package containing separate test
files for each tested script.
..
.. bpo: 9554
.. date: 8397
.. nonce: VsP0Ve
.. section: Tests
Use modern unittest features in test_argparse. Initial patch by Denver
Coneybeare and Radu Voicilas.
..
.. bpo: 20155
.. date: 8396
.. nonce: nphzS3
.. section: Tests
Changed HTTP method names in failing tests in test_httpservers so that
packet filtering software (specifically Windows Base Filtering Engine) does
not interfere with the transaction semantics expected by the tests.
..
.. bpo: 19493
.. date: 8395
.. nonce: SwbzLQ
.. section: Tests
Refactored the ctypes test package to skip tests explicitly rather than
silently.
..
.. bpo: 18492
.. date: 8394
.. nonce: ylPRU7
.. section: Tests
All resources are now allowed when tests are not run by regrtest.py.
..
.. bpo: 21634
.. date: 8393
.. nonce: Eng06F
.. section: Tests
Fix pystone micro-benchmark: use floor division instead of true division to
benchmark integers instead of floating-point numbers. Set pystone version to
1.2. Patch written by Lennart Regebro.
..
.. bpo: 21605
.. date: 8392
.. nonce: qsLV8d
.. section: Tests
Added tests for Tkinter images.
..
.. bpo: 21493
.. date: 8391
.. nonce: NqhRsy
.. section: Tests
Added test for ntpath.expanduser().  Original patch by Claudiu Popa.
..
.. bpo: 19925
.. date: 8390
.. nonce: dhMx08
.. section: Tests
Added tests for the spwd module. Original patch by Vajrasky Kok.
..
.. bpo: 21522
.. date: 8389
.. nonce: b-VwFW
.. section: Tests
Added Tkinter tests for Listbox.itemconfigure(),
PanedWindow.paneconfigure(), and Menu.entryconfigure().
..
.. bpo: 17756
.. date: 8388
.. nonce: LLfbfU
.. section: Tests
Fix test_code test when run from the installed location.
..
.. bpo: 17752
.. date: 8387
.. nonce: P8iG44
.. section: Tests
Fix distutils tests when run from the installed location.
..
.. bpo: 18604
.. date: 8386
.. nonce: Q00Xrj
.. section: Tests
Consolidated checks for GUI availability.  All platforms now at least check
whether Tk can be instantiated when the GUI resource is requested.
..
.. bpo: 21275
.. date: 8385
.. nonce: lI5FkX
.. section: Tests
Fix a socket test on KFreeBSD.
..
.. bpo: 21223
.. date: 8384
.. nonce: lMY6ka
.. section: Tests
Pass test_site/test_startup_imports when some of the extensions are built as
builtins.
..
.. bpo: 20635
.. date: 8383
.. nonce: mzWmoS
.. section: Tests
Added tests for Tk geometry managers.
..
.. bpo: 0
.. date: 8382
.. nonce: E5XNqr
.. section: Tests
Add test case for freeze.
..
.. bpo: 20743
.. date: 8381
.. nonce: hxZQUf
.. section: Tests
Fix a reference leak in test_tcl.
..
.. bpo: 21097
.. date: 8380
.. nonce: gsUesm
.. section: Tests
Move test_namespace_pkgs into test_importlib.
..
.. bpo: 21503
.. date: 8379
.. nonce: H9TPCg
.. section: Tests
Use test_both() consistently in test_importlib.
..
.. bpo: 20939
.. date: 8378
.. nonce: x3KQ35
.. section: Tests
Avoid various network test failures due to new redirect of
http://www.python.org/ to https://www.python.org: use http://www.example.com
instead.
..
.. bpo: 20668
.. date: 8377
.. nonce: IWjOSC
.. section: Tests
asyncio tests no longer rely on tests.txt file. (Patch by Vajrasky Kok)
..
.. bpo: 21093
.. date: 8376
.. nonce: CcpRim
.. section: Tests
Prevent failures of ctypes test_macholib on OS X if a copy of libz exists in
$HOME/lib or /usr/local/lib.
..
.. bpo: 22770
.. date: 8375
.. nonce: FxAh91
.. section: Tests
Prevent some Tk segfaults on OS X when running gui tests.
..
.. bpo: 23211
.. date: 8374
.. nonce: Bc-QfJ
.. section: Tests
Workaround test_logging failure on some OS X 10.6 systems.
..
.. bpo: 23345
.. date: 8373
.. nonce: HIGBKx
.. section: Tests
Prevent test_ssl failures with large OpenSSL patch level values (like
0.9.8zc).
..
.. bpo: 22314
.. date: 8372
.. nonce: ws6xsH
.. section: Tools/Demos
pydoc now works when the LINES environment variable is set.
..
.. bpo: 22615
.. date: 8371
.. nonce: My3DWN
.. section: Tools/Demos
Argument Clinic now supports the "type" argument for the int converter.
This permits using the int converter with enums and typedefs.
..
.. bpo: 20076
.. date: 8370
.. nonce: ZNuBrC
.. section: Tools/Demos
The makelocalealias.py script no longer ignores UTF-8 mapping.
..
.. bpo: 20079
.. date: 8369
.. nonce: ogPXcK
.. section: Tools/Demos
The makelocalealias.py script now can parse the SUPPORTED file from glibc
sources and supports command line options for source paths.
..
.. bpo: 22201
.. date: 8368
.. nonce: k1Awbh
.. section: Tools/Demos
Command-line interface of the zipfile module now correctly extracts ZIP
files with directory entries.  Patch by Ryan Wilson.
..
.. bpo: 22120
.. date: 8367
.. nonce: KmBUj-
.. section: Tools/Demos
For functions using an unsigned integer return converter, Argument Clinic
now generates a cast to that type for the comparison to -1 in the generated
code.  (This suppresses a compilation warning.)
..
.. bpo: 18974
.. date: 8366
.. nonce: I3DdAo
.. section: Tools/Demos
Tools/scripts/diff.py now uses argparse instead of optparse.
..
.. bpo: 21906
.. date: 8365
.. nonce: ZsKy9v
.. section: Tools/Demos
Make Tools/scripts/md5sum.py work in Python 3. Patch by Zachary Ware.
..
.. bpo: 21629
.. date: 8364
.. nonce: 9kZmQl
.. section: Tools/Demos
Fix Argument Clinic's "--converters" feature.
..
.. bpo: 0
.. date: 8363
.. nonce: _-ge-g
.. section: Tools/Demos
Add support for ``yield from`` to 2to3.
..
.. bpo: 0
.. date: 8362
.. nonce: dpFbyZ
.. section: Tools/Demos
Add support for the :pep:`465` matrix multiplication operator to 2to3.
..
.. bpo: 16047
.. date: 8361
.. nonce: IsgTzm
.. section: Tools/Demos
Fix module exception list and __file__ handling in freeze. Patch by Meador
Inge.
..
.. bpo: 11824
.. date: 8360
.. nonce: OBWc3T
.. section: Tools/Demos
Consider ABI tags in freeze. Patch by Meador Inge.
..
.. bpo: 20535
.. date: 8359
.. nonce: 0qkvZZ
.. section: Tools/Demos
PYTHONWARNING no longer affects the run_tests.py script. Patch by Arfrever
Frehtes Taifersar Arahesis.
..
.. bpo: 23260
.. date: 8358
.. nonce: aZ5VLH
.. section: Windows
Update Windows installer
..
.. bpo: 0
.. date: 8357
.. nonce: _aEUNt
.. section: Windows
The bundled version of Tcl/Tk has been updated to 8.6.3.  The most visible
result of this change is the addition of new native file dialogs when
running on Windows Vista or newer.  See Tcl/Tk's TIP 432 for more
information.  Also, this version of Tcl/Tk includes support for Windows 10.
..
.. bpo: 17896
.. date: 8356
.. nonce: o79rHM
.. section: Windows
The Windows build scripts now expect external library sources to be in
``PCbuild\..\externals`` rather than ``PCbuild\..\..``.
..
.. bpo: 17717
.. date: 8355
.. nonce: y1zoye
.. section: Windows
The Windows build scripts now use a copy of NASM pulled from svn.python.org
to build OpenSSL.
..
.. bpo: 21907
.. date: 8354
.. nonce: jm1smN
.. section: Windows
Improved the batch scripts provided for building Python.
..
.. bpo: 22644
.. date: 8353
.. nonce: gosBki
.. section: Windows
The bundled version of OpenSSL has been updated to 1.0.1j.
..
.. bpo: 10747
.. date: 8352
.. nonce: LTWhLn
.. section: Windows
Use versioned labels in the Windows start menu. Patch by Olive Kilburn.
..
.. bpo: 22980
.. date: 8351
.. nonce: -UypE5
.. section: Windows
.pyd files with a version and platform tag (for example, ".cp35-win32.pyd")
will now be loaded in preference to those without tags.


"""