summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/2.7.2rc1.rst
blob: 8d55be5702a9f06cf1363de18ef0f475119f2b7e (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
.. bpo: 9670
.. date: 8461
.. nonce: D4p50W
.. release date: 2011-05-29
.. section: Core and Builtins

Increase the default stack size for secondary threads on Mac OS X and
FreeBSD to reduce the chances of a crash instead of a "maximum recursion
depth" RuntimeError exception. (patch by Ronald Oussoren)

..

.. bpo: 0
.. date: 8460
.. nonce: w122h9
.. section: Core and Builtins

Correct lookup of __dir__ on objects. This allows old-style classes to have
__dir__. It also causes errors besides AttributeError found on lookup to be
propagated.

..

.. bpo: 1195
.. date: 8459
.. nonce: rUvlec
.. section: Core and Builtins

Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear the
end-of-file indicator after CTRL+d.

..

.. bpo: 8651
.. date: 8458
.. nonce: KT0VWy
.. section: Core and Builtins

PyArg_Parse*() functions raise an OverflowError if the file doesn't have
PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length bigger
than 2^31-1 bytes).

..

.. bpo: 8651
.. date: 8457
.. nonce: d-KV9c
.. section: Core and Builtins

Fix "z#" format of PyArg_Parse*() function: the size was not written if
PY_SSIZE_T_CLEAN is defined.

..

.. bpo: 9756
.. date: 8456
.. nonce: L962XN
.. section: Core and Builtins

When calling a method descriptor or a slot wrapper descriptor, the check of
the object type doesn't read the __class__ attribute anymore. Fix a crash if
a class override its __class__ attribute (e.g. a proxy of the str type).
Patch written by Andreas Stührk.

..

.. bpo: 10517
.. date: 8455
.. nonce: eHRgPe
.. section: Core and Builtins

After fork(), reinitialize the TLS used by the PyGILState_* APIs, to avoid a
crash with the pthread implementation in RHEL 5.  Patch by Charles-François
Natali.

..

.. bpo: 6780
.. date: 8454
.. nonce: MS1yFK
.. section: Core and Builtins

fix starts/endswith error message to mention that tuples are accepted too.

..

.. bpo: 5057
.. date: 8453
.. nonce: BMmS2n
.. section: Core and Builtins

fix a bug in the peepholer that led to non-portable pyc files between narrow
and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g.
u"\U00012345"[0]).

..

.. bpo: 11650
.. date: 8452
.. nonce: r47Jvk
.. section: Core and Builtins

PyOS_StdioReadline() retries fgets() if it was interrupted (EINTR), for
example if the program is stopped with CTRL+z on Mac OS X. Patch written by
Charles-Francois Natali.

..

.. bpo: 11144
.. date: 8451
.. nonce: FE1cYC
.. section: Core and Builtins

Ensure that int(a_float) returns an int whenever possible. Previously, there
were some corner cases where a long was returned even though the result was
within the range of an int.

..

.. bpo: 11450
.. date: 8450
.. nonce: ulI9xJ
.. section: Core and Builtins

Don't truncate hg version info in Py_GetBuildInfo() when there are many tags
(e.g. when using mq).  Patch by Nadeem Vawda.

..

.. bpo: 10451
.. date: 8449
.. nonce: wlYiI8
.. section: Core and Builtins

memoryview objects could allow mutating a readable buffer. Initial patch by
Ross Lagerwall.

..

.. bpo: 10892
.. date: 8448
.. nonce: ATjwD_
.. section: Core and Builtins

Don't segfault when trying to delete __abstractmethods__ from a class.

..

.. bpo: 8020
.. date: 8447
.. nonce: aERuZE
.. section: Core and Builtins

Avoid a crash where the small objects allocator would read non-Python
managed memory while it is being modified by another thread. Patch by Matt
Bandy.

..

.. bpo: 11004
.. date: 8446
.. nonce: 2Wj4t8
.. section: Core and Builtins

Repaired edge case in deque.count().

..

.. bpo: 8278
.. date: 8445
.. nonce: 8P-kMi
.. section: Core and Builtins

On Windows and with a NTFS filesystem, os.stat() and os.utime() can now
handle dates after 2038.

..

.. bpo: 4236
.. date: 8444
.. nonce: kMjQK6
.. section: Core and Builtins

Py_InitModule4 now checks the import machinery directly rather than the
Py_IsInitialized flag, avoiding a Fatal Python error in certain
circumstances when an import is done in __del__.

..

.. bpo: 11828
.. date: 8443
.. nonce: nBlnst
.. section: Core and Builtins

startswith and endswith don't accept None as slice index. Patch by Torsten
Becker.

..

.. bpo: 10674
.. date: 8442
.. nonce: ZNFQ1f
.. section: Core and Builtins

Remove unused 'dictmaker' rule from grammar.

..

.. bpo: 10596
.. date: 8441
.. nonce: r05xzm
.. section: Core and Builtins

Fix float.__mod__ to have the same behaviour as float.__divmod__ with
respect to signed zeros.  -4.0 % 4.0 should be 0.0, not -0.0.

..

.. bpo: 11386
.. date: 8440
.. nonce: wrrB8K
.. section: Core and Builtins

bytearray.pop() now throws IndexError when the bytearray is empty, instead
of OverflowError.

..

.. bpo: 12161
.. date: 8439
.. nonce: CmDpNV
.. section: Library

Cause StringIO.getvalue() to raise a ValueError when used on a closed
StringIO instance.

..

.. bpo: 12182
.. date: 8438
.. nonce: IWruZQ
.. section: Library

Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true) division
(python -Qnew). Patch written by Ralf W. Grosse-Kunstleve.

..

.. bpo: 12175
.. date: 8437
.. nonce: 9M55CV
.. section: Library

RawIOBase.readall() now returns None if read() returns None.

..

.. bpo: 12175
.. date: 8436
.. nonce: U3k4iw
.. section: Library

FileIO.readall() now raises a ValueError instead of an IOError if the file
is closed.

..

.. bpo: 1441530
.. date: 8435
.. nonce: pSlnFk
.. section: Library

In imaplib, use makefile() to wrap the SSL socket to avoid heap
fragmentation and MemoryError with some malloc implementations.

..

.. bpo: 12100
.. date: 8434
.. nonce: 4sb-gJ
.. section: Library

Don't reset incremental encoders of CJK codecs at each call to their
encode() method anymore, but continue to call the reset() method if the
final argument is True.

..

.. bpo: 12124
.. date: 8433
.. nonce: qpMI7g
.. section: Library

zipimport doesn't keep a reference to zlib.decompress() anymore to be able
to unload the module.

..

.. bpo: 10154
.. date: 8432
.. nonce: 4iPVr8
.. section: Library

change the normalization of UTF-8 to "UTF-8" instead of "UTF8" in the locale
module as the latter is not supported MacOSX and OpenBSD. (See also:
bpo-10090)

..

.. bpo: 9516
.. date: 8431
.. nonce: WLkxuC
.. section: Library

avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell.

..

.. bpo: 12050
.. date: 8430
.. nonce: v6HF9i
.. section: Library

zlib.decompressobj().decompress() now clears the unconsumed_tail attribute
when called without a max_length argument.

..

.. bpo: 12062
.. date: 8429
.. nonce: fUVuyO
.. section: Library

In the `io` module, fix a flushing bug when doing a certain type of I/O
sequence on a file opened in read+write mode (namely: reading, seeking a bit
forward, writing, then seeking before the previous write but still within
buffered data, and writing again).

..

.. bpo: 8498
.. date: 8428
.. nonce: XooGVI
.. section: Library

In socket.accept(), allow specifying 0 as a backlog value in order to accept
exactly one connection.  Patch by Daniel Evers.

..

.. bpo: 12012
.. date: 8427
.. nonce: raFUoR
.. section: Library

ssl.PROTOCOL_SSLv2 becomes optional.

..

.. bpo: 11927
.. date: 8426
.. nonce: UqvRAV
.. section: Library

SMTP_SSL now uses port 465 by default as documented.  Patch by Kasun Herath.

..

.. bpo: 11999
.. date: 8425
.. nonce: aLa-HD
.. section: Library

fixed sporadic sync failure mailbox.Maildir due to its trying to detect
mtime changes by comparing to the system clock instead of to the previous
value of the mtime.

..

.. bpo: 10684
.. date: 8424
.. nonce: Ctye6o
.. section: Library

shutil.move used to delete a folder on case insensitive filesystems when the
source and destination name where the same except for the case.

..

.. bpo: 11982
.. date: 8423
.. nonce: 4CiHRO
.. section: Library

fix json.loads('""') to return u'' rather than ''.

..

.. bpo: 11277
.. date: 8422
.. nonce: 4nCUxv
.. section: Library

mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a mmap
bug with sparse files. Patch written by Steffen Daode Nurpmeso.

..

.. bpo: 10761
.. date: 8421
.. nonce: rwSQE7
.. section: Library

Fix tarfile.extractall failure when symlinked files are present. Initial
patch by Scott Leerssen.

..

.. bpo: 11763
.. date: 8420
.. nonce: LPGrnG
.. section: Library

don't use difflib in TestCase.assertMultiLineEqual if the strings are too
long.

..

.. bpo: 11236
.. date: 8419
.. nonce: DyWdnL
.. section: Library

getpass.getpass responds to ctrl-c or ctrl-z on terminal.

..

.. bpo: 11768
.. date: 8418
.. nonce: HRg5Hy
.. section: Library

The signal handler of the signal module only calls Py_AddPendingCall() for
the first signal to fix a deadlock on reentrant or parallel calls.
PyErr_SetInterrupt() writes also into the wake up file.

..

.. bpo: 11875
.. date: 8417
.. nonce: xFn-yD
.. section: Library

collections.OrderedDict's __reduce__ was temporarily mutating the object
instead of just working on a copy.

..

.. bpo: 11442
.. date: 8416
.. nonce: Jta8go
.. section: Library

Add a charset parameter to the Content-type in SimpleHTTPServer to avoid XSS
attacks.

..

.. bpo: 11467
.. date: 8415
.. nonce: th8B0N
.. section: Library

Fix urlparse behavior when handling urls which contains scheme specific part
only digits. Patch by Santoso Wijaya.

..

.. bpo: 0
.. date: 8414
.. nonce: MOd782
.. section: Library

collections.Counter().copy() now works correctly for subclasses.

..

.. bpo: 11474
.. date: 8413
.. nonce: UKTAWA
.. section: Library

Fix the bug with url2pathname() handling of '/C|/' on Windows. Patch by
Santoso Wijaya.

..

.. bpo: 9233
.. date: 8412
.. nonce: AIRcqi
.. section: Library

Fix json.loads('{}') to return a dict (instead of a list), when _json is not
available.

..

.. bpo: 11703
.. date: 8411
.. nonce: hwI5Mw
.. section: Library

urllib2.geturl() does not return correct url when the original url contains
#fragment.

..

.. bpo: 10019
.. date: 8410
.. nonce: J7QVFU
.. section: Library

Fixed regression in json module where an indent of 0 stopped adding newlines
and acted instead like 'None'.

..

.. bpo: 5162
.. date: 8409
.. nonce: UYJrO-
.. section: Library

Treat services like frozen executables to allow child spawning from
multiprocessing.forking on Windows.

..

.. bpo: 4877
.. date: 8408
.. nonce: 4B7uDJ
.. section: Library

Fix a segfault in xml.parsers.expat while attempting to parse a closed file.

..

.. bpo: 11830
.. date: 8407
.. nonce: tFEtWl
.. section: Library

Remove unnecessary introspection code in the decimal module. It was causing
a failed import in the Turkish locale where the locale sensitive str.upper()
method caused a name mismatch.

..

.. bpo: 8428
.. date: 8406
.. nonce: vVu7J6
.. section: Library

Fix a race condition in multiprocessing.Pool when terminating worker
processes: new processes would be spawned while the pool is being shut down.
Patch by Charles-François Natali.

..

.. bpo: 7311
.. date: 8405
.. nonce: lRokCQ
.. section: Library

Fix HTMLParser to accept non-ASCII attribute values.

..

.. bpo: 10963
.. date: 8404
.. nonce: _J-MW9
.. section: Library

Ensure that subprocess.communicate() never raises EPIPE.

..

.. bpo: 11662
.. date: 8403
.. nonce: GpHbgk
.. section: Library

Make urllib and urllib2 ignore redirections if the scheme is not HTTP, HTTPS
or FTP (CVE-2011-1521).

..

.. bpo: 11256
.. date: 8402
.. nonce: AVqrHZ
.. section: Library

Fix inspect.getcallargs on functions that take only keyword arguments.

..

.. bpo: 11696
.. date: 8401
.. nonce: dzz7nM
.. section: Library

Fix ID generation in msilib.

..

.. bpo: 9696
.. date: 8400
.. nonce: Nh0u8J
.. section: Library

Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to
pack a negative (in-range) integer.

..

.. bpo: 11675
.. date: 8399
.. nonce: qFfmkU
.. section: Library

multiprocessing.[Raw]Array objects created from an integer size are now
zeroed on creation.  This matches the behaviour specified by the
documentation.

..

.. bpo: 7639
.. date: 8398
.. nonce: PKfmwz
.. section: Library

Fix short file name generation in bdist_msi.

..

.. bpo: 11666
.. date: 8397
.. nonce: Hni56e
.. section: Library

let help() display named tuple attributes and methods that start with a
leading underscore.

..

.. bpo: 11673
.. date: 8396
.. nonce: uXlx4W
.. section: Library

Fix multiprocessing Array and RawArray constructors to accept a size of type
'long', rather than only accepting 'int'.

..

.. bpo: 10042
.. date: 8395
.. nonce: SCtRiD
.. section: Library

Fixed the total_ordering decorator to handle cross-type comparisons that
could lead to infinite recursion.

..

.. bpo: 10979
.. date: 8394
.. nonce: FjyVrT
.. section: Library

unittest stdout buffering now works with class and module setup and
teardown.

..

.. bpo: 11569
.. date: 8393
.. nonce: fp461F
.. section: Library

use absolute path to the sysctl command in multiprocessing to ensure that it
will be found regardless of the shell PATH. This ensures that
multiprocessing.cpu_count works on default installs of MacOSX.

..

.. bpo: 11500
.. date: 8392
.. nonce: SOGd4Y
.. section: Library

Fixed a bug in the os x proxy bypass code for fully qualified IP addresses
in the proxy exception list.

..

.. bpo: 11131
.. date: 8391
.. nonce: PnmRwo
.. section: Library

Fix sign of zero in plus and minus operations when the context rounding mode
is ROUND_FLOOR.

..

.. bpo: 5622
.. date: 8390
.. nonce: dM7tnW
.. section: Library

Fix curses.wrapper to raise correct exception if curses initialization
fails.

..

.. bpo: 11391
.. date: 8389
.. nonce: hdoRPe
.. section: Library

Writing to a mmap object created with ``mmap.PROT_READ|mmap.PROT_EXEC``
would segfault instead of raising a TypeError.  Patch by Charles-François
Natali.

..

.. bpo: 11306
.. date: 8388
.. nonce: 2rXDt4
.. section: Library

mailbox in certain cases adapts to an inability to open certain files in
read-write mode.  Previously it detected this by checking for EACCES, now it
also checks for EROFS.

..

.. bpo: 11265
.. date: 8387
.. nonce: Y51oyn
.. section: Library

asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(),
send() and recv().

..

.. bpo: 11326
.. date: 8386
.. nonce: 2GUPyU
.. section: Library

Add the missing connect_ex() implementation for SSL sockets, and make it
work for non-blocking connects.

..

.. bpo: 10956
.. date: 8385
.. nonce: ArNOt6
.. section: Library

Buffered I/O classes retry reading or writing after a signal has arrived and
the handler returned successfully.

..

.. bpo: 10680
.. date: 8384
.. nonce: pAmFnC
.. section: Library

Fix mutually exclusive arguments for argument groups in argparse.

..

.. bpo: 4681
.. date: 8383
.. nonce: I20jgq
.. section: Library

Allow mmap() to work on file sizes and offsets larger than 4GB, even on
32-bit builds.  Initial patch by Ross Lagerwall, adapted for 32-bit Windows.

..

.. bpo: 10360
.. date: 8382
.. nonce: JAYw4l
.. section: Library

In WeakSet, do not raise TypeErrors when testing for membership of
non-weakrefable objects.

..

.. bpo: 10549
.. date: 8381
.. nonce: 15cASW
.. section: Library

Fix pydoc traceback when text-documenting certain classes.

..

.. bpo: 940286
.. date: 8380
.. nonce: cPglIg
.. section: Library

pydoc.Helper.help() ignores input/output init parameters.

..

.. bpo: 11171
.. date: 8379
.. nonce: ZXEFXT
.. section: Library

Fix detection of config/Makefile when --prefix != --exec-prefix, which
caused Python to not start.

..

.. bpo: 11116
.. date: 8378
.. nonce: J0xgWH
.. section: Library

any error during addition of a message to a mailbox now causes a rollback,
instead of leaving the mailbox partially modified.

..

.. bpo: 8275
.. date: 8377
.. nonce: -TRADs
.. section: Library

Fix passing of callback arguments with ctypes under Win64. Patch by Stan
Mihai.

..

.. bpo: 10949
.. date: 8376
.. nonce: sknBTt
.. section: Library

Improved robustness of rotating file handlers.

..

.. bpo: 10955
.. date: 8375
.. nonce: RSqPRN
.. section: Library

Fix a potential crash when trying to mmap() a file past its length.  Initial
patch by Ross Lagerwall.

..

.. bpo: 10898
.. date: 8374
.. nonce: 2VhVxS
.. section: Library

Allow compiling the posix module when the C library defines a symbol named
FSTAT.

..

.. bpo: 10916
.. date: 8373
.. nonce: xpdEg8
.. section: Library

mmap should not segfault when a file is mapped using 0 as length and a
non-zero offset, and an attempt to read past the end of file is made (IndexError
is raised instead).  Patch by Ross Lagerwall.

..

.. bpo: 10875
.. date: 8372
.. nonce: RSNYLS
.. section: Library

Update Regular Expression HOWTO; patch by 'SilentGhost'.

..

.. bpo: 10827
.. date: 8371
.. nonce: vjZCZr
.. section: Library

Changed the rules for 2-digit years.  The time.asctime function will now
format any year when ``time.accept2dyear`` is false and will accept years >=
1000 otherwise.  The year range accepted by ``time.mktime`` and
``time.strftime`` is still system dependent, but ``time.mktime`` will now
accept full range supported by the OS.  Conversion of 2-digit years to
4-digit is deprecated.

..

.. bpo: 10869
.. date: 8370
.. nonce: 3xBkWx
.. section: Library

Fixed bug where ast.increment_lineno modified the root node twice.

..

.. bpo: 7858
.. date: 8369
.. nonce: DKZMOA
.. section: Library

Raise an error properly when os.utime() fails under Windows on an existing
file.

..

.. bpo: 3839
.. date: 8368
.. nonce: zMNSit
.. section: Library

wsgiref should not override a Content-Length header set by the application.
Initial patch by Clovis Fabricio.

..

.. bpo: 10806
.. date: 8367
.. nonce: dEztuB
.. section: Library

Fix subprocess pipes when some of the standard file descriptors (0, 1, 2)
are closed in the parent process.  Initial patch by Ross Lagerwall. (See
also: bpo-9905)

..

.. bpo: 4662
.. date: 8366
.. nonce: m3fHnI
.. section: Library

os.tempnam(), os.tmpfile() and os.tmpnam() now raise a py3k
DeprecationWarning.

..

.. bpo: 0
.. date: 8365
.. nonce: t8RJ2P
.. section: Library

Subclasses of collections.OrderedDict now work correctly with __missing__.

..

.. bpo: 10753
.. date: 8364
.. nonce: pjcQCT
.. section: Library

Characters ';', '=' and ',' in the PATH_INFO environment variable won't be
quoted when the URI is constructed by the wsgiref.util 's request_uri
method. According to RFC 3986, these characters can be a part of params in
PATH component of URI and need not be quoted.

..

.. bpo: 10738
.. date: 8363
.. nonce: GT7QZa
.. section: Library

Fix webbrowser.Opera.raise_opts

..

.. bpo: 9824
.. date: 8362
.. nonce: vJBIAh
.. section: Library

SimpleCookie now encodes , and ; in values to cater to how browsers actually
parse cookies.

..

.. bpo: 1379416
.. date: 8361
.. nonce: fpWgER
.. section: Library

eliminated a source of accidental unicode promotion in
email.header.Header.encode.

..

.. bpo: 5258
.. date: 8360
.. nonce: fNenmJ
.. section: Library

if site.py encounters a .pth file that generates an error, it now prints the
filename, line number, and traceback to stderr and skips the rest of that
individual file, instead of stopping processing entirely. (See also:
bpo-10642)

..

.. bpo: 10750
.. date: 8359
.. nonce: o-KFTn
.. section: Library

The ``raw`` attribute of buffered IO objects is now read-only.

..

.. bpo: 10242
.. date: 8358
.. nonce: uwgK8s
.. section: Library

unittest.TestCase.assertItemsEqual makes too many assumptions about input.

..

.. bpo: 10611
.. date: 8357
.. nonce: y67Wpv
.. section: Library

SystemExit should not cause a unittest test run to exit.

..

.. bpo: 6791
.. date: 8356
.. nonce: b5b4M7
.. section: Library

Limit header line length (to 65535 bytes) in http.client, to avoid denial of
services from the other party.

..

.. bpo: 9907
.. date: 8355
.. nonce: EC_Wry
.. section: Library

Fix tab handling on OSX when using editline by calling rl_initialize first,
then setting our custom defaults, then reading .editrc.

..

.. bpo: 4188
.. date: 8354
.. nonce: nIr5eF
.. section: Library

Avoid creating dummy thread objects when logging operations from the
threading module (with the internal verbose flag activated).

..

.. bpo: 9721
.. date: 8353
.. nonce: G8i-SO
.. section: Library

Fix the behavior of urljoin when the relative url starts with a ';'
character. Patch by Wes Chow.

..

.. bpo: 10714
.. date: 8352
.. nonce: 2ytXWI
.. section: Library

Limit length of incoming request in http.server to 65536 bytes for security
reasons.  Initial patch by Ross Lagerwall.

..

.. bpo: 9558
.. date: 8351
.. nonce: Zu3z6Q
.. section: Library

Fix distutils.command.build_ext with VS 8.0.

..

.. bpo: 10695
.. date: 8350
.. nonce: 9PoZLI
.. section: Library

passing the port as a string value to telnetlib no longer causes debug mode
to fail.

..

.. bpo: 10478
.. date: 8349
.. nonce: 3rusTg
.. section: Library

Reentrant calls inside buffered IO objects (for example by way of a signal
handler) now raise a RuntimeError instead of freezing the current process.

..

.. bpo: 10497
.. date: 8348
.. nonce: KCVp0v
.. section: Library

Fix incorrect use of gettext in argparse.

..

.. bpo: 10464
.. date: 8347
.. nonce: oT76Cm
.. section: Library

netrc now correctly handles lines with embedded '#' characters.

..

.. bpo: 1731717
.. date: 8346
.. nonce: 1WiN2u
.. section: Library

Fixed the problem where subprocess.wait() could cause an OSError exception
when The OS had been told to ignore SIGCLD in our process or otherwise not
wait for exiting child processes.

..

.. bpo: 9509
.. date: 8345
.. nonce: Oh-iMy
.. section: Library

argparse now properly handles IOErrors raised by argparse.FileType.

..

.. bpo: 9348
.. date: 8344
.. nonce: zsJPPj
.. section: Library

Raise an early error if argparse nargs and metavar don't match.

..

.. bpo: 8982
.. date: 8343
.. nonce: fTONNH
.. section: Library

Improve the documentation for the argparse Namespace object.

..

.. bpo: 9343
.. date: 8342
.. nonce: 9T-Qyz
.. section: Library

Document that argparse parent parsers must be configured before their
children.

..

.. bpo: 9026
.. date: 8341
.. nonce: 2xqEFT
.. section: Library

Fix order of argparse sub-commands in help messages.

..

.. bpo: 9347
.. date: 8340
.. nonce: R8xBsQ
.. section: Library

Fix formatting for tuples in argparse type= error messages.

..

.. bpo: 0
.. date: 8339
.. nonce: qXxXWp
.. section: Library

Stop using the old interface for providing methods and attributes in the
_sre module. Among other things, this gives these classes ``__class__``
attributes. (See #12099)

..

.. bpo: 10169
.. date: 8338
.. nonce: OXJ9Nh
.. section: Library

Fix argument parsing in socket.sendto() to avoid error masking.

..

.. bpo: 12051
.. date: 8337
.. nonce: 7HjY_U
.. section: Library

Fix segfault in json.dumps() while encoding highly-nested objects using the
C accelerations.

..

.. bpo: 12017
.. date: 8336
.. nonce: w25YNq
.. section: Library

Fix segfault in json.loads() while decoding highly-nested objects using the
C accelerations.

..

.. bpo: 1838
.. date: 8335
.. nonce: EzKU3z
.. section: Library

Prevent segfault in ctypes, when _as_parameter_ on a class is set to an
instance of the class.

..

.. bpo: 678250
.. date: 8334
.. nonce: a5vtlO
.. section: Library

Make mmap flush a noop on ACCESS_READ and ACCESS_COPY.

..

.. bpo: 11718
.. date: 8333
.. nonce: giS1iY
.. section: IDLE

IDLE's open module dialog couldn't find the __init__.py file in a package.

..

.. bpo: 12590
.. date: 8332
.. nonce: dcDjo7
.. section: IDLE

IDLE editor window now always displays the first line when opening a long
file.  With Tk 8.5, the first line was hidden.

..

.. bpo: 11088
.. date: 8331
.. nonce: 08NI5v
.. section: IDLE

don't crash when using F5 to run a script in IDLE on MacOSX with Tk 8.5.

..

.. bpo: 10940
.. date: 8330
.. nonce: qwi3cm
.. section: IDLE

Workaround an IDLE hang on Mac OS X 10.6 when using the menu accelerators
for Open Module, Go to Line, and New Indent Width. The accelerators still
work but no longer appear in the menu items.

..

.. bpo: 10907
.. date: 8329
.. nonce: BHHc_r
.. section: IDLE

Warn OS X 10.6 IDLE users to use ActiveState Tcl/Tk 8.5, rather than the
currently problematic Apple-supplied one, when running with the 64-/32-bit
installer variant.

..

.. bpo: 11052
.. date: 8328
.. nonce: avmtSQ
.. section: IDLE

Correct IDLE menu accelerators on Mac OS X for Save commands.

..

.. bpo: 6075
.. date: 8327
.. nonce: AHKNEZ
.. section: IDLE

IDLE on Mac OS X now works with both Carbon AquaTk and Cocoa AquaTk.

..

.. bpo: 10404
.. date: 8326
.. nonce: CBzs_G
.. section: IDLE

Use ctl-button-1 on OSX for the context menu in Idle.

..

.. bpo: 10107
.. date: 8325
.. nonce: Bsx-F4
.. section: IDLE

Warn about unsaved files in IDLE on OSX.

..

.. bpo: 10406
.. date: 8324
.. nonce: HKSefS
.. section: IDLE

Enable Rstrip IDLE extension on OSX (just like on other platforms).

..

.. bpo: 6378
.. date: 8323
.. nonce: Vr_x3W
.. section: IDLE

Further adjust idle.bat to start associated Python

..

.. bpo: 11896
.. date: 8322
.. nonce: XPwdkw
.. section: IDLE

Save on Close failed despite selecting "Yes" in dialog.

..

.. bpo: 4676
.. date: 8321
.. nonce: qQkued
.. section: IDLE

<Home> toggle failing on Tk 8.5, causing IDLE exits and strange selection
behavior.  Improve selection extension behaviour.

..

.. bpo: 3851
.. date: 8320
.. nonce: iy6ENX
.. section: IDLE

<Home> toggle non-functional when NumLock set on Windows.

..

.. bpo: 11217
.. date: 8319
.. nonce: mIEwfc
.. section: Build

For 64-bit/32-bit Mac OS X universal framework builds, ensure "make install"
creates symlinks in --prefix bin for the "-32" files in the framework bin
directory like the installer does.

..

.. bpo: 11411
.. date: 8318
.. nonce: 1m9fjv
.. section: Build

Fix 'make DESTDIR=' with a relative destination.

..

.. bpo: 10709
.. date: 8317
.. nonce: QpLCFk
.. section: Build

Add updated AIX notes in Misc/README.AIX.

..

.. bpo: 11184
.. date: 8316
.. nonce: sGfAXw
.. section: Build

Fix large-file support on AIX.

..

.. bpo: 941346
.. date: 8315
.. nonce: heMADD
.. section: Build

Fix broken shared library build on AIX.

..

.. bpo: 11268
.. date: 8314
.. nonce: Lgcka6
.. section: Build

Prevent Mac OS X Installer failure if Documentation package had previously
been installed.

..

.. bpo: 11079
.. date: 8313
.. nonce: Y0Hh5V
.. section: Build

The /Applications/Python x.x folder created by the Mac OS X installers now
includes a link to the installed documentation.

..

.. bpo: 11054
.. date: 8312
.. nonce: BN3sYU
.. section: Build

Allow Mac OS X installer builds to again work on 10.5 with the
system-provided Python.

..

.. bpo: 10843
.. date: 8311
.. nonce: EdyFR6
.. section: Build

Update third-party library versions used in OS X 32-bit installer builds:
bzip2 1.0.6, readline 6.1.2, SQLite 3.7.4 (with FTS3/FTS4 and RTREE
enabled), and ncursesw 5.5 (wide-char support enabled).

..

.. bpo: 0
.. date: 8310
.. nonce: nsY3xU
.. section: Build

Don't run pgen twice when using make -j.

..

.. bpo: 7716
.. date: 8309
.. nonce: KkZ-2b
.. section: Build

Under Solaris, don't assume existence of /usr/xpg4/bin/grep in the configure
script but use $GREP instead.  Patch by Fabian Groffen.

..

.. bpo: 10475
.. date: 8308
.. nonce: LVKSbB
.. section: Build

Don't hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD and DragonFly
BSD.  Patch by Nicolas Joly.

..

.. bpo: 10655
.. date: 8307
.. nonce: WauLJp
.. section: Build

Fix the build on PowerPC on Linux with GCC when building with timestamp
profiling (--with-tsc): the preprocessor test for the PowerPC support now
looks for "__powerpc__" as well as "__ppc__": the latter seems to only be
present on OS X; the former is the correct one for Linux with GCC.

..

.. bpo: 1099
.. date: 8306
.. nonce: KikOsu
.. section: Build

Fix the build on MacOSX when building a framework with pydebug using GCC
4.0.

..

.. bpo: 11164
.. date: 8305
.. nonce: w2nrYU
.. section: Tests

Remove obsolete allnodes test from minidom test.

..

.. bpo: 12205
.. date: 8304
.. nonce: gVhWmC
.. section: Tests

Fix test_subprocess failure due to uninstalled test data.

..

.. bpo: 5723
.. date: 8303
.. nonce: Lfg1OX
.. section: Tests

Improve json tests to be executed with and without accelerations.

..

.. bpo: 11910
.. date: 8302
.. nonce: HhQx49
.. section: Tests

Fix test_heapq to skip the C tests when _heapq is missing.

..

.. bpo: 0
.. date: 8301
.. nonce: i8QOXe
.. section: Tests

Fix test_startfile to wait for child process to terminate before finishing.

..

.. bpo: 11719
.. date: 8300
.. nonce: ojamUL
.. section: Tests

Fix message about unexpected test_msilib skip on non-Windows platforms.
Patch by Nadeem Vawda.

..

.. bpo: 7108
.. date: 8299
.. nonce: xaF3OE
.. section: Tests

Fix test_commands to not fail when special attributes ('@' or '.') appear in
'ls -l' output.

..

.. bpo: 11490
.. date: 8298
.. nonce: I86Gxz
.. section: Tests

test_subprocess:test_leaking_fds_on_error no longer gives a false positive
if the last directory in the path is inaccessible.

..

.. bpo: 10822
.. date: 8297
.. nonce: P0VrIZ
.. section: Tests

Fix test_posix:test_getgroups failure under Solaris.  Patch by Ross
Lagerwall.

..

.. bpo: 6293
.. date: 8296
.. nonce: J7ur1U
.. section: Tests

Have regrtest.py echo back sys.flags.  This is done by default in whole runs
and enabled selectively using ``--header`` when running an explicit list of
tests.  Original patch by Collin Winter.

..

.. bpo: 775964
.. date: 8295
.. nonce: 7a2XLN
.. section: Tests

test_grp now skips YP/NIS entries instead of failing when encountering them.

..

.. bpo: 7110
.. date: 8294
.. nonce: SyQreJ
.. section: Tests

regrtest now sends test failure reports and single-failure tracebacks to
stderr rather than stdout.