summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/3.6.0b2.rst
blob: 627465e887bc185523f2906c1fd24535e8bf7ba8 (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
.. bpo: 28183
.. date: 9707
.. nonce: MJZeNd
.. release date: 2016-10-10
.. section: Core and Builtins

Optimize and cleanup dict iteration.

..

.. bpo: 26081
.. date: 9706
.. nonce: _x5vjl
.. section: Core and Builtins

Added C implementation of asyncio.Future. Original patch by Yury Selivanov.

..

.. bpo: 28379
.. date: 9705
.. nonce: DuXlco
.. section: Core and Builtins

Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang
Zhang.

..

.. bpo: 28376
.. date: 9704
.. nonce: oPD-5D
.. section: Core and Builtins

The type of long range iterator is now registered as Iterator. Patch by Oren
Milman.

..

.. bpo: 28376
.. date: 9703
.. nonce: YEy-uG
.. section: Core and Builtins

Creating instances of range_iterator by calling range_iterator type now is
deprecated.  Patch by Oren Milman.

..

.. bpo: 28376
.. date: 9702
.. nonce: fLeHM2
.. section: Core and Builtins

The constructor of range_iterator now checks that step is not 0. Patch by
Oren Milman.

..

.. bpo: 26906
.. date: 9701
.. nonce: YBjcwI
.. section: Core and Builtins

Resolving special methods of uninitialized type now causes implicit
initialization of the type instead of a fail.

..

.. bpo: 18287
.. date: 9700
.. nonce: k6jffS
.. section: Core and Builtins

PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas
Koep.

..

.. bpo: 24098
.. date: 9699
.. nonce: XqlP_1
.. section: Core and Builtins

Fixed possible crash when AST is changed in process of compiling it.

..

.. bpo: 28201
.. date: 9698
.. nonce: GWUxAy
.. section: Core and Builtins

Dict reduces possibility of 2nd conflict in hash table when hashes have same
lower bits.

..

.. bpo: 28350
.. date: 9697
.. nonce: 8M5Eg9
.. section: Core and Builtins

String constants with null character no longer interned.

..

.. bpo: 26617
.. date: 9696
.. nonce: Gh5LvN
.. section: Core and Builtins

Fix crash when GC runs during weakref callbacks.

..

.. bpo: 27942
.. date: 9695
.. nonce: ZGuhns
.. section: Core and Builtins

String constants now interned recursively in tuples and frozensets.

..

.. bpo: 21578
.. date: 9694
.. nonce: GI1bhj
.. section: Core and Builtins

Fixed misleading error message when ImportError called with invalid keyword
args.

..

.. bpo: 28203
.. date: 9693
.. nonce: LRn5vp
.. section: Core and Builtins

Fix incorrect type in complex(1.0, {2:3}) error message. Patch by Soumya
Sharma.

..

.. bpo: 28086
.. date: 9692
.. nonce: JsQPMQ
.. section: Core and Builtins

Single var-positional argument of tuple subtype was passed unscathed to the
C-defined function.  Now it is converted to exact tuple.

..

.. bpo: 28214
.. date: 9691
.. nonce: zQF8Em
.. section: Core and Builtins

Now __set_name__ is looked up on the class instead of the instance.

..

.. bpo: 27955
.. date: 9690
.. nonce: HC4pZ4
.. section: Core and Builtins

Fallback on reading /dev/urandom device when the getrandom() syscall fails
with EPERM, for example when blocked by SECCOMP.

..

.. bpo: 28192
.. date: 9689
.. nonce: eR6stU
.. section: Core and Builtins

Don't import readline in isolated mode.

..

.. bpo: 0
.. date: 9688
.. nonce: 9EbOiD
.. section: Core and Builtins

Upgrade internal unicode databases to Unicode version 9.0.0.

..

.. bpo: 28131
.. date: 9687
.. nonce: owq0wW
.. section: Core and Builtins

Fix a regression in zipimport's compile_source().  zipimport should use the
same optimization level as the interpreter.

..

.. bpo: 28126
.. date: 9686
.. nonce: Qf6-uQ
.. section: Core and Builtins

Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize
memcpy().

..

.. bpo: 28120
.. date: 9685
.. nonce: e5xc1i
.. section: Core and Builtins

Fix dict.pop() for splitted dictionary when trying to remove a "pending key"
(Not yet inserted in split-table). Patch by Xiang Zhang.

..

.. bpo: 26182
.. date: 9684
.. nonce: jYlqTO
.. section: Core and Builtins

Raise DeprecationWarning when async and await keywords are used as
variable/attribute/class/function name.

..

.. bpo: 27998
.. date: 9683
.. nonce: CPhy4H
.. section: Library

Fixed bytes path support in os.scandir() on Windows. Patch by Eryk Sun.

..

.. bpo: 28317
.. date: 9682
.. nonce: LgHleA
.. section: Library

The disassembler now decodes FORMAT_VALUE argument.

..

.. bpo: 26293
.. date: 9681
.. nonce: 2mjvwX
.. section: Library

Fixed writing ZIP files that starts not from the start of the file.  Offsets
in ZIP file now are relative to the start of the archive in conforming to
the specification.

..

.. bpo: 28380
.. date: 9680
.. nonce: jKPMzH
.. section: Library

unittest.mock Mock autospec functions now properly support assert_called,
assert_not_called, and assert_called_once.

..

.. bpo: 27181
.. date: 9679
.. nonce: SQyDpC
.. section: Library

remove statistics.geometric_mean and defer until 3.7.

..

.. bpo: 28229
.. date: 9678
.. nonce: BKAxcS
.. section: Library

lzma module now supports pathlib.

..

.. bpo: 28321
.. date: 9677
.. nonce: bQ-IIX
.. section: Library

Fixed writing non-BMP characters with binary format in plistlib.

..

.. bpo: 28225
.. date: 9676
.. nonce: 6N28nu
.. section: Library

bz2 module now supports pathlib.  Initial patch by Ethan Furman.

..

.. bpo: 28227
.. date: 9675
.. nonce: 7lUz8i
.. section: Library

gzip now supports pathlib.  Patch by Ethan Furman.

..

.. bpo: 27358
.. date: 9674
.. nonce: t288Iv
.. section: Library

Optimized merging var-keyword arguments and improved error message when
passing a non-mapping as a var-keyword argument.

..

.. bpo: 28257
.. date: 9673
.. nonce: SVD_IH
.. section: Library

Improved error message when passing a non-iterable as a var-positional
argument.  Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.

..

.. bpo: 28322
.. date: 9672
.. nonce: l9hzap
.. section: Library

Fixed possible crashes when unpickle itertools objects from incorrect pickle
data.  Based on patch by John Leitch.

..

.. bpo: 28228
.. date: 9671
.. nonce: 1qBwdM
.. section: Library

imghdr now supports pathlib.

..

.. bpo: 28226
.. date: 9670
.. nonce: nMXiwU
.. section: Library

compileall now supports pathlib.

..

.. bpo: 28314
.. date: 9669
.. nonce: N7YrkN
.. section: Library

Fix function declaration (C flags) for the getiterator() method of
xml.etree.ElementTree.Element.

..

.. bpo: 28148
.. date: 9668
.. nonce: Flzndx
.. section: Library

Stop using localtime() and gmtime() in the time module.
Introduced platform independent _PyTime_localtime API that is similar to
POSIX localtime_r, but available on all platforms.  Patch by Ed Schouten.

..

.. bpo: 28253
.. date: 9667
.. nonce: aLfmhe
.. section: Library

Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.

..

.. bpo: 28275
.. date: 9666
.. nonce: EhWIsz
.. section: Library

Fixed possible use after free in the decompress() methods of the
LZMADecompressor and BZ2Decompressor classes. Original patch by John Leitch.

..

.. bpo: 27897
.. date: 9665
.. nonce: I0Ppmx
.. section: Library

Fixed possible crash in sqlite3.Connection.create_collation() if pass
invalid string-like object as a name.  Patch by Xiang Zhang.

..

.. bpo: 18844
.. date: 9664
.. nonce: fQsEdn
.. section: Library

random.choices() now has k as a keyword-only argument to improve the
readability of common cases and come into line with the signature used in
other languages.

..

.. bpo: 18893
.. date: 9663
.. nonce: osiX5c
.. section: Library

Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. Patch by
Madison May.

..

.. bpo: 27611
.. date: 9662
.. nonce: A_ArH_
.. section: Library

Fixed support of default root window in the tkinter.tix module. Added the
master parameter in the DisplayStyle constructor.

..

.. bpo: 27348
.. date: 9661
.. nonce: tDx7Vw
.. section: Library

In the traceback module, restore the formatting of exception messages like
"Exception: None".  This fixes a regression introduced in 3.5a2.

..

.. bpo: 25651
.. date: 9660
.. nonce: 3UhyPo
.. section: Library

Allow falsy values to be used for msg parameter of subTest().

..

.. bpo: 27778
.. date: 9659
.. nonce: Yyo1aP
.. section: Library

Fix a memory leak in os.getrandom() when the getrandom() is interrupted by a
signal and a signal handler raises a Python exception.

..

.. bpo: 28200
.. date: 9658
.. nonce: 4IEbr7
.. section: Library

Fix memory leak on Windows in the os module (fix path_converter() function).

..

.. bpo: 25400
.. date: 9657
.. nonce: d9Qn0E
.. section: Library

RobotFileParser now correctly returns default values for crawl_delay and
request_rate.  Initial patch by Peter Wirtz.

..

.. bpo: 27932
.. date: 9656
.. nonce: mtgl-6
.. section: Library

Prevent memory leak in win32_ver().

..

.. bpo: 0
.. date: 9655
.. nonce: iPpjqX
.. section: Library

Fix UnboundLocalError in socket._sendfile_use_sendfile.

..

.. bpo: 28075
.. date: 9654
.. nonce: aLiUs9
.. section: Library

Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat().  Patch
by Eryk Sun.

..

.. bpo: 22493
.. date: 9653
.. nonce: Mv_hZf
.. section: Library

Warning message emitted by using inline flags in the middle of regular
expression now contains a (truncated) regex pattern. Patch by Tim Graham.

..

.. bpo: 25270
.. date: 9652
.. nonce: jrZruM
.. section: Library

Prevent codecs.escape_encode() from raising SystemError when an empty
bytestring is passed.

..

.. bpo: 28181
.. date: 9651
.. nonce: NGc4Yv
.. section: Library

Get antigravity over HTTPS. Patch by Kaartic Sivaraam.

..

.. bpo: 25895
.. date: 9650
.. nonce: j92qoQ
.. section: Library

Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by Gergely Imreh
and Markus Holtermann.

..

.. bpo: 28114
.. date: 9649
.. nonce: gmFXsA
.. section: Library

Fix a crash in parse_envlist() when env contains byte strings. Patch by Eryk
Sun.

..

.. bpo: 27599
.. date: 9648
.. nonce: itvm8T
.. section: Library

Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().

..

.. bpo: 27906
.. date: 9647
.. nonce: TBBXrv
.. section: Library

Fix socket accept exhaustion during high TCP traffic. Patch by Kevin Conway.

..

.. bpo: 28174
.. date: 9646
.. nonce: CV1UdI
.. section: Library

Handle when SO_REUSEPORT isn't properly supported. Patch by Seth Michael
Larson.

..

.. bpo: 26654
.. date: 9645
.. nonce: XtzTE9
.. section: Library

Inspect functools.partial in asyncio.Handle.__repr__. Patch by iceboy.

..

.. bpo: 26909
.. date: 9644
.. nonce: ASiakT
.. section: Library

Fix slow pipes IO in asyncio. Patch by INADA Naoki.

..

.. bpo: 28176
.. date: 9643
.. nonce: sU8R6L
.. section: Library

Fix callbacks race in asyncio.SelectorLoop.sock_connect.

..

.. bpo: 27759
.. date: 9642
.. nonce: qpMDGq
.. section: Library

Fix selectors incorrectly retain invalid file descriptors. Patch by Mark
Williams.

..

.. bpo: 28368
.. date: 9641
.. nonce: fGl9y4
.. section: Library

Refuse monitoring processes if the child watcher has no loop attached. Patch
by Vincent Michel.

..

.. bpo: 28369
.. date: 9640
.. nonce: 8DTANe
.. section: Library

Raise RuntimeError when transport's FD is used with add_reader, add_writer,
etc.

..

.. bpo: 28370
.. date: 9639
.. nonce: 18jBuZ
.. section: Library

Speedup asyncio.StreamReader.readexactly. Patch by Коренберг Марк.

..

.. bpo: 28371
.. date: 9638
.. nonce: U9Zqdk
.. section: Library

Deprecate passing asyncio.Handles to run_in_executor.

..

.. bpo: 28372
.. date: 9637
.. nonce: njcIPk
.. section: Library

Fix asyncio to support formatting of non-python coroutines.

..

.. bpo: 28399
.. date: 9636
.. nonce: QKIqRX
.. section: Library

Remove UNIX socket from FS before binding. Patch by Коренберг Марк.

..

.. bpo: 27972
.. date: 9635
.. nonce: ZK-GFm
.. section: Library

Prohibit Tasks to await on themselves.

..

.. bpo: 28402
.. date: 9634
.. nonce: v9zETJ
.. section: Windows

Adds signed catalog files for stdlib on Windows.

..

.. bpo: 28333
.. date: 9633
.. nonce: KnpeO4
.. section: Windows

Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun)

..

.. bpo: 28251
.. date: 9632
.. nonce: tR_AFs
.. section: Windows

Improvements to help manuals on Windows.

..

.. bpo: 28110
.. date: 9631
.. nonce: cnkP5F
.. section: Windows

launcher.msi has different product codes between 32-bit and 64-bit

..

.. bpo: 28161
.. date: 9630
.. nonce: hF91LI
.. section: Windows

Opening CON for write access fails

..

.. bpo: 28162
.. date: 9629
.. nonce: 3FHPVD
.. section: Windows

WindowsConsoleIO readall() fails if first line starts with Ctrl+Z

..

.. bpo: 28163
.. date: 9628
.. nonce: -DUgJw
.. section: Windows

WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle

..

.. bpo: 28164
.. date: 9627
.. nonce: 5MfN0J
.. section: Windows

_PyIO_get_console_type fails for various paths

..

.. bpo: 28137
.. date: 9626
.. nonce: C1uvzY
.. section: Windows

Renames Windows path file to ._pth

..

.. bpo: 28138
.. date: 9625
.. nonce: pNdv64
.. section: Windows

Windows ._pth file should allow import site

..

.. bpo: 28426
.. date: 9624
.. nonce: zPwvbI
.. section: C API

Deprecated undocumented functions PyUnicode_AsEncodedObject(),
PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and
PyUnicode_AsEncodedUnicode().

..

.. bpo: 28258
.. date: 9623
.. nonce: iKtAHd
.. section: Build

Fixed build with Estonian locale (python-config and distclean targets in
Makefile).  Patch by Arfrever Frehtes Taifersar Arahesis.

..

.. bpo: 26661
.. date: 9622
.. nonce: Z_HNbs
.. section: Build

setup.py now detects system libffi with multiarch wrapper.

..

.. bpo: 15819
.. date: 9621
.. nonce: QVDr3E
.. section: Build

Remove redundant include search directory option for building outside the
source tree.

..

.. bpo: 28217
.. date: 9620
.. nonce: Y37OKV
.. section: Tests

Adds _testconsole module to test console input.