summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/2.7b1.rst
blob: 9e096ecaa581057cbe88f9f300f873de355bce16 (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
.. bpo: 7301
.. date: 7972
.. nonce: dlecRg
.. release date: 2010-04-10
.. section: Core and Builtins

Add environment variable $PYTHONWARNINGS.

..

.. bpo: 8329
.. date: 7971
.. nonce: ZUTObm
.. section: Core and Builtins

Don't return the same lists from select.select when no fds are changed.

..

.. bpo: 8259
.. date: 7970
.. nonce: NNoD66
.. section: Core and Builtins

``1L << (2**31)`` no longer produces an 'outrageous shift error' on 64-bit
machines.  The shift count for either left or right shift is permitted to be
up to sys.maxsize.

..

.. bpo: 0
.. date: 7969
.. nonce: iwBvru
.. section: Core and Builtins

Ensure that tokenization of identifiers is not affected by locale.

..

.. bpo: 1222585
.. date: 7968
.. nonce: emqFT3
.. section: Core and Builtins

Added LDCXXSHARED for C++ support.  Patch by Arfrever.

..

.. bpo: 0
.. date: 7967
.. nonce: jCkZ20
.. section: Core and Builtins

Raise a TypeError when trying to delete a T_STRING_INPLACE struct member.

..

.. bpo: 7994
.. date: 7966
.. nonce: ZEBSAJ
.. section: Core and Builtins

Issue a PendingDeprecationWarning if object.__format__ is called with a
non-empty format string. This is an effort to future-proof user code. If a
derived class does not currently implement __format__ but later adds its own
__format__, it would most likely break user code that had supplied a format
string. This will be changed to a DeprecationWarning in Python 3.3 and it
will be an error in Python 3.4.

..

.. bpo: 8268
.. date: 7965
.. nonce: usS51U
.. section: Core and Builtins

Old-style classes (not just instances) now support weak references.

..

.. bpo: 8211
.. date: 7964
.. nonce: InhXpq
.. section: Core and Builtins

Save/restore CFLAGS around AC_PROG_CC in configure.in, in case it is set.

..

.. bpo: 1583863
.. date: 7963
.. nonce: tSkjxk
.. section: Core and Builtins

A unicode subclass can now override the __unicode__ method

..

.. bpo: 6474
.. date: 7962
.. nonce: yFxVuM
.. section: Core and Builtins

Make error message from passing an inadequate number of keyword arguments to
a function correct.

..

.. bpo: 8164
.. date: 7961
.. nonce: uRYEY5
.. section: Core and Builtins

Don't allow lambda functions to have a docstring.

..

.. bpo: 3137
.. date: 7960
.. nonce: Em70dh
.. section: Core and Builtins

Don't ignore errors at startup, especially a keyboard interrupt (SIGINT).
If an error occurs while importing the site module, the error is printed and
Python exits.  Initialize the GIL before importing the site module.

..

.. bpo: 0
.. date: 7959
.. nonce: kIQmnN
.. section: Core and Builtins

Code objects now support weak references.

..

.. bpo: 5277
.. date: 7958
.. nonce: CQ8CXN
.. section: Library

Fix quote counting when parsing RFC 2231 encoded parameters.

..

.. bpo: 8321
.. date: 7957
.. nonce: Tul_aA
.. section: Library

Give access to OpenSSL version numbers from the `ssl` module, using the new
attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO` and
`ssl.OPENSSL_VERSION_NUMBER`.

..

.. bpo: 8310
.. date: 7956
.. nonce: 6fu8uc
.. section: Library

Allow dis to examine new style classes.

..

.. bpo: 8257
.. date: 7955
.. nonce: PzabSZ
.. section: Library

The Decimal construct now accepts a float instance directly, converting that
float to a Decimal of equal value:

>>> Decimal(1.1)
Decimal('1.100000000000000088817841970012523233890533447265625')

..

.. bpo: 0
.. date: 7954
.. nonce: 02C1gn
.. section: Library

collections.Counter() now supports a subtract() method.

..

.. bpo: 0
.. date: 7953
.. nonce: or8thG
.. section: Library

The functools module now has a total_ordering() class decorator to simplify
the specification of rich comparisons.

..

.. bpo: 0
.. date: 7952
.. nonce: nshtA2
.. section: Library

The functools module also adds cmp_to_key() as a tool to transition
old-style comparison functions to new-style key-functions.

..

.. bpo: 8294
.. date: 7951
.. nonce: 42HIIC
.. section: Library

The Fraction constructor now accepts Decimal and float instances directly.

..

.. bpo: 7279
.. date: 7950
.. nonce: v1uyoh
.. section: Library

Comparisons involving a Decimal signaling NaN now signal InvalidOperation
instead of returning False.  (Comparisons involving a quiet NaN are
unchanged.)  Also, Decimal quiet NaNs are now hashable; Decimal signaling
NaNs remain unhashable.

..

.. bpo: 2531
.. date: 7949
.. nonce: ELCENf
.. section: Library

Comparison operations between floats and Decimal instances now return a
result based on the numeric values of the operands; previously they returned
an arbitrary result based on the relative ordering of id(float) and
id(Decimal).

..

.. bpo: 8233
.. date: 7948
.. nonce: xJkVL4
.. section: Library

When run as a script, py_compile.py optionally takes a single argument `-`
which tells it to read files to compile from stdin.  Each line is read on
demand and the named file is compiled immediately.  (Original patch by Piotr
Ożarowski).

..

.. bpo: 3135
.. date: 7947
.. nonce: 5u_w3h
.. section: Library

Add ``inspect.getcallargs()``, which binds arguments to a function like a
normal call.

..

.. bpo: 0
.. date: 7946
.. nonce: CTbVhT
.. section: Library

Backwards incompatible change: Unicode codepoints line tabulation (0x0B) and
form feed (0x0C) are now considered linebreaks, as specified in Unicode
Standard Annex #14.  See issue #7643.  http://www.unicode.org/reports/tr14/

..

.. bpo: 0
.. date: 7945
.. nonce: Y0P_8n
.. section: Library

Comparisons using one of <, <=, >, >= between a complex instance and a
Fractions instance now raise TypeError instead of returning True/False.
This makes Fraction <=> complex comparisons consistent with int <=> complex,
float <=> complex, and complex <=> complex comparisons.

..

.. bpo: 0
.. date: 7944
.. nonce: POrUTx
.. section: Library

Addition of ``WeakSet`` to the ``weakref`` module.

..

.. bpo: 0
.. date: 7943
.. nonce: 6xyUXj
.. section: Library

logging: Added LOG_FTP to SysLogHandler and updated documentation.

..

.. bpo: 8205
.. date: 7942
.. nonce: GK6syz
.. section: Library

Remove the "Modules" directory from sys.path when Python is running from the
build directory (POSIX only).

..

.. bpo: 7667
.. date: 7941
.. nonce: 581UIL
.. section: Library

Fix doctest failures with non-ASCII paths.

..

.. bpo: 7512
.. date: 7940
.. nonce: 3tQWru
.. section: Library

shutil.copystat() could raise an OSError when the filesystem didn't support
chflags() (for example ZFS under FreeBSD).  The error is now silenced.

..

.. bpo: 7703
.. date: 7939
.. nonce: _QnWbZ
.. section: Library

ctypes supports both buffer() and memoryview().  The former is deprecated.

..

.. bpo: 7860
.. date: 7938
.. nonce: DV2Y4E
.. section: Library

platform.uname now reports the correct 'machine' type when Python is running
in WOW64 mode on 64 bit Windows.

..

.. bpo: 0
.. date: 7937
.. nonce: ZMh4CS
.. section: Library

logging: Added getChild utility method to Logger and added isEnabledFor
method to LoggerAdapter.

..

.. bpo: 8201
.. date: 7936
.. nonce: Zsfq9o
.. section: Library

logging: Handle situation of non-ASCII and Unicode logger names existing at
the same time, causing a Unicode error when configuration code attempted to
sort the existing loggers.

..

.. bpo: 8200
.. date: 7935
.. nonce: QhAmka
.. section: Library

logging: Handle errors when multiprocessing is not fully loaded when logging
occurs.

..

.. bpo: 3890
.. date: 7934
.. nonce: LxiC0p
.. section: Library

Fix recv() and recv_into() on non-blocking SSL sockets. Also, enable the
SSL_MODE_AUTO_RETRY flag on SSL sockets, so that blocking reads and writes
are always retried by OpenSSL itself. (See also: bpo-8222)

..

.. bpo: 8179
.. date: 7933
.. nonce: 8H5ich
.. section: Library

Fix macpath.realpath() on a non-existing path.

..

.. bpo: 8024
.. date: 7932
.. nonce: OWylMQ
.. section: Library

Update the Unicode database to 5.2.

..

.. bpo: 8104
.. date: 7931
.. nonce: sE4WnG
.. section: Library

socket.recv_into() and socket.recvfrom_into() now support writing into
objects supporting the new buffer API, for example bytearrays or
memoryviews.

..

.. bpo: 4961
.. date: 7930
.. nonce: WDc-2x
.. section: Library

Inconsistent/wrong result of askyesno function in tkMessageBox with
Tcl/Tk-8.5.

..

.. bpo: 8140
.. date: 7929
.. nonce: GfkB7_
.. section: Library

Extend compileall to compile single files.  Add -i option.

..

.. bpo: 7774
.. date: 7928
.. nonce: BddO6b
.. section: Library

Set sys.executable to an empty string if ``argv[0]`` has been set to a non
existent program name and Python is unable to retrieve the real program
name.

..

.. bpo: 8117
.. date: 7927
.. nonce: CFgyRD
.. section: Library

logging: Improved algorithm for computing initial rollover time for
``TimedRotatingFileHandler`` by using the modification time of an existing
log file to compute the next rollover time.  If the log file does not exist,
the current time is used as the basis for the computation.

..

.. bpo: 6472
.. date: 7926
.. nonce: c0VR0M
.. section: Library

The ``xml.etree`` package is updated to ElementTree 1.3.  The cElementTree
module is updated too.

..

.. bpo: 7880
.. date: 7925
.. nonce: oSpS50
.. section: Library

Fix sysconfig when the python executable is a symbolic link.

..

.. bpo: 7624
.. date: 7924
.. nonce: P9QTki
.. section: Library

Fix ``isinstance(foo(), collections.Callable)`` for old-style classes.

..

.. bpo: 7143
.. date: 7923
.. nonce: A30Qss
.. section: Library

email: ``get_payload()`` used to strip any trailing newline from a base64
transfer-encoded payload *after* decoding it; it no longer does. This is a
behavior change, so email's minor version number is now bumped, to version
4.0.2, for the 2.7 release.

..

.. bpo: 8235
.. date: 7922
.. nonce: 7txk3-
.. section: Library

_socket: Add the constant ``SO_SETFIB``.  SO_SETFIB is a socket option
available on FreeBSD 7.1 and newer.

..

.. bpo: 8038
.. date: 7921
.. nonce: GrZDC3
.. section: Library

unittest.TestCase.assertNotRegexpMatches

..

.. bpo: 0
.. date: 7920
.. nonce: V2kHuO
.. section: Library

Addition of -b command line option to unittest for buffering stdout / stderr
during test runs.

..

.. bpo: 1220212
.. date: 7919
.. nonce: GqZ0L4
.. section: Library

Added os.kill support for Windows, including support for sending CTRL+C and
CTRL+BREAK events to console subprocesses.

..

.. bpo: 8314
.. date: 7918
.. nonce: s45vVC
.. section: Library

Fix unsigned long long bug in libffi on Sparc v8.

..

.. bpo: 1039
.. date: 7917
.. nonce: BQUTJH
.. section: Library

Fix os.execlp() crash with missing 2nd argument. (See also: bpo-8154)

..

.. bpo: 8156
.. date: 7916
.. nonce: 5LG8uP
.. section: Library

bsddb module updated to version 4.8.4.
http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.8.4.  This update drops
support for Berkeley DB 4.0, and adds support for 4.8.

..

.. bpo: 3928
.. date: 7915
.. nonce: kY8ENm
.. section: Library

os.mknod() now available in Solaris, also.

..

.. bpo: 8142
.. date: 7914
.. nonce: ArTkHw
.. section: Library

Update libffi to the 3.0.9 release.

..

.. bpo: 8300
.. date: 7913
.. nonce: fAkvVk
.. section: Library

When passing a non-integer argument to struct.pack with any integer format
code, struct.pack first attempts to convert the non-integer using its
__index__ method.  If that method is non-existent or raises TypeError it
goes on to try the __int__ method, as described below.

..

.. bpo: 1530559
.. date: 7912
.. nonce: KXF5m2
.. section: Library

When passing a non-integer argument to struct.pack with *any* integer format
code (one of 'bBhHiIlLqQ'), struct.pack attempts to use the argument's
__int__ method to convert to an integer before packing.  It also produces a
DeprecationWarning in this case.  (In Python 2.6, the behaviour was
inconsistent: __int__ was used for some integer codes but not for others,
and the set of integer codes for which it was used differed between native
packing and standard packing.)

..

.. bpo: 7347
.. date: 7911
.. nonce: RdqRiz
.. section: Library

_winreg: Add CreateKeyEx and DeleteKeyEx, as well as fix a bug in the return
value of QueryReflectionKey.

..

.. bpo: 7993
.. date: 7910
.. nonce: M7oNRJ
.. section: Tools/Demos

Add a test of IO packet processing bandwidth to ccbench.  It measures the
number of UDP packets processed per second depending on the number of
background CPU-bound Python threads.

..

.. bpo: 0
.. date: 7909
.. nonce: KeNbfw
.. section: Tools/Demos

python-config now supports multiple options on the same command line.

..

.. bpo: 8032
.. date: 7908
.. nonce: gv-Du9
.. section: Build

For gdb7, a python-gdb.py file is added to the build, allowing to use
advanced gdb features when debugging Python.

..

.. bpo: 1628484
.. date: 7907
.. nonce: wcrSr1
.. section: Build

The Makefile doesn't ignore the CFLAGS environment variable anymore.  It
also forwards the LDFLAGS settings to the linker when building a shared
library.

..

.. bpo: 6716
.. date: 7906
.. nonce: tQLBdR
.. section: Build

Quote -x arguments of compileall in MSI installer.

..

.. bpo: 7705
.. date: 7905
.. nonce: sw6ifg
.. section: Build

Fix linking on FreeBSD.

..

.. bpo: 0
.. date: 7904
.. nonce: Dm_ncE
.. section: Build

Make sure that the FreeBSD build of the included libffi uses the proper
assembly file.

..

.. bpo: 8276
.. date: 7903
.. nonce: 40pgLF
.. section: C API

PyEval_CallObject() is now only available in macro form.  The function
declaration, which was kept for backwards compatibility reasons, is now
removed (the macro was introduced in 1997!).

..

.. bpo: 7992
.. date: 7902
.. nonce: 2eLlya
.. section: C API

A replacement PyCObject API, PyCapsule, has been backported from Python 3.1.
All existing Python CObjects in the main distribution have been converted to
capsules.  To address backwards-compatibility concerns,
PyCObject_AsVoidPtr() was changed to understand capsules.

..

.. bpo: 3864
.. date: 7901
.. nonce: bkbNiO
.. section: Tests

Skip three test_signal tests on freebsd6 because they fail if any thread was
previously started, most likely due to a platform bug.

..

.. bpo: 8348
.. date: 7900
.. nonce: Nygf2t
.. section: Tests

Fix test ftp url in test_urllib2net.

..

.. bpo: 8204
.. date: 7899
.. nonce: iYMJ7_
.. section: Tests

Fix test_ttk notebook test by forcing focus.

..

.. bpo: 8344
.. date: 7898
.. nonce: kt2Sq_
.. section: Tests

Fix test_ttk bug on FreeBSD.

..

.. bpo: 8193
.. date: 7897
.. nonce: T8MbIc
.. section: Tests

Fix test_zlib failure with zlib 1.2.4.

..

.. bpo: 8248
.. date: 7896
.. nonce: pBx5bT
.. section: Tests

Add some tests for the bool type.  Patch by Gregory Nofi.

..

.. bpo: 8263
.. date: 7895
.. nonce: zNUf-5
.. section: Tests

Now regrtest.py will report a failure if it receives a KeyboardInterrupt
(SIGINT).

..

.. bpo: 8180
.. date: 7894
.. nonce: yyLvZY
.. section: Tests

Fix test_pep277 on OS X and add more tests for special Unicode normalization
cases. (See also: bpo-8207)

..

.. bpo: 7783
.. date: 7893
.. nonce: K20ttO
.. section: Tests

test.test_support.open_urlresource invalidates the outdated files from the
local cache.