summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/3.5.0a4.rst
blob: f60aa0a22d1979b84a7c522dfd23d4f03076faf3 (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
.. bpo: 22980
.. date: 9109
.. nonce: Lu_y6y
.. release date: 2015-04-19
.. section: Core and Builtins

Under Linux, GNU/KFreeBSD and the Hurd, C extensions now include the
architecture triplet in the extension name, to make it easy to test builds
for different ABIs in the same working tree.  Under OS X, the extension name
now includes :pep:`3149`-style information.

..

.. bpo: 22631
.. date: 9108
.. nonce: nTx_ZF
.. section: Core and Builtins

Added Linux-specific socket constant CAN_RAW_FD_FRAMES. Patch courtesy of
Joe Jevnik.

..

.. bpo: 23731
.. date: 9107
.. nonce: FOXb37
.. section: Core and Builtins

Implement :pep:`488`: removal of .pyo files.

..

.. bpo: 23726
.. date: 9106
.. nonce: ZopTQ0
.. section: Core and Builtins

Don't enable GC for user subclasses of non-GC types that don't add any new
fields.  Patch by Eugene Toder.

..

.. bpo: 23309
.. date: 9105
.. nonce: Wfnsnz
.. section: Core and Builtins

Avoid a deadlock at shutdown if a daemon thread is aborted while it is
holding a lock to a buffered I/O object, and the main thread tries to use
the same I/O object (typically stdout or stderr).  A fatal error is emitted
instead.

..

.. bpo: 22977
.. date: 9104
.. nonce: hutEse
.. section: Core and Builtins

Fixed formatting Windows error messages on Wine. Patch by Martin Panter.

..

.. bpo: 23466
.. date: 9103
.. nonce: KhMltK
.. section: Core and Builtins

%c, %o, %x, and %X in bytes formatting now raise TypeError on non-integer
input.

..

.. bpo: 24044
.. date: 9102
.. nonce: H7vb6-
.. section: Core and Builtins

Fix possible null pointer dereference in list.sort in out of memory
conditions.

..

.. bpo: 21354
.. date: 9101
.. nonce: ZZTe1E
.. section: Core and Builtins

PyCFunction_New function is exposed by python DLL again.

..

.. bpo: 23840
.. date: 9100
.. nonce: mtSbqO
.. section: Library

tokenize.open() now closes the temporary binary file on error to fix a
resource warning.

..

.. bpo: 16914
.. date: 9099
.. nonce: GrP2Jr
.. section: Library

new debuglevel 2 in smtplib adds timestamps to debug output.

..

.. bpo: 7159
.. date: 9098
.. nonce: KCgOUm
.. section: Library

urllib.request now supports sending auth credentials automatically after the
first 401.  This enhancement is a superset of the enhancement from issue
#19494 and supersedes that change.

..

.. bpo: 23703
.. date: 9097
.. nonce: kYybxm
.. section: Library

Fix a regression in urljoin() introduced in 901e4e52b20a. Patch by Demian
Brecht.

..

.. bpo: 4254
.. date: 9096
.. nonce: eUC_2H
.. section: Library

Adds _curses.update_lines_cols().  Patch by Arnon Yaari

..

.. bpo: 19933
.. date: 9095
.. nonce: Qq8utk
.. section: Library

Provide default argument for ndigits in round. Patch by Vajrasky Kok.

..

.. bpo: 23193
.. date: 9094
.. nonce: n5ahcG
.. section: Library

Add a numeric_owner parameter to tarfile.TarFile.extract and
tarfile.TarFile.extractall. Patch by Michael Vogt and Eric Smith.

..

.. bpo: 23342
.. date: 9093
.. nonce: CbSzYI
.. section: Library

Add a subprocess.run() function than returns a CalledProcess instance for a
more consistent API than the existing call* functions.

..

.. bpo: 21217
.. date: 9092
.. nonce: TkFTlk
.. section: Library

inspect.getsourcelines() now tries to compute the start and end lines from
the code object, fixing an issue when a lambda function is used as decorator
argument. Patch by Thomas Ballinger and Allison Kaptur.

..

.. bpo: 24521
.. date: 9091
.. nonce: bn4U-y
.. section: Library

Fix possible integer overflows in the pickle module.

..

.. bpo: 22931
.. date: 9090
.. nonce: 4CuWYD
.. section: Library

Allow '[' and ']' in cookie values.

..

.. bpo: 0
.. date: 9089
.. nonce: fgX8Qe
.. section: Library

The keywords attribute of functools.partial is now always a dictionary.

..

.. bpo: 23811
.. date: 9088
.. nonce: B6tzf9
.. section: Library

Add missing newline to the PyCompileError error message. Patch by Alex
Shkop.

..

.. bpo: 21116
.. date: 9087
.. nonce: Orft3K
.. section: Library

Avoid blowing memory when allocating a multiprocessing shared array that's
larger than 50% of the available RAM.  Patch by Médéric Boquien.

..

.. bpo: 22982
.. date: 9086
.. nonce: xYmG62
.. section: Library

Improve BOM handling when seeking to multiple positions of a writable text
file.

..

.. bpo: 23464
.. date: 9085
.. nonce: _XGkBk
.. section: Library

Removed deprecated asyncio JoinableQueue.

..

.. bpo: 23529
.. date: 9084
.. nonce: Hr7AHH
.. section: Library

Limit the size of decompressed data when reading from GzipFile, BZ2File or
LZMAFile.  This defeats denial of service attacks using compressed bombs
(i.e. compressed payloads which decompress to a huge size).  Patch by Martin
Panter and Nikolaus Rath.

..

.. bpo: 21859
.. date: 9083
.. nonce: GYrUNP
.. section: Library

Added Python implementation of io.FileIO.

..

.. bpo: 23865
.. date: 9082
.. nonce: PtSLgU
.. section: Library

close() methods in multiple modules now are idempotent and more robust at
shutdown. If they need to release multiple resources, all are released even
if errors occur.

..

.. bpo: 23400
.. date: 9081
.. nonce: JSh9Z3
.. section: Library

Raise same exception on both Python 2 and 3 if sem_open is not available.
Patch by Davin Potts.

..

.. bpo: 10838
.. date: 9080
.. nonce: p9tSPC
.. section: Library

The subprocess now module includes SubprocessError and TimeoutError in its
list of exported names for the users wild enough to use ``from subprocess
import *``.

..

.. bpo: 23411
.. date: 9079
.. nonce: 0im3Qw
.. section: Library

Added DefragResult, ParseResult, SplitResult, DefragResultBytes,
ParseResultBytes, and SplitResultBytes to urllib.parse.__all__. Patch by
Martin Panter.

..

.. bpo: 23881
.. date: 9078
.. nonce: yZjl4b
.. section: Library

urllib.request.ftpwrapper constructor now closes the socket if the FTP
connection failed to fix a ResourceWarning.

..

.. bpo: 23853
.. date: 9077
.. nonce: mNY1eI
.. section: Library

:meth:`socket.socket.sendall` does no more reset the socket timeout each
time data is sent successfully. The socket timeout is now the maximum total
duration to send all data.

..

.. bpo: 22721
.. date: 9076
.. nonce: MVfBL9
.. section: Library

An order of multiline pprint output of set or dict containing orderable and
non-orderable elements no longer depends on iteration order of set or dict.

..

.. bpo: 15133
.. date: 9075
.. nonce: C0QfV8
.. section: Library

_tkinter.tkapp.getboolean() now supports Tcl_Obj and always returns bool.
tkinter.BooleanVar now validates input values (accepted bool, int, str, and
Tcl_Obj).  tkinter.BooleanVar.get() now always returns bool.

..

.. bpo: 10590
.. date: 9074
.. nonce: nkxXfU
.. section: Library

xml.sax.parseString() now supports string argument.

..

.. bpo: 23338
.. date: 9073
.. nonce: ZYMGN1
.. section: Library

Fixed formatting ctypes error messages on Cygwin. Patch by Makoto Kato.

..

.. bpo: 15582
.. date: 9072
.. nonce: 26wJNk
.. section: Library

inspect.getdoc() now follows inheritance chains.

..

.. bpo: 2175
.. date: 9071
.. nonce: cHiVOp
.. section: Library

SAX parsers now support a character stream of InputSource object.

..

.. bpo: 16840
.. date: 9070
.. nonce: kKIhPm
.. section: Library

Tkinter now supports 64-bit integers added in Tcl 8.4 and arbitrary
precision integers added in Tcl 8.5.

..

.. bpo: 23834
.. date: 9069
.. nonce: fX3TF4
.. section: Library

Fix socket.sendto(), use the C Py_ssize_t type to store the result of
sendto() instead of the C int type.

..

.. bpo: 23618
.. date: 9068
.. nonce: Of_q5t
.. section: Library

:meth:`socket.socket.connect` now waits until the connection completes
instead of raising :exc:`InterruptedError` if the connection is interrupted
by signals, signal handlers don't raise an exception and the socket is
blocking or has a timeout. :meth:`socket.socket.connect` still raise
:exc:`InterruptedError` for non-blocking sockets.

..

.. bpo: 21526
.. date: 9067
.. nonce: QQEXrR
.. section: Library

Tkinter now supports new boolean type in Tcl 8.5.

..

.. bpo: 23836
.. date: 9066
.. nonce: zrEmlR
.. section: Library

Fix the faulthandler module to handle reentrant calls to its signal
handlers.

..

.. bpo: 23838
.. date: 9065
.. nonce: IX6FPX
.. section: Library

linecache now clears the cache and returns an empty result on MemoryError.

..

.. bpo: 10395
.. date: 9064
.. nonce: fi_lZp
.. section: Library

Added os.path.commonpath(). Implemented in posixpath and ntpath. Based on
patch by Rafik Draoui.

..

.. bpo: 23611
.. date: 9063
.. nonce: QkBJVB
.. section: Library

Serializing more "lookupable" objects (such as unbound methods or nested
classes) now are supported with pickle protocols < 4.

..

.. bpo: 13583
.. date: 9062
.. nonce: -MPBjZ
.. section: Library

sqlite3.Row now supports slice indexing.

..

.. bpo: 18473
.. date: 9061
.. nonce: 89RHm-
.. section: Library

Fixed 2to3 and 3to2 compatible pickle mappings.  Fixed ambiguous reverse
mappings.  Added many new mappings.  Import mapping is no longer applied to
modules already mapped with full name mapping.

..

.. bpo: 23485
.. date: 9060
.. nonce: kQWN6L
.. section: Library

select.select() is now retried automatically with the recomputed timeout
when interrupted by a signal, except if the signal handler raises an
exception. This change is part of the :pep:`475`.

..

.. bpo: 23752
.. date: 9059
.. nonce: 5fbVNb
.. section: Library

When built from an existing file descriptor, io.FileIO() now only calls
fstat() once. Before fstat() was called twice, which was not necessary.

..

.. bpo: 23704
.. date: 9058
.. nonce: Ggjvm8
.. section: Library

collections.deque() objects now support __add__, __mul__, and __imul__().

..

.. bpo: 23171
.. date: 9057
.. nonce: b6PBzM
.. section: Library

csv.Writer.writerow() now supports arbitrary iterables.

..

.. bpo: 23745
.. date: 9056
.. nonce: E00Bml
.. section: Library

The new email header parser now handles duplicate MIME parameter names
without error, similar to how get_param behaves.

..

.. bpo: 22117
.. date: 9055
.. nonce: bTO0xx
.. section: Library

Fix os.utime(), it now rounds the timestamp towards minus infinity (-inf)
instead of rounding towards zero.

..

.. bpo: 23310
.. date: 9054
.. nonce: GXmFMR
.. section: Library

Fix MagicMock's initializer to work with __methods__, just like
configure_mock().  Patch by Kasia Jachim.

..

.. bpo: 23817
.. date: 9053
.. nonce: DTmVan
.. section: Build

FreeBSD now uses "1.0" in the SOVERSION as other operating systems, instead
of just "1".

..

.. bpo: 23501
.. date: 9052
.. nonce: iz10e6
.. section: Build

Argument Clinic now generates code into separate files by default.

..

.. bpo: 23799
.. date: 9051
.. nonce: XU2xDw
.. section: Tests

Added test.support.start_threads() for running and cleaning up multiple
threads.

..

.. bpo: 22390
.. date: 9050
.. nonce: UPVFnq
.. section: Tests

test.regrtest now emits a warning if temporary files or directories are left
after running a test.

..

.. bpo: 18128
.. date: 9049
.. nonce: lx2V5a
.. section: Tools/Demos

pygettext now uses standard +NNNN format in the POT-Creation-Date header.

..

.. bpo: 23935
.. date: 9048
.. nonce: JSYowT
.. section: Tools/Demos

Argument Clinic's understanding of format units accepting bytes, bytearrays,
and buffers is now consistent with both the documentation and the
implementation.

..

.. bpo: 23944
.. date: 9047
.. nonce: Q8ZL2s
.. section: Tools/Demos

Argument Clinic now wraps long impl prototypes at column 78.

..

.. bpo: 20586
.. date: 9046
.. nonce: 7BiEkx
.. section: Tools/Demos

Argument Clinic now ensures that functions without docstrings have
signatures.

..

.. bpo: 23492
.. date: 9045
.. nonce: kjIcQW
.. section: Tools/Demos

Argument Clinic now generates argument parsing code with PyArg_Parse instead
of PyArg_ParseTuple if possible.

..

.. bpo: 23500
.. date: 9044
.. nonce: H6_dX_
.. section: Tools/Demos

Argument Clinic is now smarter about generating the "#ifndef" (empty)
definition of the methoddef macro: it's only generated once, even if
Argument Clinic processes the same symbol multiple times, and it's emitted
at the end of all processing rather than immediately after the first use.

..

.. bpo: 23998
.. date: 9043
.. nonce: z7mlLW
.. section: C API

PyImport_ReInitLock() now checks for lock allocation error