summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/3.6.0a4.rst
blob: d613fd5d928b6545efe8271e2fbf23d0e2a8a498 (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
.. bpo: 27704
.. date: 9455
.. nonce: RUxzHf
.. release date: 2016-08-15
.. section: Core and Builtins

Optimized creating bytes and bytearray from byte-like objects and iterables.
Speed up to 3 times for short objects.  Original patch by Naoki Inada.

..

.. bpo: 26823
.. date: 9454
.. nonce: UWORiU
.. section: Core and Builtins

Large sections of repeated lines in tracebacks are now abbreviated as
"[Previous line repeated {count} more times]" by the builtin traceback
rendering. Patch by Emanuel Barry.

..

.. bpo: 27574
.. date: 9453
.. nonce: q73Tss
.. section: Core and Builtins

Decreased an overhead of parsing keyword arguments in functions implemented
with using Argument Clinic.

..

.. bpo: 22557
.. date: 9452
.. nonce: Hta2Rz
.. section: Core and Builtins

Now importing already imported modules is up to 2.5 times faster.

..

.. bpo: 17596
.. date: 9451
.. nonce: XgbA9V
.. section: Core and Builtins

Include <wincrypt.h> to help with Min GW building.

..

.. bpo: 17599
.. date: 9450
.. nonce: noy7o1
.. section: Core and Builtins

On Windows, rename the privately defined REPARSE_DATA_BUFFER structure to
avoid conflicting with the definition from Min GW.

..

.. bpo: 27507
.. date: 9449
.. nonce: 3pX0Be
.. section: Core and Builtins

Add integer overflow check in bytearray.extend().  Patch by Xiang Zhang.

..

.. bpo: 27581
.. date: 9448
.. nonce: KezjNt
.. section: Core and Builtins

Don't rely on wrapping for overflow check in PySequence_Tuple().  Patch by
Xiang Zhang.

..

.. bpo: 1621
.. date: 9447
.. nonce: _FZWTr
.. section: Core and Builtins

Avoid signed integer overflow in list and tuple operations. Patch by Xiang
Zhang.

..

.. bpo: 27419
.. date: 9446
.. nonce: YaGodL
.. section: Core and Builtins

Standard __import__() no longer look up "__import__" in globals or builtins
for importing submodules or "from import".  Fixed a crash if raise a warning
about unabling to resolve package from __spec__ or __package__.

..

.. bpo: 27083
.. date: 9445
.. nonce: F4ZT1C
.. section: Core and Builtins

Respect the PYTHONCASEOK environment variable under Windows.

..

.. bpo: 27514
.. date: 9444
.. nonce: NLbwPG
.. section: Core and Builtins

Make having too many statically nested blocks a SyntaxError instead of
SystemError.

..

.. bpo: 27366
.. date: 9443
.. nonce: VrInsj
.. section: Core and Builtins

Implemented :pep:`487` (Simpler customization of class creation). Upon
subclassing, the __init_subclass__ classmethod is called on the base class.
Descriptors are initialized with __set_name__ after class creation.

..

.. bpo: 26027
.. date: 9442
.. nonce: nfVMKM
.. section: Library

Add :pep:`519`/__fspath__() support to the os and os.path modules. Includes
code from Jelle Zijlstra. (See also: bpo-27524)

..

.. bpo: 27598
.. date: 9441
.. nonce: y7PtEV
.. section: Library

Add Collections to collections.abc. Patch by Ivan Levkivskyi, docs by Neil
Girdhar.

..

.. bpo: 25958
.. date: 9440
.. nonce: X-V4U1
.. section: Library

Support "anti-registration" of special methods from various ABCs, like
__hash__, __iter__ or __len__.  All these (and several more) can be set to
None in an implementation class and the behavior will be as if the method is
not defined at all. (Previously, this mechanism existed only for __hash__,
to make mutable classes unhashable.)  Code contributed by Andrew Barnert and
Ivan Levkivskyi.

..

.. bpo: 16764
.. date: 9439
.. nonce: cPbNjL
.. section: Library

Support keyword arguments to zlib.decompress().  Patch by Xiang Zhang.

..

.. bpo: 27736
.. date: 9438
.. nonce: 8kMhpQ
.. section: Library

Prevent segfault after interpreter re-initialization due to ref count
problem introduced in code for Issue #27038 in 3.6.0a3. Patch by Xiang
Zhang.

..

.. bpo: 25628
.. date: 9437
.. nonce: UcQnHF
.. section: Library

The *verbose* and *rename* parameters for collections.namedtuple are now
keyword-only.

..

.. bpo: 12345
.. date: 9436
.. nonce: nbAEM8
.. section: Library

Add mathematical constant tau to math and cmath. See also :pep:`628`.

..

.. bpo: 26823
.. date: 9435
.. nonce: HcO8tR
.. section: Library

traceback.StackSummary.format now abbreviates large sections of repeated
lines as "[Previous line repeated {count} more times]" (this change then
further affects other traceback display operations in the module). Patch by
Emanuel Barry.

..

.. bpo: 27664
.. date: 9434
.. nonce: 6DJPxw
.. section: Library

Add to concurrent.futures.thread.ThreadPoolExecutor() the ability to specify
a thread name prefix.

..

.. bpo: 27181
.. date: 9433
.. nonce: 8aw9TZ
.. section: Library

Add geometric_mean and harmonic_mean to statistics module.

..

.. bpo: 27573
.. date: 9432
.. nonce: B7XhTs
.. section: Library

code.interact now prints an message when exiting.

..

.. bpo: 6422
.. date: 9431
.. nonce: iBSc45
.. section: Library

Add autorange method to timeit.Timer objects.

..

.. bpo: 27773
.. date: 9430
.. nonce: hMSSeX
.. section: Library

Correct some memory management errors server_hostname in _ssl.wrap_socket().

..

.. bpo: 26750
.. date: 9429
.. nonce: OQn3fr
.. section: Library

unittest.mock.create_autospec() now works properly for subclasses of
property() and other data descriptors.  Removes the never publicly used,
never documented unittest.mock.DescriptorTypes tuple.

..

.. bpo: 26754
.. date: 9428
.. nonce: XZqomf
.. section: Library

Undocumented support of general bytes-like objects as path in compile() and
similar functions is now deprecated.

..

.. bpo: 26800
.. date: 9427
.. nonce: QDcK8u
.. section: Library

Undocumented support of general bytes-like objects as paths in os functions
is now deprecated.

..

.. bpo: 26981
.. date: 9426
.. nonce: yhNTCf
.. section: Library

Add _order_ compatibility shim to enum.Enum for Python 2/3 code bases.

..

.. bpo: 27661
.. date: 9425
.. nonce: 3JZckO
.. section: Library

Added tzinfo keyword argument to datetime.combine.

..

.. bpo: 0
.. date: 9424
.. nonce: Ny9oPv
.. section: Library

In the curses module, raise an error if window.getstr() or window.instr() is
passed a negative value.

..

.. bpo: 27783
.. date: 9423
.. nonce: cR1jXH
.. section: Library

Fix possible usage of uninitialized memory in operator.methodcaller.

..

.. bpo: 27774
.. date: 9422
.. nonce: FDcik1
.. section: Library

Fix possible Py_DECREF on unowned object in _sre.

..

.. bpo: 27760
.. date: 9421
.. nonce: gxMjp4
.. section: Library

Fix possible integer overflow in binascii.b2a_qp.

..

.. bpo: 27758
.. date: 9420
.. nonce: 0NRV03
.. section: Library

Fix possible integer overflow in the _csv module for large record lengths.

..

.. bpo: 27568
.. date: 9419
.. nonce: OnuO9s
.. section: Library

Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the HTTP_PROXY variable
when REQUEST_METHOD environment is set, which indicates that the script is
in CGI mode.

..

.. bpo: 7063
.. date: 9418
.. nonce: nXsVKB
.. section: Library

Remove dead code from the "array" module's slice handling. Patch by Chuck.

..

.. bpo: 27656
.. date: 9417
.. nonce: joTscM
.. section: Library

Do not assume sched.h defines any SCHED_* constants.

..

.. bpo: 27130
.. date: 9416
.. nonce: SUxwXZ
.. section: Library

In the "zlib" module, fix handling of large buffers (typically 4 GiB) when
compressing and decompressing.  Previously, inputs were limited to 4 GiB,
and compression and decompression operations did not properly handle results
of 4 GiB.

..

.. bpo: 24773
.. date: 9415
.. nonce: IDW05R
.. section: Library

Implemented :pep:`495` (Local Time Disambiguation).

..

.. bpo: 0
.. date: 9414
.. nonce: lOkwM8
.. section: Library

Expose the EPOLLEXCLUSIVE constant (when it is defined) in the select
module.

..

.. bpo: 27567
.. date: 9413
.. nonce: bYOgyw
.. section: Library

Expose the EPOLLRDHUP and POLLRDHUP constants in the select module.

..

.. bpo: 1621
.. date: 9412
.. nonce: 0nclmI
.. section: Library

Avoid signed int negation overflow in the "audioop" module.

..

.. bpo: 27533
.. date: 9411
.. nonce: iDmKzV
.. section: Library

Release GIL in nt._isdir

..

.. bpo: 17711
.. date: 9410
.. nonce: 47AILJ
.. section: Library

Fixed unpickling by the persistent ID with protocol 0. Original patch by
Alexandre Vassalotti.

..

.. bpo: 27522
.. date: 9409
.. nonce: 8vVz_t
.. section: Library

Avoid an unintentional reference cycle in email.feedparser.

..

.. bpo: 27512
.. date: 9408
.. nonce: FaGwup
.. section: Library

Fix a segfault when os.fspath() called an __fspath__() method that raised an
exception. Patch by Xiang Zhang.

..

.. bpo: 27714
.. date: 9407
.. nonce: bUEDsI
.. section: IDLE

text_textview and test_autocomplete now pass when re-run in the same
process.  This occurs when test_idle fails when run with the -w option but
without -jn.  Fix warning from test_config.

..

.. bpo: 27621
.. date: 9406
.. nonce: BcpOPU
.. section: IDLE

Put query response validation error messages in the query box itself instead
of in a separate messagebox.  Redo tests to match. Add Mac OSX refinements.
Original patch by Mark Roseman.

..

.. bpo: 27620
.. date: 9405
.. nonce: TXRR6x
.. section: IDLE

Escape key now closes Query box as cancelled.

..

.. bpo: 27609
.. date: 9404
.. nonce: MbTuKa
.. section: IDLE

IDLE: tab after initial whitespace should tab, not autocomplete. This fixes
problem with writing docstrings at least twice indented.

..

.. bpo: 27609
.. date: 9403
.. nonce: OBYgv_
.. section: IDLE

Explicitly return None when there are also non-None returns. In a few cases,
reverse a condition and eliminate a return.

..

.. bpo: 25507
.. date: 9402
.. nonce: lxf68d
.. section: IDLE

IDLE no longer runs buggy code because of its tkinter imports. Users must
include the same imports required to run directly in Python.

..

.. bpo: 27173
.. date: 9401
.. nonce: M-fYaV
.. section: IDLE

Add 'IDLE Modern Unix' to the built-in key sets. Make the default key set
depend on the platform. Add tests for the changes to the config module.

..

.. bpo: 27452
.. date: 9400
.. nonce: RtWnyR
.. section: IDLE

add line counter and crc to IDLE configHandler test dump.

..

.. bpo: 25805
.. date: 9399
.. nonce: 9SVxXQ
.. section: Tests

Skip a test in test_pkgutil as needed that doesn't work when ``__name__ ==
__main__``. Patch by SilentGhost.

..

.. bpo: 27472
.. date: 9398
.. nonce: NS3L93
.. section: Tests

Add test.support.unix_shell as the path to the default shell.

..

.. bpo: 27369
.. date: 9397
.. nonce: LG7U2D
.. section: Tests

In test_pyexpat, avoid testing an error message detail that changed in Expat
2.2.0.

..

.. bpo: 27594
.. date: 9396
.. nonce: w3F57B
.. section: Tests

Prevent assertion error when running test_ast with coverage enabled: ensure
code object has a valid first line number. Patch suggested by Ivan
Levkivskyi.

..

.. bpo: 27647
.. date: 9395
.. nonce: -1HUR6
.. section: Windows

Update bundled Tcl/Tk to 8.6.6.

..

.. bpo: 27610
.. date: 9394
.. nonce: O0o0mB
.. section: Windows

Adds :pep:`514` metadata to Windows installer

..

.. bpo: 27469
.. date: 9393
.. nonce: 0GwDkX
.. section: Windows

Adds a shell extension to the launcher so that drag and drop works
correctly.

..

.. bpo: 27309
.. date: 9392
.. nonce: chiOo6
.. section: Windows

Enables proper Windows styles in python[w].exe manifest.

..

.. bpo: 27713
.. date: 9391
.. nonce: _3DgXG
.. section: Build

Suppress spurious build warnings when updating importlib's bootstrap files.
Patch by Xiang Zhang

..

.. bpo: 25825
.. date: 9390
.. nonce: MLbdVU
.. section: Build

Correct the references to Modules/python.exp, which is required on AIX.  The
references were accidentally changed in 3.5.0a1.

..

.. bpo: 27453
.. date: 9389
.. nonce: Pb5DBi
.. section: Build

CPP invocation in configure must use CPPFLAGS. Patch by Chi Hsuan Yen.

..

.. bpo: 27641
.. date: 9388
.. nonce: eGzgCk
.. section: Build

The configure script now inserts comments into the makefile to prevent the
pgen and _freeze_importlib executables from being cross-compiled.

..

.. bpo: 26662
.. date: 9387
.. nonce: XkwRxM
.. section: Build

Set PYTHON_FOR_GEN in configure as the Python program to be used for file
generation during the build.

..

.. bpo: 10910
.. date: 9386
.. nonce: ZdRayb
.. section: Build

Avoid C++ compilation errors on FreeBSD and OS X. Also update FreedBSD
version checks for the original ctype UTF-8 workaround.