• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.. bpo: 41004
2.. date: 2020-06-29-16-02-29
3.. nonce: ovF0KZ
4.. release date: 2020-07-02
5.. section: Security
6
7The __hash__() methods of  ipaddress.IPv4Interface and
8ipaddress.IPv6Interface incorrectly generated constant hash values of 32 and
9128 respectively. This resulted in always causing hash collisions. The fix
10uses hash() to generate hash values for the tuple of (address, mask length,
11network address).
12
13..
14
15.. bpo: 41094
16.. date: 2020-06-23-23-26-42
17.. nonce: zEIJse
18.. section: Core and Builtins
19
20Fix decoding errors with audit when open files with non-ASCII names on
21non-UTF-8 locale.
22
23..
24
25.. bpo: 41084
26.. date: 2020-06-23-15-10-19
27.. nonce: pt3y7F
28.. section: Core and Builtins
29
30Prefix the error message with 'f-string: ', when parsing an f-string
31expression which throws a :exc:`SyntaxError`.
32
33..
34
35.. bpo: 41076
36.. date: 2020-06-22-13-22-30
37.. nonce: eWYw2N
38.. section: Core and Builtins
39
40Pre-feed the parser with the location of the f-string expression, not the
41f-string itself, which allows us to skip the shifting of the AST node
42locations after the parsing is completed.
43
44..
45
46.. bpo: 40939
47.. date: 2020-06-21-23-48-12
48.. nonce: RjLl6C
49.. section: Core and Builtins
50
51Deprecate :c:func:`PyNode_Compile`.
52
53..
54
55.. bpo: 41056
56.. date: 2020-06-21-19-53-33
57.. nonce: IDu_EK
58.. section: Core and Builtins
59
60Fixes a reference to deallocated stack space during startup when
61constructing sys.path involving a relative symlink when code was supplied
62via -c.  (discovered via Coverity)
63
64..
65
66.. bpo: 41061
67.. date: 2020-06-21-10-54-02
68.. nonce: AHf9MU
69.. section: Core and Builtins
70
71Fix incorrect expressions and asserts in hashtable code and tests.
72
73..
74
75.. bpo: 41052
76.. date: 2020-06-20-22-46-18
77.. nonce: 46MPeF
78.. section: Core and Builtins
79
80Opt out serialization/deserialization for _random.Random
81
82..
83
84.. bpo: 40939
85.. date: 2020-06-20-18-36-05
86.. nonce: V3eiAZ
87.. section: Core and Builtins
88
89Deprecate :c:func:`PyParser_SimpleParseStringFlags`,
90:c:func:`PyParser_SimpleParseStringFlagsFilename` and
91:c:func:`PyParser_SimpleParseFileFlags`.
92
93..
94
95.. bpo: 35975
96.. date: 2020-06-20-17-16-25
97.. nonce: UDHCHp
98.. section: Core and Builtins
99
100Stefan Behnel reported that cf_feature_version is used even when
101PyCF_ONLY_AST is not set. This is against the intention and against the
102documented behavior, so it's been fixed.
103
104..
105
106.. bpo: 40985
107.. date: 2020-06-15-16-29-55
108.. nonce: IIN_xX
109.. section: Core and Builtins
110
111Fix a bug that caused the :exc:`SyntaxError` text to be empty when a file
112ends with a line ending in a line continuation character (i.e. backslash).
113The error text should contain the text of the last line.
114
115..
116
117.. bpo: 40958
118.. date: 2020-06-15-01-20-44
119.. nonce: 7O2Wh1
120.. section: Core and Builtins
121
122Fix a possible buffer overflow in the PEG parser when gathering information
123for emitting syntax errors. Patch by Pablo Galindo.
124
125..
126
127.. bpo: 40957
128.. date: 2020-06-12-12-21-54
129.. nonce: Z8n6I6
130.. section: Core and Builtins
131
132Fix refleak in _Py_fopen_obj() when PySys_Audit() fails
133
134..
135
136.. bpo: 40947
137.. date: 2020-06-11-16-06-49
138.. nonce: 72cZcR
139.. section: Core and Builtins
140
141The Python :ref:`Path Configuration <init-path-config>` now takes
142:c:member:`PyConfig.platlibdir` in account.
143
144..
145
146.. bpo: 40847
147.. date: 2020-06-09-23-52-32
148.. nonce: 4XAACw
149.. section: Core and Builtins
150
151Fix a bug where a line with only a line continuation character is not
152considered a blank line at tokenizer level. In such cases, more than a
153single `NEWLINE` token was emitted. The old parser was working around the
154issue, but the new parser threw a :exc:`SyntaxError` for valid input due to
155this. For example, an empty line following a line continuation character was
156interpreted as a :exc:`SyntaxError`.
157
158..
159
160.. bpo: 40824
161.. date: 2020-05-30-14-37-18
162.. nonce: XR3V5s
163.. section: Core and Builtins
164
165Unexpected errors in calling the ``__iter__`` method are no longer masked by
166``TypeError`` in the :keyword:`in` operator and functions
167:func:`~operator.contains`, :func:`~operator.indexOf` and
168:func:`~operator.countOf` of the :mod:`operator` module.
169
170..
171
172.. bpo: 19569
173.. date: 2018-08-29-15-57-07
174.. nonce: RGu2Kb
175.. section: Core and Builtins
176
177Add the private macros ``_Py_COMP_DIAG_PUSH``,
178``_Py_COMP_DIAG_IGNORE_DEPR_DECLS``, and ``_Py_COMP_DIAG_POP``.
179
180..
181
182.. bpo: 41193
183.. date: 2020-07-02-11-53-45
184.. nonce: 8-Tnql
185.. section: Library
186
187The ``write_history()`` atexit function of the readline completer now
188ignores any :exc:`OSError` to ignore error if the filesystem is read-only,
189instead of only ignoring :exc:`FileNotFoundError` and
190:exc:`PermissionError`.
191
192..
193
194.. bpo: 41161
195.. date: 2020-06-30-20-50-51
196.. nonce: QTdJjz
197.. section: Library
198
199The decimal module now requires libmpdec-2.5.0. Users of
200--with-system-libmpdec should update their system library.
201
202..
203
204.. bpo: 40874
205.. date: 2020-06-28-21-16-51
206.. nonce: YImvzA
207.. section: Library
208
209The decimal module now requires libmpdec-2.5.0.
210
211..
212
213.. bpo: 41138
214.. date: 2020-06-27-13-51-36
215.. nonce: bIpf7g
216.. section: Library
217
218Fixed the :mod:`trace` module CLI for Python source files with non-UTF-8
219encoding.
220
221..
222
223.. bpo: 31938
224.. date: 2020-06-22-20-08-40
225.. nonce: EVuko9
226.. section: Library
227
228Fix default-value signatures of several functions in the :mod:`select`
229module - by Anthony Sottile.
230
231..
232
233.. bpo: 41068
234.. date: 2020-06-22-10-25-39
235.. nonce: _bX2BW
236.. section: Library
237
238Fixed reading files with non-ASCII names from ZIP archive directly after
239writing them.
240
241..
242
243.. bpo: 41058
244.. date: 2020-06-20-21-03-55
245.. nonce: gztdZy
246.. section: Library
247
248:func:`pdb.find_function` now correctly determines the source file encoding.
249
250..
251
252.. bpo: 41056
253.. date: 2020-06-20-18-35-43
254.. nonce: Garcle
255.. section: Library
256
257Fix a NULL pointer dereference within the ssl module during a MemoryError in
258the keylog callback. (discovered by Coverity)
259
260..
261
262.. bpo: 41056
263.. date: 2020-06-20-18-33-03
264.. nonce: gTH4Bq
265.. section: Library
266
267Fixed an instance where a MemoryError within the zoneinfo module might not
268be reported or not reported at its source. (found by Coverity)
269
270..
271
272.. bpo: 41048
273.. date: 2020-06-20-10-16-57
274.. nonce: hEXB-B
275.. section: Library
276
277:func:`mimetypes.read_mime_types` function reads the rule file using UTF-8
278encoding, not the locale encoding. Patch by Srinivas Reddy Thatiparthy.
279
280..
281
282.. bpo: 41043
283.. date: 2020-06-20-00-19-30
284.. nonce: p-Pk-H
285.. section: Library
286
287Fixed the use of :func:`~glob.glob` in the stdlib: literal part of the path
288is now always correctly escaped.
289
290..
291
292.. bpo: 40448
293.. date: 2020-06-15-12-22-53
294.. nonce: 1dk8Bu
295.. section: Library
296
297:mod:`ensurepip` now disables the use of `pip` cache when installing the
298bundled versions of `pip` and `setuptools`.  Patch by Krzysztof Konopko.
299
300..
301
302.. bpo: 40967
303.. date: 2020-06-15-00-13-57
304.. nonce: _dx3OO
305.. section: Library
306
307Removed :meth:`asyncio.Task.current_task` and
308:meth:`asyncio.Task.all_tasks`. Patch contributed by Rémi Lapeyre.
309
310..
311
312.. bpo: 40955
313.. date: 2020-06-12-11-55-30
314.. nonce: huixCg
315.. section: Library
316
317Fix a minor memory leak in :mod:`subprocess` module when extra_groups was
318specified.
319
320..
321
322.. bpo: 40855
323.. date: 2020-06-12-10-44-15
324.. nonce: jSot83
325.. section: Library
326
327The standard deviation and variance functions in the statistics module were
328ignoring their mu and xbar arguments.
329
330..
331
332.. bpo: 40924
333.. date: 2020-06-11-23-41-50
334.. nonce: m17Fkm
335.. section: Library
336
337Removed support for loaders implementing .files and supplying
338TraversableResources.
339
340..
341
342.. bpo: 40939
343.. date: 2020-06-11-11-07-10
344.. nonce: -D5Asl
345.. section: Library
346
347Use the new PEG parser when generating the stdlib :mod:`keyword` module.
348
349..
350
351.. bpo: 40834
352.. date: 2020-05-31-15-52-18
353.. nonce: MO9_hb
354.. section: Library
355
356Fix truncate when sending str object with_xxsubinterpreters.channel_send.
357
358..
359
360.. bpo: 26407
361.. date: 2020-05-30-14-19-47
362.. nonce: MjWLO1
363.. section: Library
364
365Unexpected errors in calling the ``__iter__`` method are no longer masked by
366``TypeError`` in :func:`csv.reader`, :func:`csv.writer.writerow` and
367:meth:`csv.writer.writerows`.
368
369..
370
371.. bpo: 38488
372.. date: 2020-05-28-16-51-00
373.. nonce: hFQNgA
374.. section: Library
375
376Update ensurepip to install pip 20.1.1 and setuptools 47.1.0.
377
378..
379
380.. bpo: 36543
381.. date: 2020-05-15-21-14-45
382.. nonce: Jt-eSX
383.. section: Library
384
385Restored the deprecated :mod:`xml.etree.cElementTree` module.
386
387..
388
389.. bpo: 34226
390.. date: 2018-07-29-12-14-54
391.. nonce: BE7zbu
392.. section: Library
393
394Fix `cgi.parse_multipart` without content_length. Patch by Roger Duran
395
396..
397
398.. bpo: 41085
399.. date: 2020-06-23-12-02-45
400.. nonce: JZKsyz
401.. section: Tests
402
403Fix integer overflow in the :meth:`array.array.index` method on 64-bit
404Windows for index larger than ``2**31``.
405
406..
407
408.. bpo: 41069
409.. date: 2020-06-22-00-21-12
410.. nonce: bLZkX-
411.. section: Tests
412
413:data:`test.support.TESTFN` and the current directory for tests when run via
414``test.regrtest`` contain now non-ascii characters if possible.
415
416..
417
418.. bpo: 38377
419.. date: 2020-06-17-18-00-21
420.. nonce: jfg4TH
421.. section: Tests
422
423On Linux, skip tests using multiprocessing if the current user cannot create
424a file in ``/dev/shm/`` directory. Add the
425:func:`~test.support.skip_if_broken_multiprocessing_synchronize` function to
426the :mod:`test.support` module.
427
428..
429
430.. bpo: 41009
431.. date: 2020-06-17-17-27-07
432.. nonce: Rvn6OQ
433.. section: Tests
434
435Fix use of ``support.require_{linux|mac|freebsd}_version()`` decorators as
436class decorator.
437
438..
439
440.. bpo: 41003
441.. date: 2020-06-17-15-07-14
442.. nonce: tiH_Fy
443.. section: Tests
444
445Fix ``test_copyreg`` when ``numpy`` is installed: ``test.pickletester`` now
446saves/restores warnings filters when importing ``numpy``, to ignore filters
447installed by ``numpy``.
448
449..
450
451.. bpo: 40964
452.. date: 2020-06-12-20-46-23
453.. nonce: OBzf2c
454.. section: Tests
455
456Disable remote :mod:`imaplib` tests, host cyrus.andrew.cmu.edu is blocking
457incoming connections.
458
459..
460
461.. bpo: 40927
462.. date: 2020-06-09-18-48-18
463.. nonce: 67ylLg
464.. section: Tests
465
466Fix test_binhex when run twice: it now uses import_fresh_module() to ensure
467that it raises DeprecationWarning each time.
468
469..
470
471.. bpo: 34401
472.. date: 2018-08-20-09-38-52
473.. nonce: eGxMPm
474.. section: Tests
475
476Make test_gdb properly run on HP-UX. Patch by Michael Osipov.
477
478..
479
480.. bpo: 40204
481.. date: 2020-06-25-06-59-13
482.. nonce: GpD04D
483.. section: Build
484
485Pin Sphinx version to 2.3.1 in ``Doc/Makefile``.
486
487..
488
489.. bpo: 41074
490.. date: 2020-06-24-21-30-42
491.. nonce: gaQc3C
492.. section: Windows
493
494Fixed support of non-ASCII names in functions :func:`msilib.OpenDatabase`
495and :func:`msilib.init_database` and non-ASCII SQL in method
496:meth:`msilib.Database.OpenView`.
497
498..
499
500.. bpo: 40164
501.. date: 2020-06-12-13-13-44
502.. nonce: SPrSn5
503.. section: Windows
504
505Updates Windows OpenSSL to 1.1.1g
506
507..
508
509.. bpo: 37556
510.. date: 2019-07-11-06-11-09
511.. nonce: sygMUU
512.. section: Windows
513
514Extend py.exe help to mention overrides via venv, shebang, environmental
515variables & ini files.
516
517..
518
519.. bpo: 39580
520.. date: 2020-06-25-06-09-00
521.. nonce: N_vJ9h
522.. section: macOS
523
524Avoid opening Finder window if running installer from the command line.
525Patch contributed by Rick Heil.
526
527..
528
529.. bpo: 41100
530.. date: 2020-06-24-13-51-57
531.. nonce: mcHdc5
532.. section: macOS
533
534Fix configure error when building on macOS 11. Note that the current Python
535release was released shortly after the first developer preview of macOS 11
536(Big Sur); there are other known issues with building and running on the
537developer preview. Big Sur is expected to be fully supported in a future
538bugfix release of Python 3.8.x and with 3.9.0.
539
540..
541
542.. bpo: 41005
543.. date: 2020-06-17-13-45-15
544.. nonce: zZegdV
545.. section: macOS
546
547fixed an XDG settings issue not allowing macos to open browser in
548webbrowser.py
549
550..
551
552.. bpo: 41152
553.. date: 2020-06-29-14-51-15
554.. nonce: d6mV0C
555.. section: IDLE
556
557The encoding of ``stdin``, ``stdout`` and ``stderr`` in IDLE is now always
558UTF-8.
559
560..
561
562.. bpo: 41144
563.. date: 2020-06-27-17-02-00
564.. nonce: JoFGIX
565.. section: IDLE
566
567Make Open Module open a special module such as os.path.
568
569..
570
571.. bpo: 36346
572.. date: 2020-06-17-11-24-00
573.. nonce: fTMr3S
574.. section: C API
575
576Mark ``Py_UNICODE_COPY``, ``Py_UNICODE_FILL``, ``PyUnicode_WSTR_LENGTH``,
577``PyUnicode_FromUnicode``, ``PyUnicode_AsUnicode``,
578``_PyUnicode_AsUnicode``, and ``PyUnicode_AsUnicodeAndSize`` as deprecated
579in C. Remove ``Py_UNICODE_MATCH`` which was deprecated and broken since
580Python 3.3.
581
582..
583
584.. bpo: 36020
585.. date: 2020-06-15-16-46-01
586.. nonce: djI6jw
587.. section: C API
588
589On Windows, ``#include "pyerrors.h"`` no longer defines ``snprintf`` and
590``vsnprintf`` macros.
591
592..
593
594.. bpo: 40703
595.. date: 2020-05-20-19-11-12
596.. nonce: qQXfW8
597.. section: C API
598
599The PyType_FromSpec*() functions no longer overwrite the type's "__module__"
600attribute if it is set via "Py_tp_members" or "Py_tp_getset".
601