summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/3.6.0a3.rst
blob: e585bc76cf89ee6551bdae6e41a1c6f20ef3c429 (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
.. bpo: 27473
.. date: 9085
.. nonce: _nOtTA
.. release date: 2016-07-11
.. section: Core and Builtins

Fixed possible integer overflow in bytes and bytearray concatenations.
Patch by Xiang Zhang.

..

.. bpo: 23034
.. date: 9084
.. nonce: GWaUqn
.. section: Core and Builtins

The output of a special Python build with defined COUNT_ALLOCS,
SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT macros is now off by  default.  It can
be re-enabled using the "-X showalloccount" option.  It now outputs to
stderr instead of stdout.

..

.. bpo: 27443
.. date: 9083
.. nonce: 87ZwZ1
.. section: Core and Builtins

__length_hint__() of bytearray iterators no longer return a negative integer
for a resized bytearray.

..

.. bpo: 27007
.. date: 9082
.. nonce: Gg8Um4
.. section: Core and Builtins

The fromhex() class methods of bytes and bytearray subclasses now return an
instance of corresponding subclass.

..

.. bpo: 26844
.. date: 9081
.. nonce: I0wdnY
.. section: Library

Fix error message for imp.find_module() to refer to 'path' instead of
'name'. Patch by Lev Maximov.

..

.. bpo: 23804
.. date: 9080
.. nonce: ipFvxc
.. section: Library

Fix SSL zero-length recv() calls to not block and not raise an error about
unclean EOF.

..

.. bpo: 27466
.. date: 9079
.. nonce: C_3a8E
.. section: Library

Change time format returned by http.cookie.time2netscape, confirming the
netscape cookie format and making it consistent with documentation.

..

.. bpo: 21708
.. date: 9078
.. nonce: RpPYiv
.. section: Library

Deprecated dbm.dumb behavior that differs from common dbm behavior: creating
a database in 'r' and 'w' modes and modifying a database in 'r' mode.

..

.. bpo: 26721
.. date: 9077
.. nonce: L37Y7r
.. section: Library

Change the socketserver.StreamRequestHandler.wfile attribute to implement
BufferedIOBase. In particular, the write() method no longer does partial
writes.

..

.. bpo: 22115
.. date: 9076
.. nonce: vG5UQW
.. section: Library

Added methods trace_add, trace_remove and trace_info in the tkinter.Variable
class.  They replace old methods trace_variable, trace, trace_vdelete and
trace_vinfo that use obsolete Tcl commands and might not work in future
versions of Tcl.  Fixed old tracing methods: trace_vdelete() with wrong mode
no longer break tracing, trace_vinfo() now always returns a list of pairs of
strings, tracing in the "u" mode now works.

..

.. bpo: 26243
.. date: 9075
.. nonce: dBtlhI
.. section: Library

Only the level argument to zlib.compress() is keyword argument now.  The
first argument is positional-only.

..

.. bpo: 27038
.. date: 9074
.. nonce: yGMV4h
.. section: Library

Expose the DirEntry type as os.DirEntry. Code patch by Jelle Zijlstra.

..

.. bpo: 27186
.. date: 9073
.. nonce: OtorpF
.. section: Library

Update os.fspath()/PyOS_FSPath() to check the return value of __fspath__()
to be either str or bytes.

..

.. bpo: 18726
.. date: 9072
.. nonce: eIXHIl
.. section: Library

All optional parameters of the dump(), dumps(), load() and loads() functions
and JSONEncoder and JSONDecoder class constructors in the json module are
now keyword-only.

..

.. bpo: 27319
.. date: 9071
.. nonce: vDl2zm
.. section: Library

Methods selection_set(), selection_add(), selection_remove() and
selection_toggle() of ttk.TreeView now allow passing multiple items as
multiple arguments instead of passing them as a tuple.  Deprecated
undocumented ability of calling the selection() method with arguments.

..

.. bpo: 27079
.. date: 9070
.. nonce: c7d0Ym
.. section: Library

Fixed curses.ascii functions isblank(), iscntrl() and ispunct().

..

.. bpo: 27294
.. date: 9069
.. nonce: 0WSp9y
.. section: Library

Numerical state in the repr for Tkinter event objects is now represented as
a combination of known flags.

..

.. bpo: 27177
.. date: 9068
.. nonce: U6jRnd
.. section: Library

Match objects in the re module now support index-like objects as group
indices.  Based on patches by Jeroen Demeyer and Xiang Zhang.

..

.. bpo: 26754
.. date: 9067
.. nonce: J3n0QW
.. section: Library

Some functions (compile() etc) accepted a filename argument encoded as an
iterable of integers. Now only strings and byte-like objects are accepted.

..

.. bpo: 26536
.. date: 9066
.. nonce: DgLWm-
.. section: Library

socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by Daniel Stokes.

..

.. bpo: 27048
.. date: 9065
.. nonce: EVe-Bk
.. section: Library

Prevents distutils failing on Windows when environment variables contain
non-ASCII characters

..

.. bpo: 27330
.. date: 9064
.. nonce: GJaFCV
.. section: Library

Fixed possible leaks in the ctypes module.

..

.. bpo: 27238
.. date: 9063
.. nonce: Q6v6Qv
.. section: Library

Got rid of bare excepts in the turtle module.  Original patch by Jelle
Zijlstra.

..

.. bpo: 27122
.. date: 9062
.. nonce: 06t7zN
.. section: Library

When an exception is raised within the context being managed by a
contextlib.ExitStack() and one of the exit stack generators catches and
raises it in a chain, do not re-raise the original exception when exiting,
let the new chained one through.  This avoids the PEP 479 bug described in
issue25782.

..

.. bpo: 27278
.. date: 9061
.. nonce: y_HkGw
.. original section: Library
.. section: Security

Fix os.urandom() implementation using getrandom() on Linux.  Truncate size
to INT_MAX and loop until we collected enough random bytes, instead of
casting a directly Py_ssize_t to int.

..

.. bpo: 16864
.. date: 9060
.. nonce: W7tJDa
.. section: Library

sqlite3.Cursor.lastrowid now supports REPLACE statement. Initial patch by
Alex LordThorsen.

..

.. bpo: 26386
.. date: 9059
.. nonce: 9L3Ut4
.. section: Library

Fixed ttk.TreeView selection operations with item id's containing spaces.

..

.. bpo: 8637
.. date: 9058
.. nonce: lHiUSA
.. section: Library

Honor a pager set by the env var MANPAGER (in preference to one set by the
env var PAGER).

..

.. bpo: 22636
.. date: 9057
.. nonce: 3fQW_g
.. original section: Library
.. section: Security

Avoid shell injection problems with ctypes.util.find_library().

..

.. bpo: 16182
.. date: 9056
.. nonce: RgFXyr
.. section: Library

Fix various functions in the "readline" module to use the locale encoding,
and fix get_begidx() and get_endidx() to return code point indexes.

..

.. bpo: 27392
.. date: 9055
.. nonce: obfni7
.. section: Library

Add loop.connect_accepted_socket(). Patch by Jim Fulton.

..

.. bpo: 27477
.. date: 9054
.. nonce: iEuL-9
.. section: IDLE

IDLE search dialogs now use ttk widgets.

..

.. bpo: 27173
.. date: 9053
.. 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: 9052
.. nonce: dLxZ8W
.. section: IDLE

make command line "idle-test> python test_help.py" work. __file__ is
relative when python is started in the file's directory.

..

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

add line counter and crc to IDLE configHandler test dump.

..

.. bpo: 27380
.. date: 9050
.. nonce: Q39r9U
.. section: IDLE

IDLE: add query.py with base Query dialog and ttk widgets. Module had
subclasses SectionName, ModuleName, and HelpSource, which are used to get
information from users by configdialog and file =>Load Module. Each subclass
has itw own validity checks.  Using ModuleName allows users to edit bad
module names instead of starting over. Add tests and delete the two files
combined into the new one.

..

.. bpo: 27372
.. date: 9049
.. nonce: k3Wj2V
.. section: IDLE

Test_idle no longer changes the locale.

..

.. bpo: 27365
.. date: 9048
.. nonce: y7ys_A
.. section: IDLE

Allow non-ascii chars in IDLE NEWS.txt, for contributor names.

..

.. bpo: 27245
.. date: 9047
.. nonce: u9aKO1
.. section: IDLE

IDLE: Cleanly delete custom themes and key bindings. Previously, when IDLE
was started from a console or by import, a cascade of warnings was emitted.
Patch by Serhiy Storchaka.

..

.. bpo: 24137
.. date: 9046
.. nonce: v8o-IT
.. section: IDLE

Run IDLE, test_idle, and htest with tkinter default root disabled.  Fix code
and tests that fail with this restriction.  Fix htests to not create a
second and redundant root and mainloop.

..

.. bpo: 27310
.. date: 9045
.. nonce: KiURpC
.. section: IDLE

Fix IDLE.app failure to launch on OS X due to vestigial import.

..

.. bpo: 26754
.. date: 9044
.. nonce: Qm_N79
.. section: C API

PyUnicode_FSDecoder() accepted a filename argument encoded as an iterable of
integers. Now only strings and byte-like objects are accepted.

..

.. bpo: 28066
.. date: 9043
.. nonce: _3xImV
.. section: Build

Fix the logic that searches build directories for generated include files
when building outside the source tree.

..

.. bpo: 27442
.. date: 9042
.. nonce: S2M0cz
.. section: Build

Expose the Android API level that python was built against, in
sysconfig.get_config_vars() as 'ANDROID_API_LEVEL'.

..

.. bpo: 27434
.. date: 9041
.. nonce: 4nRZmn
.. section: Build

The interpreter that runs the cross-build, found in PATH, must now be of the
same feature version (e.g. 3.6) as the source being built.

..

.. bpo: 26930
.. date: 9040
.. nonce: 9JUeSD
.. section: Build

Update Windows builds to use OpenSSL 1.0.2h.

..

.. bpo: 23968
.. date: 9039
.. nonce: 7AuSK9
.. section: Build

Rename the platform directory from plat-$(MACHDEP) to
plat-$(PLATFORM_TRIPLET). Rename the config directory (LIBPL) from
config-$(LDVERSION) to config-$(LDVERSION)-$(PLATFORM_TRIPLET). Install the
platform specific _sysconfigdata module into the platform directory and
rename it to include the ABIFLAGS.

..

.. bpo: 0
.. date: 9038
.. nonce: U46i2u
.. section: Build

Don't use largefile support for GNU/Hurd.

..

.. bpo: 27332
.. date: 9037
.. nonce: OuRZp9
.. section: Tools/Demos

Fixed the type of the first argument of module-level functions generated by
Argument Clinic.  Patch by Petr Viktorin.

..

.. bpo: 27418
.. date: 9036
.. nonce: W2m_8I
.. section: Tools/Demos

Fixed Tools/importbench/importbench.py.

..

.. bpo: 19489
.. date: 9035
.. nonce: jvzuO7
.. section: Documentation

Moved the search box from the sidebar to the header and footer of each page.
Patch by Ammar Askar.

..

.. bpo: 27285
.. date: 9034
.. nonce: wZur0b
.. section: Documentation

Update documentation to reflect the deprecation of ``pyvenv`` and normalize
on the term "virtual environment". Patch by Steve Piercy.

..

.. bpo: 27027
.. date: 9033
.. nonce: 5oRSGL
.. section: Tests

Added test.support.is_android that is True when this is an Android build.