blob: 99c914815e52da7c3b0c725264151876e19f2d0f [file] [log] [blame]
Łukasz Langad93605d2019-08-29 23:59:20 +02001.. bpo: 34155
2.. date: 2019-05-04-13-33-37
3.. nonce: MJll68
4.. release date: 2019-08-29
5.. section: Security
6
7Fix parsing of invalid email addresses with more than one ``@`` (e.g.
8a@b@c.com.) to not return the part before 2nd ``@`` as valid email address.
9Patch by maxking & jpic.
10
11..
12
13.. bpo: 37947
14.. date: 2019-08-26-04-09-57
15.. nonce: mzAQtB
16.. section: Core and Builtins
17
18Adjust correctly the recursion level in the symtable generation for named
19expressions. Patch by Pablo Galindo.
20
21..
22
23.. bpo: 37830
24.. date: 2019-08-17-18-41-59
25.. nonce: fNfMbz
26.. section: Core and Builtins
27
28Fixed compilation of :keyword:`break` and :keyword:`continue` in the
29:keyword:`finally` block when the corresponding :keyword:`try` block
30contains :keyword:`return` with a non-constant value.
31
32..
33
34.. bpo: 32912
35.. date: 2019-08-06-14-03-59
36.. nonce: UDwSMJ
37.. section: Core and Builtins
38
39Reverted :issue:`32912`: emitting :exc:`SyntaxWarning` instead of
40:exc:`DeprecationWarning` for invalid escape sequences in string and bytes
41literals.
42
43..
44
45.. bpo: 37757
46.. date: 2019-08-05-14-22-59
47.. nonce: lRv5HX
48.. section: Core and Builtins
49
50:pep:`572`: As described in the PEP, assignment expressions now raise
51:exc:`SyntaxError` when their interaction with comprehension scoping results
52in an ambiguous target scope.
53
54The ``TargetScopeError`` subclass originally proposed by the PEP has been
55removed in favour of just raising regular syntax errors for the disallowed
56cases.
57
58..
59
60.. bpo: 36311
61.. date: 2019-08-02-15-01-33
62.. nonce: uY5vt-
63.. section: Core and Builtins
64
65Decoding bytes objects larger than 2GiB is faster and no longer fails when a
66multibyte characters spans a chunk boundary.
67
68..
69
70.. bpo: 37433
71.. date: 2019-06-27-15-01-14
72.. nonce: amNGqr
73.. section: Core and Builtins
74
75Fix ``SyntaxError`` indicator printing too many spaces for multi-line
76strings - by Anthony Sottile.
77
78..
79
80.. bpo: 20523
81.. date: 2019-02-15-20-42-36
82.. nonce: rRLrvr
83.. section: Core and Builtins
84
85``pdb.Pdb`` supports ~/.pdbrc in Windows 7. Patch by Tim Hopper and Dan
86Lidral-Porter.
87
88..
89
90.. bpo: 37834
91.. date: 2019-08-29-16-41-36
92.. nonce: FThnsh
93.. section: Library
94
95Prevent shutil.rmtree exception when built on non-Windows system without fd
96system call support, like older versions of macOS.
97
98..
99
100.. bpo: 37965
101.. date: 2019-08-28-14-04-18
102.. nonce: 7xGE-C
103.. section: Library
104
105Fix C compiler warning caused by distutils.ccompiler.CCompiler.has_function.
106
107..
108
109.. bpo: 37960
110.. date: 2019-08-27-10-52-13
111.. nonce: CTY7Lw
112.. section: Library
113
114``repr()`` of buffered and text streams now silences only expected
115exceptions when get the value of "name" and "mode" attributes.
116
117..
118
119.. bpo: 37951
120.. date: 2019-08-27-10-03-48
121.. nonce: MfRQgL
122.. section: Library
123
124Most features of the subprocess module now work again in subinterpreters.
125Only *preexec_fn* is restricted in subinterpreters.
126
127..
128
129.. bpo: 36205
130.. date: 2019-08-27-03-53-26
131.. nonce: AfkGRl
132.. section: Library
133
134Fix the rusage implementation of time.process_time() to correctly report the
135sum of the system and user CPU time.
136
137..
138
139.. bpo: 37950
140.. date: 2019-08-26-10-45-51
141.. nonce: -K1IKT
142.. section: Library
143
144Fix :func:`ast.dump` when call with incompletely initialized node.
145
146..
147
148.. bpo: 34679
149.. date: 2019-08-25-18-07-48
150.. nonce: HECzL7
151.. section: Library
152
153Restores instantiation of Windows IOCP event loops from the non-main thread.
154
155..
156
157.. bpo: 36917
158.. date: 2019-08-25-14-56-42
159.. nonce: GBxdw2
160.. section: Library
161
162Add default implementation of the :meth:`ast.NodeVisitor.visit_Constant`
163method which emits a deprecation warning and calls corresponding methody
164``visit_Num()``, ``visit_Str()``, etc.
165
166..
167
168.. bpo: 37798
169.. date: 2019-08-24-16-54-49
170.. nonce: 7mRQCk
171.. section: Library
172
173Update test_statistics.py to verify that the statistics module works well
174for both C and Python implementations. Patch by Dong-hee Na
175
176..
177
178.. bpo: 26589
179.. date: 2019-08-23-00-55-19
180.. nonce: M1xyxG
181.. section: Library
182
183Added a new status code to the http module: 451
184UNAVAILABLE_FOR_LEGAL_REASONS
185
186..
187
188.. bpo: 37915
189.. date: 2019-08-22-16-13-27
190.. nonce: xyoZI5
191.. section: Library
192
193Fix a segmentation fault that appeared when comparing instances of
194``datetime.timezone`` and ``datetime.tzinfo`` objects. Patch by Pablo
195Galindo.
196
197..
198
199.. bpo: 37868
200.. date: 2019-08-17-22-33-54
201.. nonce: hp64fi
202.. section: Library
203
204Fix dataclasses.is_dataclass when given an instance that never raises
205AttributeError in __getattr__. That is, an object that returns something
206for __dataclass_fields__ even if it's not a dataclass.
207
208..
209
210.. bpo: 37811
211.. date: 2019-08-14-21-41-07
212.. nonce: d1xYj7
213.. section: Library
214
215Fix ``socket`` module's ``socket.connect(address)`` function being unable to
216establish connection in case of interrupted system call. The problem was
217observed on all OSes which ``poll(2)`` system call can take only
218non-negative integers and -1 as a timeout value.
219
220..
221
222.. bpo: 21131
223.. date: 2019-08-14-15-34-23
224.. nonce: 0MMQRi
225.. section: Library
226
227Fix ``faulthandler.register(chain=True)`` stack. faulthandler now allocates
228a dedicated stack of ``SIGSTKSZ*2`` bytes, instead of just ``SIGSTKSZ``
229bytes. Calling the previous signal handler in faulthandler signal handler
230uses more than ``SIGSTKSZ`` bytes of stack memory on some platforms.
231
232..
233
234.. bpo: 37798
235.. date: 2019-08-14-13-51-24
236.. nonce: AmXrik
237.. section: Library
238
239Add C fastpath for statistics.NormalDist.inv_cdf() Patch by Dong-hee Na
240
241..
242
243.. bpo: 37819
244.. date: 2019-08-11-10-34-19
245.. nonce: LVJls-
246.. section: Library
247
248Add Fraction.as_integer_ratio() to match the corresponding methods in bool,
249int, float, and decimal.
250
251..
252
253.. bpo: 37810
254.. date: 2019-08-10-12-33-27
255.. nonce: d4zbvB
256.. section: Library
257
258Fix :mod:`difflib` ``?`` hint in diff output when dealing with tabs. Patch
259by Anthony Sottile.
260
261..
262
263.. bpo: 37772
264.. date: 2019-08-07-23-48-09
265.. nonce: hLCvdn
266.. section: Library
267
268In ``zipfile.Path``, when adding implicit dirs, ensure that ancestral
269directories are added and that duplicates are excluded.
270
271..
272
273.. bpo: 28292
274.. date: 2019-08-04-11-47-58
275.. nonce: vkihH5
276.. section: Library
277
278Mark calendar.py helper functions as being private. The follows PEP 8
279guidance to maintain the style conventions in the module and it addresses a
280known case of user confusion.
281
282..
283
284.. bpo: 18049
285.. date: 2019-08-02-16-44-42
286.. nonce: OA4qBL
287.. section: Library
288
289Add definition of THREAD_STACK_SIZE for AIX in Python/thread_pthread.h The
290default thread stacksize caused crashes with the default recursion limit
291Patch by M Felt
292
293..
294
295.. bpo: 37738
296.. date: 2019-08-01-17-11-16
297.. nonce: A3WWcT
298.. section: Library
299
300Fix the implementation of curses ``addch(str, color_pair)``: pass the color
301pair to ``setcchar()``, instead of always passing 0 as the color pair.
302
303..
304
305.. bpo: 37723
306.. date: 2019-07-31-16-49-01
307.. nonce: zq6tw8
308.. section: Library
309
310Fix performance regression on regular expression parsing with huge character
311sets. Patch by Yann Vaginay.
312
313..
314
315.. bpo: 32178
316.. date: 2019-07-30-22-41-05
317.. nonce: X-IFLe
318.. section: Library
319
320Fix IndexError in :mod:`email` package when trying to parse invalid address
321fields starting with ``:``.
322
323..
324
325.. bpo: 37685
326.. date: 2019-07-28-22-25-25
327.. nonce: _3bN9f
328.. section: Library
329
330Fixed comparisons of :class:`datetime.timedelta` and
331:class:`datetime.timezone`.
332
333..
334
335.. bpo: 37695
336.. date: 2019-07-27-20-21-03
337.. nonce: QANdvg
338.. section: Library
339
340Correct :func:`curses.unget_wch` error message. Patch by Anthony Sottile.
341
342..
343
344.. bpo: 37354
345.. date: 2019-07-25-10-28-40
346.. nonce: RT3_3H
347.. section: Library
348
349Make Activate.ps1 Powershell script static to allow for signing it.
350
351..
352
353.. bpo: 37664
354.. date: 2019-07-24-18-27-44
355.. nonce: o-GYZC
356.. section: Library
357
358Update wheels bundled with ensurepip (pip 19.2.3 and setuptools 41.2.0)
359
360..
361
362.. bpo: 37642
363.. date: 2019-07-21-20-59-31
364.. nonce: L61Bvy
365.. section: Library
366
367Allowed the pure Python implementation of :class:`datetime.timezone` to
368represent sub-minute offsets close to minimum and maximum boundaries,
369specifically in the ranges (23:59, 24:00) and (-23:59, 24:00). Patch by
370Ngalim Siregar
371
372..
373
374.. bpo: 16970
375.. date: 2019-07-19-01-46-56
376.. nonce: GEASf5
377.. section: Library
378
379Adding a value error when an invalid value in passed to nargs Patch by
380Robert Leenders
381
382..
383
384.. bpo: 37587
385.. date: 2019-07-13-16-02-48
386.. nonce: fd-1aF
387.. section: Library
388
389Make json.loads faster for long strings. (Patch by Marco Paolini)
390
391..
392
393.. bpo: 18378
394.. date: 2019-07-13-13-40-12
395.. nonce: NHcojp
396.. section: Library
397
398Recognize "UTF-8" as a valid value for LC_CTYPE in locale._parse_localename.
399
400..
401
402.. bpo: 37531
403.. date: 2019-07-09-19-38-26
404.. nonce: GX7s8S
405.. section: Library
406
407"python3 -m test -jN --timeout=TIMEOUT" now kills a worker process if it
408runs longer than *TIMEOUT* seconds.
409
410..
411
412.. bpo: 37482
413.. date: 2019-07-09-11-20-21
414.. nonce: auzvev
415.. section: Library
416
417Fix serialization of display name in originator or destination address
418fields with both encoded words and special chars.
419
420..
421
422.. bpo: 37372
423.. date: 2019-06-22-12-30-00
424.. nonce: kIKqZ6
425.. section: Library
426
427Fix error unpickling datetime.time objects from Python 2 with seconds>=24.
428Patch by Justin Blanchard.
429
430..
431
432.. bpo: 37085
433.. date: 2019-06-18-16-29-31
434.. nonce: GeYaD6
435.. section: Library
436
437Add the optional Linux SocketCAN Broadcast Manager constants, used as flags
438to configure the BCM behaviour, in the socket module. Patch by Karl Ding.
439
440..
441
442.. bpo: 36871
443.. date: 2019-05-12-12-58-37
444.. nonce: 6xiEHZ
445.. section: Library
446
447Ensure method signature is used instead of constructor signature of a class
448while asserting mock object against method calls. Patch by Karthikeyan
449Singaravelan.
450
451..
452
453.. bpo: 36582
454.. date: 2019-05-07-17-42-36
455.. nonce: L_dxR6
456.. section: Library
457
458Fix ``UserString.encode()`` to correctly return ``bytes`` rather than a
459``UserString`` instance.
460
461..
462
463.. bpo: 34775
464.. date: 2018-09-23-03-18-52
465.. nonce: vHeuHk
466.. section: Library
467
468Division handling of PurePath now returns NotImplemented instead of raising
469a TypeError when passed something other than an instance of str or PurePath.
470Patch by Roger Aiudi.
471
472..
473
474.. bpo: 37979
475.. date: 2019-08-29-10-40-05
476.. nonce: TAUx_E
477.. section: Documentation
478
479Added a link to dateutil.parser.isoparse in the datetime.fromisoformat
480documentation. Patch by Paul Ganssle
481
482..
483
484.. bpo: 37759
485.. date: 2019-08-04-19-20-58
486.. nonce: EHRF4i
487.. section: Documentation
488
489Beginning edits to Whatsnew 3.8
490
491..
492
493.. bpo: 37726
494.. date: 2019-07-31-11-40-06
495.. nonce: h-3o9a
496.. section: Documentation
497
498Stop recommending getopt in the tutorial for command line argument parsing
499and promote argparse.
500
501..
502
503.. bpo: 37256
504.. date: 2019-07-16-14-48-12
505.. nonce: qJTrBb
506.. section: Documentation
507
508Fix wording of arguments for :class:`Request` in :mod:`urllib.request`
509
510..
511
512.. bpo: 37004
513.. date: 2019-05-22-04-30-07
514.. nonce: BRgxrt
515.. section: Documentation
516
517In the documentation for difflib, a note was added explicitly warning that
518the results of SequenceMatcher's ratio method may depend on the order of the
519input strings.
520
521..
522
523.. bpo: 36487
524.. date: 2019-04-02-19-23-00
525.. nonce: Jg6-MG
526.. section: Documentation
527
528Make C-API docs clear about what the "main" interpreter is.
529
530..
531
532.. bpo: 37805
533.. date: 2019-08-25-19-51-46
534.. nonce: Kl1sti
535.. section: Tests
536
537Add tests for json.dump(..., skipkeys=True). Patch by Dong-hee Na.
538
539..
540
541.. bpo: 37707
542.. date: 2019-07-29-11-36-16
543.. nonce: Sm-dGk
544.. section: Build
545
546Mark some individual tests to skip when --pgo is used. The tests marked
547increase the PGO task time significantly and likely don't help improve
548optimization of the final executable.
549
550..
551
552.. bpo: 37549
553.. date: 2019-08-22-09-04-44
554.. nonce: TpKI3M
555.. section: Windows
556
557:func:`os.dup` no longer fails for standard streams on Windows 7.
558
559..
560
561.. bpo: 1311
562.. date: 2019-08-21-12-58-18
563.. nonce: BoW1wU
564.. section: Windows
565
566The ``nul`` file on Windows now returns True from :func:`~os.path.exists`
567and a valid result from :func:`os.stat` with ``S_IFCHR`` set.
568
569..
570
571.. bpo: 9949
572.. date: 2019-08-14-13-40-15
573.. nonce: zW45Ks
574.. section: Windows
575
576Enable support for following symlinks in :func:`os.realpath`.
577
578..
579
580.. bpo: 37834
581.. date: 2019-08-12-12-00-24
582.. nonce: VB2QVj
583.. section: Windows
584
585Treat all name surrogate reparse points on Windows in :func:`os.lstat` and
586other reparse points as regular files in :func:`os.stat`.
587
588..
589
590.. bpo: 36266
591.. date: 2019-08-08-18-05-27
592.. nonce: x4eZU3
593.. section: Windows
594
595Add the module name in the formatted error message when DLL load fail
596happens during module import in ``_PyImport_FindSharedFuncptrWindows()``.
597Patch by Srinivas Nyayapati.
598
599..
600
601.. bpo: 25172
602.. date: 2019-08-06-18-09-18
603.. nonce: Akreij
604.. section: Windows
605
606Trying to import the :mod:`crypt` module on Windows will result in an
607:exc:`ImportError` with a message explaining that the module isn't supported
608on Windows. On other platforms, if the underlying ``_crypt`` module is not
609available, the ImportError will include a message explaining the problem.
610
611..
612
613.. bpo: 37778
614.. date: 2019-08-06-13-54-12
615.. nonce: AY1XhH
616.. section: Windows
617
618Fixes the icons used for file associations to the Microsoft Store package.
619
620..
621
622.. bpo: 37734
623.. date: 2019-08-06-09-35-12
624.. nonce: EoJ9Nh
625.. section: Windows
626
627Fix use of registry values to launch Python from Microsoft Store app.
628
629..
630
631.. bpo: 28269
632.. date: 2019-05-05-05-23-34
633.. nonce: -MOHI7
634.. section: Windows
635
636Replace use of :c:func:`strcasecmp` for the system function
637:c:func:`_stricmp`. Patch by Minmin Gong.
638
639..
640
641.. bpo: 18049
642.. date: 2019-07-13-15-58-18
643.. nonce: MklhQQ
644.. section: macOS
645
646Increase the default stack size of threads from 5MB to 16MB on macOS, to
647match the stack size of the main thread. This avoids crashes on deep
648recursion in threads.
649
650..
651
652.. bpo: 37824
653.. date: 2019-08-26-00-41-53
654.. nonce: YY5jAI
655.. section: IDLE
656
657Properly handle user input warnings in IDLE shell. Cease turning
658SyntaxWarnings into SyntaxErrors.
659
660..
661
662.. bpo: 37929
663.. date: 2019-08-24-22-00-33
664.. nonce: jb7523
665.. section: IDLE
666
667IDLE Settings dialog now closes properly when there is no shell window.
668
669..
670
671.. bpo: 37849
672.. date: 2019-08-14-09-43-15
673.. nonce: -bcYF3
674.. section: IDLE
675
676Fixed completions list appearing too high or low when shown above the
677current line.
678
679..
680
681.. bpo: 36419
682.. date: 2019-08-04-17-10-01
683.. nonce: TJZqOc
684.. section: IDLE
685
686Refactor IDLE autocomplete and improve testing.
687
688..
689
690.. bpo: 37748
691.. date: 2019-08-04-15-27-50
692.. nonce: 0vf6pg
693.. section: IDLE
694
695Reorder the Run menu. Put the most common choice, Run Module, at the top.
696
697..
698
699.. bpo: 37942
700.. date: 2019-08-24-12-11-30
701.. nonce: 7H8N9a
702.. section: Tools/Demos
703
704Improve ArgumentClinic converter for floats.
705
706..
707
708.. bpo: 37034
709.. date: 2019-05-27-16-13-08
710.. nonce: zbTgy8
711.. section: Tools/Demos
712
713Argument Clinic now uses the argument name on errors with keyword-only
714argument instead of their position. Patch contributed by Rémi Lapeyre.
715
716..
717
718.. bpo: 36763
719.. date: 2019-08-23-18-45-11
720.. nonce: q3Kh8Z
721.. section: C API
722
723Options added by ``PySys_AddXOption()`` are now handled the same way than
724``PyConfig.xoptions`` and command line ``-X`` options.
725
726..
727
728.. bpo: 37926
729.. date: 2019-08-23-11-35-55
730.. nonce: hnI5IQ
731.. section: C API
732
733Fix a crash in ``PySys_SetArgvEx(0, NULL, 0)``.