summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/2.7.1rc1.rst
blob: 8de80ed40e3386f0c5128d6842a4fb4c52f1ff09 (plain)
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
.. bpo: 10221
.. date: 8273
.. nonce: 4NppnX
.. release date: 2010-11-13
.. section: Core and Builtins

dict.pop(k) now has a key error message that includes the missing key (same
message d[k] returns for missing keys).

..

.. bpo: 10125
.. date: 8272
.. nonce: Zs0ZsA
.. section: Core and Builtins

Don't segfault when the iterator passed to ``file.writelines()`` closes the
file.

..

.. bpo: 10186
.. date: 8271
.. nonce: _LgTkO
.. section: Core and Builtins

Fix the SyntaxError caret when the offset is equal to the length of the
offending line.

..

.. bpo: 9997
.. date: 8270
.. nonce: mGq7Dd
.. section: Core and Builtins

Don't let the name "top" have special significance in scope resolution.

..

.. bpo: 9862
.. date: 8269
.. nonce: 18PjRQ
.. section: Core and Builtins

Compensate for broken PIPE_BUF in AIX by hard coding its value as the
default 512 when compiling on AIX.

..

.. bpo: 9675
.. date: 8268
.. nonce: grRY0l
.. section: Core and Builtins

CObject use is marked as a Py3k warning, not a deprecation warning.

..

.. bpo: 10068
.. date: 8267
.. nonce: CYBiNW
.. section: Core and Builtins

Global objects which have reference cycles with their module's dict are now
cleared again. This causes issue #7140 to appear again.

..

.. bpo: 9869
.. date: 8266
.. nonce: gwgHCl
.. section: Core and Builtins

Make long() and PyNumber_Long return something of type long for a class
whose __long__ method returns a plain int.  This fixes an interpreter crash
when initializing an instance of a long subclass from an object whose
__long__ method returns a plain int.

..

.. bpo: 10006
.. date: 8265
.. nonce: QMA2kC
.. section: Core and Builtins

type.__abstractmethods__ now raises an AttributeError.

..

.. bpo: 9797
.. date: 8264
.. nonce: YxisFn
.. section: Core and Builtins

pystate.c wrongly assumed that zero couldn't be a valid thread-local storage
key.

..

.. bpo: 4947
.. date: 8263
.. nonce: abA0AT
.. section: Core and Builtins

The write() method of sys.stdout and sys.stderr uses their encoding and
errors attributes instead of using utf-8 in strict mode, to get the same
behaviour than the print statement.

..

.. bpo: 9737
.. date: 8262
.. nonce: JlusIM
.. section: Core and Builtins

Fix a crash when trying to delete a slice or an item from a memoryview
object.

..

.. bpo: 0
.. date: 8261
.. nonce: MI1h1F
.. section: Core and Builtins

Restore GIL in nis_cat in case of error.

..

.. bpo: 9688
.. date: 8260
.. nonce: PTAKBL
.. section: Core and Builtins

__basicsize__ and __itemsize__ must be accessed as Py_ssize_t.

..

.. bpo: 8530
.. date: 8259
.. nonce: 4OlxZq
.. section: Core and Builtins

Prevent stringlib fastsearch from reading beyond the front of an array.

..

.. bpo: 83755
.. date: 8258
.. nonce: LFoGKM
.. section: Core and Builtins

Implicit set-to-frozenset conversion was not thread-safe.

..

.. bpo: 9416
.. date: 8257
.. nonce: EqecrW
.. section: Core and Builtins

Fix some issues with complex formatting where the output with no type
specifier failed to match the str output:

- format(complex(-0.0, 2.0), '-') omitted the real part from the output,   -
format(complex(0.0, 2.0), '-') included a sign and parentheses.

..

.. bpo: 7616
.. date: 8256
.. nonce: AOGmSj
.. section: Core and Builtins

Fix copying of overlapping memoryview slices with the Intel compiler.

..

.. bpo: 9926
.. date: 8255
.. nonce: J4BGGY
.. section: Library

Wrapped TestSuite subclass does not get __call__ executed

..

.. bpo: 4471
.. date: 8254
.. nonce: ZJDlrs
.. section: Library

Properly shutdown socket in IMAP.shutdown().  Patch by Lorenzo M. Catucci.

..

.. bpo: 10126
.. date: 8253
.. nonce: zvTZV-
.. section: Library

Fix distutils' test_build when Python was built with --enable-shared.

..

.. bpo: 0
.. date: 8252
.. nonce: NFeWRc
.. section: Library

Fix typo in one sdist option (medata-check).

..

.. bpo: 9199
.. date: 8251
.. nonce: 8WF_Pp
.. section: Library

Fix incorrect use of distutils.cmd.Command.announce.

..

.. bpo: 1718574
.. date: 8250
.. nonce: iqLV20
.. section: Library

Fix options that were supposed to accept arguments but did not in
build_clib.

..

.. bpo: 9281
.. date: 8249
.. nonce: 0xYNfM
.. section: Library

Prevent race condition with mkdir in distutils.  Patch by Arfrever.

..

.. bpo: 10229
.. date: 8248
.. nonce: 10oNS7
.. section: Library

Fix caching error in gettext.

..

.. bpo: 10252
.. date: 8247
.. nonce: pGhEYO
.. section: Library

Close file objects in a timely manner in distutils code and tests.  Patch by
Brian Brazil, completed by Éric Araujo.

..

.. bpo: 10311
.. date: 8246
.. nonce: u1t7up
.. section: Library

The signal module now restores errno before returning from its low-level
signal handler.  Patch by Hallvard B Furuseth.

..

.. bpo: 10038
.. date: 8245
.. nonce: 5EKcD7
.. section: Library

json.loads() on str should always return unicode (regression from Python
2.6).  Patch by Walter Dörwald.

..

.. bpo: 120176
.. date: 8244
.. nonce: 9k2NaP
.. section: Library

Wrapped TestSuite subclass does not get __call__ executed.

..

.. bpo: 6706
.. date: 8243
.. nonce: Es-Yrw
.. section: Library

asyncore accept() method no longer raises EWOULDBLOCK/ECONNABORTED on
incomplete connection attempt but returns None instead.

..

.. bpo: 10266
.. date: 8242
.. nonce: BZ9duO
.. section: Library

uu.decode didn't close in_file explicitly when it was given as a filename.
Patch by Brian Brazil.

..

.. bpo: 10246
.. date: 8241
.. nonce: NPG3oL
.. section: Library

uu.encode didn't close file objects explicitly when filenames were given to
it.  Patch by Brian Brazil.

..

.. bpo: 10253
.. date: 8240
.. nonce: TL1F90
.. section: Library

FileIO leaks a file descriptor when trying to open a file for append that
isn't seekable.  Patch by Brian Brazil.

..

.. bpo: 6105
.. date: 8239
.. nonce: qt9xTV
.. section: Library

json.dumps now respects OrderedDict's iteration order.

..

.. bpo: 9295
.. date: 8238
.. nonce: M7y0mB
.. section: Library

Fix a crash under Windows when calling close() on a file object with custom
buffering from two threads at once.

..

.. bpo: 5027
.. date: 8237
.. nonce: 6mYRNc
.. section: Library

The standard ``xml`` namespace is now understood by
xml.sax.saxutils.XMLGenerator as being bound to
http://www.w3.org/XML/1998/namespace.  Patch by Troy J. Farrell.

..

.. bpo: 10163
.. date: 8236
.. nonce: Lrvd6I
.. section: Library

Skip unreadable registry keys during mimetypes initialization.

..

.. bpo: 5117
.. date: 8235
.. nonce: FzD7qd
.. section: Library

Fixed root directory related issue on posixpath.relpath() and
ntpath.relpath().

..

.. bpo: 9409
.. date: 8234
.. nonce: HRnhHT
.. section: Library

Fix the regex to match all kind of filenames, for interactive debugging in
doctests.

..

.. bpo: 6612
.. date: 8233
.. nonce: qaqnnh
.. section: Library

Fix site and sysconfig to catch os.getcwd() error, eg. if the current
directory was deleted. Patch written by W. Trevor King.

..

.. bpo: 10045
.. date: 8232
.. nonce: iz6KpQ
.. section: Library

Improved performance when writing after seeking past the end of the "file"
in cStringIO.

..

.. bpo: 9948
.. date: 8231
.. nonce: FOv8kp
.. section: Library

Fixed problem of losing filename case information.

..

.. bpo: 9437
.. date: 8230
.. nonce: a95HEb
.. section: Library

Fix building C extensions with non-default LDFLAGS.

..

.. bpo: 9759
.. date: 8229
.. nonce: aGsQic
.. section: Library

GzipFile now raises ValueError when an operation is attempted after the file
is closed.  Patch by Jeffrey Finkelstein.

..

.. bpo: 9042
.. date: 8228
.. nonce: dQTK_C
.. section: Library

Fix interaction of custom translation classes and caching in gettext.

..

.. bpo: 9065
.. date: 8227
.. nonce: PTsv6_
.. section: Library

tarfile no longer uses "root" as the default for the uname and gname field.

..

.. bpo: 1050268
.. date: 8226
.. nonce: oOtGVD
.. section: Library

parseaddr now correctly quotes double quote and backslash characters that
appear inside quoted strings in email addresses.

..

.. bpo: 10004
.. date: 8225
.. nonce: NTY_zM
.. section: Library

quoprimime no longer generates a traceback when confronted with invalid
characters after '=' in a Q-encoded word.

..

.. bpo: 9950
.. date: 8224
.. nonce: omOgj_
.. section: Library

Fix socket.sendall() crash or misbehaviour when a signal is received.  Now
sendall() properly calls signal handlers if necessary, and retries sending
if these returned successfully, including on sockets with a timeout.

..

.. bpo: 9947
.. date: 8223
.. nonce: YCbARo
.. section: Library

logging: Fixed locking bug in stopListening.

..

.. bpo: 9945
.. date: 8222
.. nonce: DTIygY
.. section: Library

logging: Fixed locking bugs in addHandler/removeHandler.

..

.. bpo: 9936
.. date: 8221
.. nonce: evd1vv
.. section: Library

Fixed executable lines' search in the trace module.

..

.. bpo: 9928
.. date: 8220
.. nonce: S5LHD8
.. section: Library

Properly initialize the types exported by the bz2 module.

..

.. bpo: 9854
.. date: 8219
.. nonce: DxDKln
.. section: Library

The default read() implementation in io.RawIOBase now handles non-blocking
readinto() returning None correctly.

..

.. bpo: 9729
.. date: 8218
.. nonce: mSCrBH
.. section: Library

Fix the signature of SSLSocket.recvfrom() and SSLSocket.sendto() to match
the corresponding socket methods.  Also, fix various SSLSocket methods to
raise socket.error rather than an unhelpful TypeError when called on an
unconnected socket.  Original patch by Andrew Bennetts.

..

.. bpo: 9826
.. date: 8217
.. nonce: OHvlzj
.. section: Library

OrderedDict.__repr__ can now handle self-referential values:   d['x'] = d.

..

.. bpo: 767645
.. date: 8216
.. nonce: YgbDPp
.. section: Library

Set os.path.supports_unicode_filenames to True on Mac OS X.

..

.. bpo: 9837
.. date: 8215
.. nonce: EZowT2
.. section: Library

The read() method of ZipExtFile objects (as returned by ZipFile.open())
could return more bytes than requested.

..

.. bpo: 9825
.. date: 8214
.. nonce: MVYNUl
.. section: Library

removed __del__ from the definition of collections.OrderedDict. This
prevents user-created self-referencing ordered dictionaries from becoming
permanently uncollectable GC garbage.  The downside is that removing __del__
means that the internal doubly-linked list has to wait for GC collection
rather than freeing memory immediately when the refcnt drops to zero.

..

.. bpo: 9816
.. date: 8213
.. nonce: jOgfeD
.. section: Library

random.Random.jumpahead(n) did not produce a sufficiently different internal
state for small values of n.  Fixed by salting the value.

..

.. bpo: 9792
.. date: 8212
.. nonce: 6d8KN7
.. section: Library

In case of connection failure, socket.create_connection() would swallow the
exception and raise a new one, making it impossible to fetch the original
errno, or to filter timeout errors.  Now the original error is re-raised.

..

.. bpo: 9758
.. date: 8211
.. nonce: bTCX3s
.. section: Library

When fcntl.ioctl() was called with mutable_flag set to True, and the passed
buffer was exactly 1024 bytes long, the buffer wouldn't be updated back
after the system call.  Original patch by Brian Brazil.

..

.. bpo: 1100562
.. date: 8210
.. nonce: w61Crx
.. section: Library

Fix deep-copying of objects derived from the list and dict types.  Patch by
Michele Orrù and Björn Lindqvist.

..

.. bpo: 7005
.. date: 8209
.. nonce: MVOzyL
.. section: Library

Fixed output of None values for RawConfigParser.write and
ConfigParser.write.

..

.. bpo: 808164
.. date: 8208
.. nonce: P5YO_B
.. section: Library

Fixed socket.close to avoid references to globals, to avoid issues when
socket.close is called from a __del__ method.

..

.. bpo: 2986
.. date: 8207
.. nonce: BeBn_s
.. section: Library

difflib.SequenceMatcher gets a new parameter, autojunk, which can be set to
False to turn off the previously undocumented 'popularity' heuristic. Patch
by Terry Reedy and Eli Bendersky

..

.. bpo: 8797
.. date: 8206
.. nonce: IkQxYA
.. section: Library

urllib2 does a retry for Basic Authentication failure instead of falling
into recursion.

..

.. bpo: 1194222
.. date: 8205
.. nonce: UXCJLq
.. section: Library

email.utils.parsedate now returns RFC2822 compliant four character years
even if the message contains RFC822 two character years.

..

.. bpo: 8750
.. date: 8204
.. nonce: ldqODt
.. section: Library

Fixed MutableSet's methods to correctly handle reflexive operations, namely
x -= x and x ^= x.

..

.. bpo: 9129
.. date: 8203
.. nonce: AYXAAf
.. section: Library

smtpd.py is vulnerable to DoS attacks deriving from missing error handling
when accepting a new connection.

..

.. bpo: 658749
.. date: 8202
.. nonce: THL2I_
.. section: Library

asyncore's connect() method now correctly interprets winsock errors.

..

.. bpo: 9501
.. date: 8201
.. nonce: G-M-pc
.. section: Library

Fixed logging regressions in cleanup code.

..

.. bpo: 9214
.. date: 8200
.. nonce: j1o-Zo
.. section: Library

Set operations on KeysView or ItemsView in the collections module now
correctly return a set.  (Patch by Eli Bendersky.)

..

.. bpo: 9617
.. date: 8199
.. nonce: blJoL4
.. section: Library

Signals received during a low-level write operation aren't ignored by the
buffered IO layer anymore.

..

.. bpo: 2521
.. date: 8198
.. nonce: iTl7ZU
.. section: Library

Use weakrefs on for caching in the abc module, so that classes are not held
onto after they are deleted elsewhere.

..

.. bpo: 9626
.. date: 8197
.. nonce: Vowb6X
.. section: Library

the view methods for collections.OrderedDict() were returning the unordered
versions inherited from dict.  Those methods are now overridden to provide
ordered views.

..

.. bpo: 8688
.. date: 8196
.. nonce: fFdtWn
.. section: Library

MANIFEST files created by distutils now include a magic comment indicating
they are generated.  Manually maintained MANIFESTs without this marker will
not be overwritten or removed.

..

.. bpo: 7467
.. date: 8195
.. nonce: 2aq5Vk
.. section: Library

when reading a file from a ZIP archive, its CRC is checked and a BadZipfile
error is raised if it doesn't match (as used to be the case in Python 2.5
and earlier).

..

.. bpo: 9550
.. date: 8194
.. nonce: gz0PSS
.. section: Library

a BufferedReader could issue an additional read when the original read
request had been satisfied, which could block indefinitely when the
underlying raw IO channel was e.g. a socket.  Report and original patch by
Jason V. Miller.

..

.. bpo: 9551
.. date: 8193
.. nonce: 2q2VFJ
.. section: Library

Don't raise TypeError when setting the value to None for SafeConfigParser
instances constructed with allow_no_value == True.

..

.. bpo: 6915
.. date: 8192
.. nonce: Nh2L6-
.. section: Library

Under Windows, os.listdir() didn't release the Global Interpreter Lock
around all system calls.  Original patch by Ryan Kelly.

..

.. bpo: 3757
.. date: 8191
.. nonce: Dfue1t
.. section: Library

thread-local objects now support cyclic garbage collection. Thread-local
objects involved in reference cycles will be deallocated timely by the
cyclic GC, even if the underlying thread is still running.

..

.. bpo: 6231
.. date: 8190
.. nonce: fvS6jF
.. section: Library

Fix xml.etree.ElementInclude to include the tail of the current node.

..

.. bpo: 6869
.. date: 8189
.. nonce: SI1hyJ
.. section: Library

Fix a refcount problem in the _ctypes extension.

..

.. bpo: 5504
.. date: 8188
.. nonce: DyvVKo
.. section: Library

ctypes should now work with systems where mmap can't be PROT_WRITE and
PROT_EXEC.

..

.. bpo: 8280
.. date: 8187
.. nonce: PrpMXx
.. section: Library

urllib2's Request method will remove fragements in the url. This is how it
is supposed to work, wget and curl do the same.  Previous behavior was
wrong.

..

.. bpo: 2944
.. date: 8186
.. nonce: uva4MG
.. section: Library

asyncore doesn't handle connection refused correctly.

..

.. bpo: 3196
.. date: 8185
.. nonce: oFknaj
.. section: Library

email header decoding is now forgiving if an RFC2047 encoded word encoded in
base64 is lacking padding.

..

.. bpo: 9444
.. date: 8184
.. nonce: KdKxOB
.. section: Library

Argparse now uses the first element of prefix_chars as the option character
for the added 'h/help' option if prefix_chars does not contain a '-',
instead of raising an error.

..

.. bpo: 9354
.. date: 8183
.. nonce: 4mGRrJ
.. section: Library

Provide getsockopt() in asyncore's file_wrapper.

..

.. bpo: 9428
.. date: 8182
.. nonce: 0pea6y
.. section: Library

Fix running scripts with the profile/cProfile modules from the command line.

..

.. bpo: 7781
.. date: 8181
.. nonce: qJIM6S
.. section: Library

Fix restricting stats by entry counts in the pstats interactive browser.

..

.. bpo: 9209
.. date: 8180
.. nonce: q5h2aM
.. section: Library

Do not crash in the pstats interactive browser on invalid regular
expressions.

..

.. bpo: 7372
.. date: 8179
.. nonce: bjWkFm
.. section: Library

Fix pstats regression when stripping paths from profile data generated with
the profile module.

..

.. bpo: 4108
.. date: 8178
.. nonce: SGW4tp
.. section: Library

In urllib.robotparser, if there are multiple 'User-agent: *' entries,
consider the first one.

..

.. bpo: 8397
.. date: 8177
.. nonce: xNl1c0
.. section: Library

Raise an error when attempting to mix iteration and regular reads on a
BZ2File object, rather than returning incorrect results.

..

.. bpo: 5294
.. date: 8176
.. nonce: OW1qhg
.. section: Library

Fix the behavior of pdb's "continue" command when called in the top-level
debugged frame.

..

.. bpo: 5727
.. date: 8175
.. nonce: sYm_N8
.. section: Library

Restore the ability to use readline when calling into pdb in doctests.

..

.. bpo: 6719
.. date: 8174
.. nonce: _9t4CD
.. section: Library

In pdb, do not stop somewhere in the encodings machinery if the source file
to be debugged is in a non-builtin encoding.

..

.. bpo: 8048
.. date: 8173
.. nonce: UMKE5S
.. section: Library

Prevent doctests from failing when sys.displayhook has been reassigned.

..

.. bpo: 8015
.. date: 8172
.. nonce: YNaP75
.. section: Library

In pdb, do not crash when an empty line is entered as a breakpoint command.

..

.. bpo: 9448
.. date: 8171
.. nonce: UD0blh
.. section: Library

Fix a leak of OS resources (mutexes or semaphores) when re-initializing a
buffered IO object by calling its ``__init__`` method.

..

.. bpo: 7909
.. date: 8170
.. nonce: KNWthV
.. section: Library

Do not touch paths with the special prefixes ``\\.\`` or ``\\?\`` in
ntpath.normpath().

..

.. bpo: 5146
.. date: 8169
.. nonce: f9NwCU
.. section: Library

Handle UID THREAD command correctly in imaplib.

..

.. bpo: 5147
.. date: 8168
.. nonce: ANusbF
.. section: Library

Fix the header generated for cookie files written by
http.cookiejar.MozillaCookieJar.

..

.. bpo: 8198
.. date: 8167
.. nonce: WrGm2c
.. section: Library

In pydoc, output all help text to the correct stream when sys.stdout is
reassigned.

..

.. bpo: 7395
.. date: 8166
.. nonce: FkZk7v
.. section: Library

Fix tracebacks in pstats interactive browser.

..

.. bpo: 8230
.. date: 8165
.. nonce: pBkzM8
.. section: Library

Fix Lib/test/sortperf.py.

..

.. bpo: 1713
.. date: 8164
.. nonce: fknkI-
.. section: Library

Fix os.path.ismount(), which returned true for symbolic links across
devices.

..

.. bpo: 8826
.. date: 8163
.. nonce: PcQ9NA
.. section: Library

Properly load old-style "expires" attribute in http.cookies.

..

.. bpo: 1690103
.. date: 8162
.. nonce: 5tT47_
.. section: Library

Fix initial namespace for code run with trace.main().

..

.. bpo: 8471
.. date: 8161
.. nonce: RqN6fc
.. section: Library

In doctest, properly reset the output stream to an empty string when Unicode
was previously output.

..

.. bpo: 8620
.. date: 8160
.. nonce: qQR7E1
.. section: Library

when a Cmd is fed input that reaches EOF without a final newline, it no
longer truncates the last character of the last command line.

..

.. bpo: 6213
.. date: 8159
.. nonce: oyAtZ0
.. section: Library

Implement getstate() and setstate() methods of utf-8-sig and utf-16
incremental encoders.

..

.. bpo: 7113
.. date: 8158
.. nonce: vO-_y8
.. section: Library

Speed up loading in ConfigParser. Patch by Łukasz Langa.

..

.. bpo: 3704
.. date: 8157
.. nonce: UbuUn3
.. section: Library

cookielib was not properly handling URLs with a / in the parameters.

..

.. bpo: 9032
.. date: 8156
.. nonce: zX39th
.. section: Library

XML-RPC client retries the request on EPIPE error. The EPIPE error occurs
when the server closes the socket and the client sends a big XML-RPC
request.

..

.. bpo: 5542
.. date: 8155
.. nonce: v5vo1o
.. section: Library

Remove special logic that closes HTTPConnection socket on EPIPE.

..

.. bpo: 4629
.. date: 8154
.. nonce: warUcf
.. section: Library

getopt raises an error if an argument ends with = whereas getopt doesn't
except a value (eg. --help= is rejected if getopt uses ['help='] long
options).

..

.. bpo: 7895
.. date: 8153
.. nonce: citB4G
.. section: Library

platform.mac_ver() no longer crashes after calling os.fork()

..

.. bpo: 5395
.. date: 8152
.. nonce: _AaZih
.. section: Library

array.fromfile() would raise a spurious EOFError when an I/O error occurred.
Now an IOError is raised instead.  Patch by chuck (Jan Hosang).

..

.. bpo: 7646
.. date: 8151
.. nonce: af6LG8
.. section: Library

The fnmatch pattern cache no longer grows without bound.

..

.. bpo: 9136
.. date: 8150
.. nonce: GFQg0c
.. section: Library

Fix 'dictionary changed size during iteration' RuntimeError produced when
profiling the decimal module.  This was due to a dangerous iteration over
'locals()' in Context.__init__.

..

.. bpo: 0
.. date: 8149
.. nonce: aX1_fT
.. section: Library

Fix extreme speed issue in Decimal.pow when the base is an exact power of 10
and the exponent is tiny (for example, Decimal(10) **
Decimal('1e-999999999')).

..

.. bpo: 9161
.. date: 8148
.. nonce: 8Az_aI
.. section: Library

Fix regression in optparse's acceptance of unicode strings in add_option
calls.

..

.. bpo: 9130
.. date: 8147
.. nonce: cB_z-D
.. section: Library

Fix validation of relative imports in parser module.

..

.. bpo: 9128
.. date: 8146
.. nonce: 2OKBVh
.. section: Library

Fix validation of class decorators in parser module.

..

.. bpo: 9164
.. date: 8145
.. nonce: SK5COV
.. section: Library

Ensure sysconfig handles dupblice archs while building on OSX

..

.. bpo: 9315
.. date: 8144
.. nonce: cZkTvS
.. section: Library

Fix for the trace module to record correct class name for tracing methods.

..

.. bpo: 9054
.. date: 8143
.. nonce: UkA-OR
.. section: Library

Fix a crash occurring when using the pyexpat module with expat version
2.0.1.

..

.. bpo: 10003
.. date: 8142
.. nonce: AzaOdd
.. section: Library

Allow handling of SIGBREAK on Windows. Fixes a regression introduced by
issue #9324.

..

.. bpo: 8734
.. date: 8141
.. nonce: f1CtFi
.. section: Library

Avoid crash in msvcrt.get_osfhandle() when an invalid file descriptor is
provided.  Patch by Pascal Chambon.

..

.. bpo: 7736
.. date: 8140
.. nonce: 7n0AS1
.. section: Library

Release the GIL around calls to opendir() and closedir() in the posix
module.  Patch by Marcin Bachry.

..

.. bpo: 0
.. date: 8139
.. nonce: Z5wyzY
.. section: Library

As a result of issue #2521, the _weakref module is now compiled into the
interpreter by default.

..

.. bpo: 9324
.. date: 8138
.. nonce: c_m8af
.. section: Library

Add parameter validation to signal.signal on Windows in order to prevent
crashes.

..

.. bpo: 9526
.. date: 8137
.. nonce: 8aO189
.. section: Library

Remove some outdated (int) casts that were preventing the array module from
working correctly with arrays of more than 2**31 elements.

..

.. bpo: 0
.. date: 8136
.. nonce: yfc3zR
.. section: Library

Fix memory leak in ssl._ssl._test_decode_cert.

..

.. bpo: 8065
.. date: 8135
.. nonce: c5wBHe
.. section: Library

Fix memory leak in readline module (from failure to free the result of
history_get_history_state()).

..

.. bpo: 9450
.. date: 8134
.. nonce: 16iwLn
.. section: Library

Fix memory leak in readline.replace_history_item and
readline.remove_history_item for readline version >= 5.0.

..

.. bpo: 8105
.. date: 8133
.. nonce: GM5E7v
.. section: Library

Validate file descriptor passed to mmap.mmap on Windows.

..

.. bpo: 1019882
.. date: 8132
.. nonce: VnQ_2J
.. section: Library

Fix IndexError when loading certain hotshot stats.

..

.. bpo: 9422
.. date: 8131
.. nonce: MWxuZj
.. section: Library

Fix memory leak when re-initializing a struct.Struct object.

..

.. bpo: 7900
.. date: 8130
.. nonce: s8mvNz
.. section: Library

The getgroups(2) system call on MacOSX behaves rather oddly compared to
other unix systems. In particular, os.getgroups() does not reflect any
changes made using os.setgroups() but basically always returns the same
information as the id command.

os.getgroups() can now return more than 16 groups on MacOSX.

..

.. bpo: 9277
.. date: 8129
.. nonce: yRnO3Z
.. section: Library

Fix bug in struct.pack for bools in standard mode (e.g., struct.pack('>?')):
if conversion to bool raised an exception then that exception wasn't
properly propagated on machines where char is unsigned.

..

.. bpo: 7567
.. date: 8128
.. nonce: hujTBu
.. section: Library

Don't call `setupterm' twice.

..

.. bpo: 7287
.. date: 8127
.. nonce: 6G503Q
.. section: Tools/Demos

Demo/imputil/knee.py was removed.

..

.. bpo: 9188
.. date: 8126
.. nonce: XIcIjV
.. section: Tools/Demos

The gdb extension now handles correctly narrow (UCS2) as well as wide (UCS4)
unicode builds for both the host interpreter (embedded inside gdb) and the
interpreter under test.

..

.. bpo: 8852
.. date: 8125
.. nonce: WD9-r5
.. section: Build

Allow the socket module to build on OpenSolaris.

..

.. bpo: 10054
.. date: 8124
.. nonce: Pi5IJn
.. section: Build

Some platforms provide uintptr_t in inttypes.h.  Patch by Akira Kitada.

..

.. bpo: 10055
.. date: 8123
.. nonce: xfTPZn
.. section: Build

Make json C89-compliant in UCS4 mode.

..

.. bpo: 1633863
.. date: 8122
.. nonce: 08O8Og
.. section: Build

Don't ignore $CC under AIX.

..

.. bpo: 9810
.. date: 8121
.. nonce: JACTWC
.. section: Build

Compile bzip2 source files in python's project file directly. It used to be
built with bzip2's makefile.

..

.. bpo: 941346
.. date: 8120
.. nonce: 4aE21V
.. section: Build

Improve the build process under AIX and allow Python to be built as a shared
library.  Patch by Sébastien Sablé.

..

.. bpo: 4026
.. date: 8119
.. nonce: 2Kz_uL
.. section: Build

Make the fcntl extension build under AIX.  Patch by Sébastien Sablé.

..

.. bpo: 3101
.. date: 8118
.. nonce: zq3p0s
.. section: Build

Helper functions _add_one_to_index_C() and _add_one_to_index_F() become
_Py_add_one_to_index_C() and _Py_add_one_to_index_F(), respectively.

..

.. bpo: 9700
.. date: 8117
.. nonce: tC4cof
.. section: Build

define HAVE_BROKEN_POSIX_SEMAPHORES under AIX 6.x.  Patch by Sébastien
Sablé.

..

.. bpo: 9280
.. date: 8116
.. nonce: 2PISFF
.. section: Build

Make sharedinstall depend on sharedmods.

..

.. bpo: 9275
.. date: 8115
.. nonce: DcFin-
.. section: Build

The OSX installer once again installs links to binaries in
``/usr/local/bin``.

..

.. bpo: 9392
.. date: 8114
.. nonce: aY7w6w
.. section: Build

A framework build on OSX will once again use a versioned name of the
``2to3`` tool, that is you can use ``2to3-2.7`` to select the Python 2.7
edition of 2to3.

..

.. bpo: 9701
.. date: 8113
.. nonce: hgaEU8
.. section: Build

The MacOSX installer can patch the shell profile to ensure that the "bin"
directory inside the framework is on the shell's search path. This feature
now also supports the ZSH shell.

..

.. bpo: 7473
.. date: 8112
.. nonce: NuS196
.. section: Build

avoid link errors when building a framework with a different set of
architectures than the one that is currently installed.

..

.. bpo: 9978
.. date: 8111
.. nonce: PgNzKW
.. section: Tests

Wait until subprocess completes initialization. (Win32KillTests in test_os)

..

.. bpo: 9894
.. date: 8110
.. nonce: 9cw69_
.. section: Tests

Do not hardcode ENOENT in test_subprocess.

..

.. bpo: 9323
.. date: 8109
.. nonce: qAJ8-i
.. section: Tests

Make test.regrtest.__file__ absolute, this was not always the case when
running profile or trace, for example.

..

.. bpo: 9315
.. date: 8108
.. nonce: f1i0qq
.. section: Tests

Added tests for the trace module.  Patch by Eli Bendersky.

..

.. bpo: 0
.. date: 8107
.. nonce: AVwNn9
.. section: Tests

Strengthen test_unicode with explicit type checking for assertEqual tests.

..

.. bpo: 8857
.. date: 8106
.. nonce: Hy6Qmf
.. section: Tests

Provide a test case for socket.getaddrinfo.

..

.. bpo: 7564
.. date: 8105
.. nonce: ps-pN3
.. section: Tests

Skip test_ioctl if another process is attached to /dev/tty.

..

.. bpo: 8433
.. date: 8104
.. nonce: kMuB7u
.. section: Tests

Fix test_curses failure with newer versions of ncurses.

..

.. bpo: 9496
.. date: 8103
.. nonce: UDIGR0
.. section: Tests

Provide a test suite for the rlcompleter module.  Patch by Michele Orrù.

..

.. bpo: 8605
.. date: 8102
.. nonce: jxIp6Y
.. section: Tests

Skip test_gdb if Python is compiled with optimizations.

..

.. bpo: 9568
.. date: 8101
.. nonce: OoJYE5
.. section: Tests

Fix test_urllib2_localnet on OS X 10.3.

..

.. bpo: 9817
.. date: 8100
.. nonce: sk3Q3T
.. section: Documentation

Add expat COPYING file; add expat, libffi and expat licenses to
Doc/license.rst.

..

.. bpo: 9524
.. date: 8099
.. nonce: Es25xw
.. section: Documentation

Document that two CTRL* signals are meant for use only with os.kill.

..

.. bpo: 9255
.. date: 8098
.. nonce: tp81US
.. section: Documentation

Document that the 'test' package is for internal Python use only.

..

.. bpo: 7829
.. date: 8097
.. nonce: o1BLF0
.. section: Documentation

Document in dis that bytecode is an implementation detail.