summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/2.7b2.rst
blob: acc395bd13845773b0366594c5fa74f53ed45b61 (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
.. bpo: 0
.. date: 8039
.. nonce: 8aqNKP
.. release date: 2010-05-08
.. section: Core and Builtins

Run Clang 2.7's static analyzer for ``Objects/`` and ``Python/``.

..

.. bpo: 1533
.. date: 8038
.. nonce: 6FLjC9
.. section: Core and Builtins

Fix inconsistency in range function argument processing: any non-float
non-integer argument is now converted to an integer (if possible) using its
__int__ method.  Previously, only small arguments were treated this way;
larger arguments (those whose __int__ was outside the range of a C long)
would produce a TypeError.

..

.. bpo: 8202
.. date: 8037
.. nonce: UvqmQ2
.. section: Core and Builtins

``sys.argv[0]`` is now set to '-m' instead of '-c' when searching for the
module file to be executed with the -m command line option.

..

.. bpo: 7319
.. date: 8036
.. nonce: Ry0QuX
.. section: Core and Builtins

When -Q is used, do not silence DeprecationWarning.

..

.. bpo: 7332
.. date: 8035
.. nonce: mCUzwz
.. section: Core and Builtins

Remove the 16KB stack-based buffer in ``PyMarshal_ReadLastObjectFromFile``,
which doesn't bring any noticeable benefit compared to the dynamic memory
allocation fallback.  Patch by Charles-François Natali.

..

.. bpo: 8417
.. date: 8034
.. nonce: qcRfh8
.. section: Core and Builtins

Raise an OverflowError when an integer larger than sys.maxsize is passed to
bytearray.

..

.. bpo: 7072
.. date: 8033
.. nonce: YGHQG7
.. section: Core and Builtins

``isspace(0xa0)`` is true on Mac OS X.

..

.. bpo: 8404
.. date: 8032
.. nonce: 0krGPF
.. section: Core and Builtins

Fix set operations on dictionary views.

..

.. bpo: 8084
.. date: 8031
.. nonce: uiAFoS
.. section: Core and Builtins

PEP 370 now conforms to system conventions for framework builds on MacOS X.
That is, ``python setup.py install --user`` will install into
``~/Library/Python/2.7`` instead of ``~/.local``.

..

.. bpo: 8681
.. date: 8030
.. nonce: bnD2Mi
.. section: Library

Make the zlib module's error messages more informative when the zlib itself
doesn't give any detailed explanation.

..

.. bpo: 8571
.. date: 8029
.. nonce: BGxcud
.. section: Library

Fix an internal error when compressing or decompressing a chunk larger than
1GB with the zlib module's compressor and decompressor objects.

..

.. bpo: 8573
.. date: 8028
.. nonce: PZTYKm
.. section: Library

asyncore ``_strerror()`` function might throw ValueError.

..

.. bpo: 8483
.. date: 8027
.. nonce: gWRwCr
.. section: Library

asyncore.dispatcher's __getattr__ method produced confusing error messages
when accessing undefined class attributes because of the cheap inheritance
with the underlying socket object.  The cheap inheritance has been
deprecated.

..

.. bpo: 4265
.. date: 8026
.. nonce: gtcR-h
.. section: Library

``shutil.copyfile()`` was leaking file descriptors when disk fills.  Patch
by Tres Seaver.

..

.. bpo: 7755
.. date: 8025
.. nonce: k5FaAX
.. section: Library

Use an unencumbered audio file for tests.

..

.. bpo: 8621
.. date: 8024
.. nonce: 64sJJn
.. section: Library

``uuid.uuid4()`` returned the same sequence of values in the parent and any
children created using ``os.fork`` on Mac OS X 10.6.

..

.. bpo: 8313
.. date: 8023
.. nonce: lE868K
.. section: Library

``traceback.format_exception_only()`` encodes unicode message to ASCII with
backslashreplace error handler if ``str(value)`` failed.

..

.. bpo: 8567
.. date: 8022
.. nonce: agGfsd
.. section: Library

Fix precedence of signals in Decimal module: when a Decimal operation raises
multiple signals and more than one of those signals is trapped, the
specification determines the order in which the signals should be handled.
In many cases this order wasn't being followed, leading to the wrong Python
exception being raised.

..

.. bpo: 7865
.. date: 8021
.. nonce: YF-RSw
.. section: Library

The close() method of :mod:`io` objects should not swallow exceptions raised
by the implicit flush().  Also ensure that calling close() several times is
supported.  Patch by Pascal Chambon.

..

.. bpo: 8576
.. date: 8020
.. nonce: P-vn7s
.. section: Library

logging updated to remove usage of find_unused_port().

..

.. bpo: 4687
.. date: 8019
.. nonce: WuWPAI
.. section: Library

Fix accuracy of garbage collection runtimes displayed with gc.DEBUG_STATS.

..

.. bpo: 8354
.. date: 8018
.. nonce: ihPpD8
.. section: Library

The siginterrupt setting is now preserved for all signals, not just SIGCHLD.

..

.. bpo: 7192
.. date: 8017
.. nonce: crfmVq
.. section: Library

``webbrowser.get("firefox")`` now works on Mac OS X, as does
``webbrowser.get("safari")``.

..

.. bpo: 8577
.. date: 8016
.. nonce: aNmUf8
.. section: Library

``distutils.sysconfig.get_python_inc()`` now makes a difference between the
build dir and the source dir when looking for "python.h" or "Include".

..

.. bpo: 8464
.. date: 8015
.. nonce: dckIPz
.. section: Library

tarfile no longer creates files with execute permissions set when mode="w|"
is used.

..

.. bpo: 7834
.. date: 8014
.. nonce: 6FWkzA
.. section: Library

Fix connect() of Bluetooth L2CAP sockets with recent versions of the Linux
kernel.  Patch by Yaniv Aknin.

..

.. bpo: 6312
.. date: 8013
.. nonce: ZgHCwc
.. section: Library

Fix http HEAD request when the transfer encoding is chunked.  It should
correctly return an empty response now.

..

.. bpo: 7490
.. date: 8012
.. nonce: hT8uzG
.. section: Library

To facilitate sharing of doctests between 2.x and 3.x test suites, the
``IGNORE_EXCEPTION_DETAIL`` directive now also ignores the module location
of the raised exception.  Based on initial patch by Lennart Regebro.

..

.. bpo: 8086
.. date: 8011
.. nonce: Nn01DF
.. section: Library

In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline before the
certificate footer.  Patch by Kyle VanderBeek.

..

.. bpo: 8546
.. date: 8010
.. nonce: ZJV_Z2
.. section: Library

Reject None given as the buffering argument to ``_pyio.open()``.

..

.. bpo: 8549
.. date: 8009
.. nonce: 9m7vbm
.. section: Library

Fix compiling the _ssl extension under AIX.  Patch by Sridhar Ratnakumar.

..

.. bpo: 6656
.. date: 8008
.. nonce: oU6_NU
.. section: Library

Fix locale.format_string to handle escaped percents and mappings.

..

.. bpo: 2302
.. date: 8007
.. nonce: KqJUA8
.. section: Library

Fix a race condition in SocketServer.BaseServer.shutdown, where the method
could block indefinitely if called just before the event loop started
running.  This also fixes the occasional freezes witnessed in
test_httpservers.

..

.. bpo: 5103
.. date: 8006
.. nonce: mBe0-l
.. section: Library

SSL handshake would ignore the socket timeout and block indefinitely if the
other end didn't respond.

..

.. bpo: 0
.. date: 8005
.. nonce: XlQAbN
.. section: Library

The do_handshake() method of SSL objects now adjusts the blocking mode of
the SSL structure if necessary (as other methods already do).

..

.. bpo: 7507
.. date: 8004
.. nonce: PPZWiA
.. section: Library

Quote "!" in pipes.quote(); it is special to some shells.

..

.. bpo: 5238
.. date: 8003
.. nonce: HjIVqr
.. section: Library

Calling makefile() on an SSL object would prevent the underlying socket from
being closed until all objects get truely destroyed.

..

.. bpo: 7943
.. date: 8002
.. nonce: 0wcepT
.. section: Library

Fix circular reference created when instantiating an SSL socket. Initial
patch by Péter Szabó.

..

.. bpo: 8451
.. date: 8001
.. nonce: vWZKfu
.. section: Library

Syslog module now uses basename(sys.argv[0]) instead of the string "python"
as the *ident*.  openlog() arguments are all optional and keywords.

..

.. bpo: 8108
.. date: 8000
.. nonce: gw3ghC
.. section: Library

Fix the unwrap() method of SSL objects when the socket has a non-infinite
timeout.  Also make that method friendlier with applications wanting to
continue using the socket in clear-text mode, by disabling OpenSSL's
internal readahead.  Thanks to Darryl Miles for guidance.

..

.. bpo: 8484
.. date: 7999
.. nonce: b9zFsh
.. section: Library

Load all ciphers and digest algorithms when initializing the _ssl extension,
such that verification of some SSL certificates doesn't fail because of an
"unknown algorithm".

..

.. bpo: 8437
.. date: 7998
.. nonce: iGGyX3
.. section: Library

Fix test_gdb failures, patch written by Dave Malcolm

..

.. bpo: 4814
.. date: 7997
.. nonce: kc5m59
.. section: Library

The timeout parameter is now applied also for connections resulting from
PORT/EPRT commands.

..

.. bpo: 8463
.. date: 7996
.. nonce: slxxrW
.. section: Library

Add missing reference to bztar in shutil's documentation.

..

.. bpo: 8438
.. date: 7995
.. nonce: TUjaAU
.. section: Library

Remove reference to the missing "surrogateescape" encoding error handler
from the new IO library.

..

.. bpo: 3817
.. date: 7994
.. nonce: 6zjb85
.. section: Library

ftplib.FTP.abort() method now considers 225 a valid response code as stated
in RFC-959 at chapter 5.4.

..

.. bpo: 8279
.. date: 7993
.. nonce: MubiOg
.. section: Library

Fix test_gdb failures.

..

.. bpo: 8322
.. date: 7992
.. nonce: XVocgc
.. section: Library

Add a *ciphers* argument to SSL sockets, so as to change the available
cipher list.  Helps fix test_ssl with OpenSSL 1.0.0.

..

.. bpo: 2987
.. date: 7991
.. nonce: FbxT-M
.. section: Library

RFC 2732 support for urlparse (IPv6 addresses).  Patch by Tony Locke and
Hans Ulrich Niedermann.

..

.. bpo: 7585
.. date: 7990
.. nonce: stGadz
.. section: Library

difflib context and unified diffs now place a tab between filename and date,
conforming to the 'standards' they were originally designed to follow.  This
improves compatibility with patch tools.

..

.. bpo: 7472
.. date: 7989
.. nonce: IghBPp
.. section: Library

Fixed typo in email.encoders module; messages using ISO-2022 character sets
will now consistently use a Content-Transfer-Encoding of 7bit rather than
sometimes being marked as 8bit.

..

.. bpo: 8330
.. date: 7988
.. nonce: LPDqBG
.. section: Library

Fix expected output in test_gdb.

..

.. bpo: 8374
.. date: 7987
.. nonce: bWoGdD
.. section: Library

Update the internal alias table in the :mod:`locale` module to cover recent
locale changes and additions.

..

.. bpo: 8644
.. date: 7986
.. nonce: JWO_61
.. section: Library

Improved accuracy of ``timedelta.total_seconds()``.

..

.. bpo: 0
.. date: 7985
.. nonce: LYHXVb
.. section: Library

Use Clang 2.7's static analyzer to find places to clean up some code.

..

.. bpo: 0
.. date: 7984
.. nonce: jbiDIM
.. section: Library

Build the ossaudio extension on GNU/kFreeBSD.

..

.. bpo: 0
.. date: 7983
.. nonce: NCKMWo
.. section: Library

On Windows, ctypes no longer checks the stack before and after calling a
foreign function.  This allows using the unmodified libffi library.

..

.. bpo: 8672
.. date: 7982
.. nonce: hs9Ync
.. section: Tests

Add a zlib test ensuring that an incomplete stream can be handled by a
decompressor object without errors (it returns incomplete uncompressed
data).

..

.. bpo: 8490
.. date: 7981
.. nonce: yG1Xr0
.. section: Tests

asyncore now has a more solid test suite which actually tests its API.

..

.. bpo: 8576
.. date: 7980
.. nonce: Up6MTB
.. section: Tests

Remove use of find_unused_port() in test_smtplib and test_multiprocessing.
Patch by Paul Moore.

..

.. bpo: 7449
.. date: 7979
.. nonce: as77J5
.. section: Tests

Fix many tests to support Python compiled without thread support. Patches
written by Jerry Seutter.

..

.. bpo: 8108
.. date: 7978
.. nonce: -PlMAS
.. section: Tests

test_ftplib's non-blocking SSL server now has proper handling of SSL
shutdowns.

..

.. bpo: 8625
.. date: 7977
.. nonce: E4dSUW
.. section: Build

Turn off optimization in ``--with-pydebug`` builds with gcc. (Optimization
was unintentionally turned on in gcc --with-pydebug builds in 2.7 beta1 as a
result of the issue #1628484 fix, combined with autoconf's strange choice of
default CFLAGS produced by AC_PROG_CC for gcc.)

..

.. bpo: 8509
.. date: 7976
.. nonce: N8vHHZ
.. section: Build

Fix quoting in help strings and code snippets in configure.in.

..

.. bpo: 3646
.. date: 7975
.. nonce: UyNDbm
.. section: Build

It is now easily possible to install a Python framework into your home
directory on Mac OS X, see Mac/README for more information.

..

.. bpo: 8510
.. date: 7974
.. nonce: 8MiUfR
.. section: Build

Update to autoconf 2.65.

..

.. bpo: 0
.. date: 7973
.. nonce: 18HloG
.. section: Windows

Update the Vim syntax highlight file.