1.. date: 2023-06-01-03-24-58
2.. gh-issue: 103142
3.. nonce: GLWDMX
4.. release date: 2023-06-06
5.. section: Security
6
7The version of OpenSSL used in our binary builds has been upgraded to 1.1.1u
8to address several CVEs.
9
10..
11
12.. date: 2023-05-02-17-56-32
13.. gh-issue: 99889
14.. nonce: l664SU
15.. section: Security
16
17Fixed a security in flaw in :func:`uu.decode` that could allow for directory
18traversal based on the input if no ``out_file`` was specified.
19
20..
21
22.. date: 2023-05-01-15-03-25
23.. gh-issue: 104049
24.. nonce: b01Y3g
25.. section: Security
26
27Do not expose the local on-disk location in directory indexes produced by
28:class:`http.client.SimpleHTTPRequestHandler`.
29
30..
31
32.. date: 2023-03-07-20-59-17
33.. gh-issue: 102153
34.. nonce: 14CLSZ
35.. section: Security
36
37:func:`urllib.parse.urlsplit` now strips leading C0 control and space
38characters following the specification for URLs defined by WHATWG in
39response to CVE-2023-24329. Patch by Illia Volochii.
40
41..
42
43.. date: 2023-05-31-19-35-22
44.. gh-issue: 105164
45.. nonce: 6Wajph
46.. section: Core and Builtins
47
48Ensure annotations are set up correctly if the only annotation in a block is
49within a :keyword:`match` block. Patch by Jelle Zijlstra.
50
51..
52
53.. date: 2023-05-18-13-00-21
54.. gh-issue: 104615
55.. nonce: h_rtw2
56.. section: Core and Builtins
57
58Fix wrong ordering of assignments in code like ``a, a = x, y``. Contributed
59by Carl Meyer.
60
61..
62
63.. date: 2023-05-14-18-56-54
64.. gh-issue: 104482
65.. nonce: yaQsv8
66.. section: Core and Builtins
67
68Fix three error handling bugs in ast.c's validation of pattern matching
69statements.
70
71..
72
73.. date: 2023-05-13-06-22-52
74.. gh-issue: 102818
75.. nonce: HIX1Dr
76.. section: Core and Builtins
77
78Do not add a frame to the traceback in the ``sys.setprofile`` and
79``sys.settrace`` trampoline functions. This ensures that frames are not
80duplicated if an exception is raised in the callback function, and ensures
81that frames are not omitted if a C callback is used and that does not add
82the frame.
83
84..
85
86.. date: 2023-05-12-00-19-02
87.. gh-issue: 104405
88.. nonce: tXV5fn
89.. section: Core and Builtins
90
91Fix an issue where some :term:`bytecode` instructions could ignore
92:pep:`523` when "inlining" calls.
93
94..
95
96.. date: 2023-05-01-12-03-52
97.. gh-issue: 104018
98.. nonce: PFxGS4
99.. section: Core and Builtins
100
101Disallow the "z" format specifier in %-format of bytes objects.
102
103..
104
105.. date: 2023-04-28-18-57-13
106.. gh-issue: 103971
107.. nonce: Q3U9lv
108.. section: Core and Builtins
109
110Fix an issue where incorrect locations numbers could be assigned to code
111following ``case`` blocks.
112
113..
114
115.. date: 2023-04-21-17-03-14
116.. gh-issue: 102310
117.. nonce: anLjDx
118.. section: Core and Builtins
119
120Change the error range for invalid bytes literals.
121
122..
123
124.. date: 2023-04-21-16-12-41
125.. gh-issue: 103590
126.. nonce: 7DHDOE
127.. section: Core and Builtins
128
129Do not wrap a single exception raised from a ``try-except*`` construct in an
130:exc:`ExceptionGroup`.
131
132..
133
134.. date: 2023-04-14-22-35-23
135.. gh-issue: 101517
136.. nonce: 5EqM-S
137.. section: Core and Builtins
138
139Fix bug in line numbers of instructions emitted for :keyword:`except*
140<except_star>`.
141
142..
143
144.. date: 2023-04-08-17-13-07
145.. gh-issue: 103242
146.. nonce: ysI1b3
147.. section: Core and Builtins
148
149Migrate :meth:`~ssl.SSLContext.set_ecdh_curve` method not to use deprecated
150OpenSSL APIs. Patch by Dong-hee Na.
151
152..
153
154.. date: 2023-04-01-00-46-31
155.. gh-issue: 102700
156.. nonce: 493NB4
157.. section: Core and Builtins
158
159Allow built-in modules to be submodules. This allows submodules to be
160statically linked into a CPython binary.
161
162..
163
164.. date: 2023-02-12-22-40-22
165.. gh-issue: 101857
166.. nonce: _bribG
167.. section: Core and Builtins
168
169Fix xattr support detection on Linux systems by widening the check to linux,
170not just glibc. This fixes support for musl.
171
172..
173
174.. date: 2022-11-08-12-36-25
175.. gh-issue: 99184
176.. nonce: KIaqzz
177.. section: Core and Builtins
178
179Bypass instance attribute access of ``__name__`` in ``repr`` of
180:class:`weakref.ref`.
181
182..
183
184.. date: 2022-09-27-11-59-13
185.. gh-issue: 96670
186.. nonce: XrBBit
187.. section: Core and Builtins
188
189The parser now raises :exc:`SyntaxError` when parsing source code containing
190null bytes. Backported from ``aab01e3``. Patch by Pablo Galindo
191
192..
193
194.. bpo: 31821
195.. date: 2019-12-01-12-58-31
196.. nonce: 1FNmwk
197.. section: Core and Builtins
198
199Fix :func:`!pause_reading` to work when called from :func:`!connection_made`
200in :mod:`asyncio`.
201
202..
203
204.. date: 2023-06-02-02-38-26
205.. gh-issue: 105080
206.. nonce: 2imGMg
207.. section: Library
208
209Fixed inconsistent signature on derived classes for
210:func:`inspect.signature`
211
212..
213
214.. date: 2023-05-24-09-34-23
215.. gh-issue: 104874
216.. nonce: oqyJSy
217.. section: Library
218
219Document the ``__name__`` and ``__supertype__`` attributes of
220:class:`typing.NewType`. Patch by Jelle Zijlstra.
221
222..
223
224.. date: 2023-05-17-20-03-01
225.. gh-issue: 104340
226.. nonce: kp_XmX
227.. section: Library
228
229When an ``asyncio`` pipe protocol loses its connection due to an error, and
230the caller doesn't await ``wait_closed()`` on the corresponding
231``StreamWriter``, don't log a warning about an exception that was never
232retrieved. After all, according to the ``StreamWriter.close()`` docs, the
233``wait_closed()`` call is optional ("not mandatory").
234
235..
236
237.. date: 2023-05-17-08-01-36
238.. gh-issue: 104372
239.. nonce: jpoWs6
240.. section: Library
241
242Refactored the ``_posixsubprocess`` internals to avoid Python C API usage
243between fork and exec when marking ``pass_fds=`` file descriptors
244inheritable.
245
246..
247
248.. date: 2023-05-16-11-02-44
249.. gh-issue: 75367
250.. nonce: qLWR35
251.. section: Library
252
253Fix data descriptor detection in  :func:`inspect.getattr_static`.
254
255..
256
257.. date: 2023-05-16-10-07-16
258.. gh-issue: 104536
259.. nonce: hFWD8f
260.. section: Library
261
262Fix a race condition in the internal :mod:`multiprocessing.process` cleanup
263logic that could manifest as an unintended ``AttributeError`` when calling
264``process.close()``.
265
266..
267
268.. date: 2023-05-11-23-03-00
269.. gh-issue: 104399
270.. nonce: MMatTP
271.. section: Library
272
273Prepare the ``_tkinter`` module for building with Tcl 9.0 and future
274libtommath by replacing usage of deprecated functions
275:c:func:`mp_to_unsigned_bin_n` and :c:func:`mp_unsigned_bin_size` when
276necessary.
277
278..
279
280.. date: 2023-05-08-20-57-17
281.. gh-issue: 104307
282.. nonce: DSB93G
283.. section: Library
284
285:func:`socket.getnameinfo` now releases the GIL while contacting the DNS
286server
287
288..
289
290.. date: 2023-05-08-15-39-00
291.. gh-issue: 87695
292.. nonce: f6iO7v
293.. section: Library
294
295Fix issue where :meth:`pathlib.Path.glob` raised :exc:`OSError` when it
296encountered a symlink to an overly long path.
297
298..
299
300.. date: 2023-05-07-19-56-45
301.. gh-issue: 104265
302.. nonce: fVblry
303.. section: Library
304
305Prevent possible crash by disallowing instantiation of the
306:class:`!_csv.Reader` and :class:`!_csv.Writer` types. The regression was
307introduced in 3.10.0a4 with PR 23224 (:issue:`14935`). Patch by Radislav
308Chugunov.
309
310..
311
312.. date: 2023-05-01-16-43-28
313.. gh-issue: 104035
314.. nonce: MrJBw8
315.. section: Library
316
317Do not ignore user-defined ``__getstate__`` and ``__setstate__`` methods for
318slotted frozen dataclasses.
319
320..
321
322.. date: 2023-04-29-18-23-16
323.. gh-issue: 103987
324.. nonce: sRgALL
325.. section: Library
326
327In :mod:`mmap`, fix several bugs that could lead to access to memory-mapped
328files after they have been invalidated.
329
330..
331
332.. date: 2023-04-27-20-03-08
333.. gh-issue: 103935
334.. nonce: Uaf2M0
335.. section: Library
336
337Use :func:`io.open_code` for files to be executed instead of raw
338:func:`open`
339
340..
341
342.. date: 2023-04-27-00-45-41
343.. gh-issue: 100370
344.. nonce: MgZ3KY
345.. section: Library
346
347Fix potential :exc:`OverflowError` in :meth:`sqlite3.Connection.blobopen`
348for 32-bit builds. Patch by Erlend E. Aasland.
349
350..
351
352.. date: 2023-04-26-09-54-25
353.. gh-issue: 103848
354.. nonce: aDSnpR
355.. section: Library
356
357Add checks to ensure that ``[`` bracketed ``]`` hosts found by
358:func:`urllib.parse.urlsplit` are of IPv6 or IPvFuture format.
359
360..
361
362.. date: 2023-04-26-09-38-47
363.. gh-issue: 103872
364.. nonce: 8LBsDz
365.. section: Library
366
367Update the bundled copy of pip to version 23.1.2.
368
369..
370
371.. date: 2023-04-25-19-58-13
372.. gh-issue: 103861
373.. nonce: JeozgD
374.. section: Library
375
376Fix ``zipfile.Zipfile`` creating invalid zip files when ``force_zip64`` was
377used to add files to them. Patch by Carey Metcalfe.
378
379..
380
381.. date: 2023-04-24-00-34-23
382.. gh-issue: 103685
383.. nonce: U14jBM
384.. section: Library
385
386Prepare :meth:`tkinter.Menu.index` for Tk 8.7 so that it does not raise
387``TclError: expected integer but got ""`` when it should return ``None``.
388
389..
390
391.. date: 2023-04-22-22-14-09
392.. gh-issue: 81403
393.. nonce: zVz9Td
394.. section: Library
395
396:class:`urllib.request.CacheFTPHandler` no longer raises :class:`URLError`
397if a cached FTP instance is reused. ftplib's endtransfer method calls
398voidresp to drain the connection to handle FTP instance reuse properly.
399
400..
401
402.. date: 2023-04-16-18-29-04
403.. gh-issue: 103578
404.. nonce: fly1wc
405.. section: Library
406
407Fixed a bug where :mod:`pdb` crashes when reading source file with different
408encoding by replacing :func:`io.open` with :func:`io.open_code`. The new
409method would also call into the hook set by :func:`PyFile_SetOpenCodeHook`.
410
411..
412
413.. date: 2023-04-15-12-19-14
414.. gh-issue: 103556
415.. nonce: TEf-2m
416.. section: Library
417
418Now creating :class:`inspect.Signature` objects with positional-only
419parameter with a default followed by a positional-or-keyword parameter
420without one is impossible.
421
422..
423
424.. date: 2023-04-15-11-21-38
425.. gh-issue: 103559
426.. nonce: a9rYHG
427.. section: Library
428
429Update the bundled copy of pip to version 23.1.1.
430
431..
432
433.. date: 2023-04-12-17-59-55
434.. gh-issue: 103365
435.. nonce: UBEE0U
436.. section: Library
437
438Set default Flag boundary to ``STRICT`` and fix bitwise operations.
439
440..
441
442.. date: 2023-04-12-13-04-16
443.. gh-issue: 103472
444.. nonce: C6bOHv
445.. section: Library
446
447Avoid a potential :exc:`ResourceWarning` in
448:class:`http.client.HTTPConnection` by closing the proxy / tunnel's CONNECT
449response explicitly.
450
451..
452
453.. date: 2023-04-11-21-38-39
454.. gh-issue: 103449
455.. nonce: -nxmhb
456.. section: Library
457
458Fix a bug in doc string generation in :func:`dataclasses.dataclass`.
459
460..
461
462.. date: 2023-04-06-17-28-36
463.. gh-issue: 103256
464.. nonce: 1syxfs
465.. section: Library
466
467Fixed a bug that caused :mod:`hmac` to raise an exception when the requested
468hash algorithm was not available in OpenSSL despite being available
469separately as part of ``hashlib`` itself.  It now falls back properly to the
470built-in. This could happen when, for example, your OpenSSL does not include
471SHA3 support and you want to compute ``hmac.digest(b'K', b'M',
472'sha3_256')``.
473
474..
475
476.. date: 2023-04-05-01-28-53
477.. gh-issue: 103225
478.. nonce: QD3JVU
479.. section: Library
480
481Fix a bug in :mod:`pdb` when displaying line numbers of module-level source
482code.
483
484..
485
486.. date: 2023-04-04-12-43-38
487.. gh-issue: 93910
488.. nonce: jurMzv
489.. section: Library
490
491Remove deprecation of enum ``memmber.member`` access.
492
493..
494
495.. date: 2023-04-03-23-44-34
496.. gh-issue: 102978
497.. nonce: gy9eVk
498.. section: Library
499
500Fixes :func:`unittest.mock.patch` not enforcing function signatures for
501methods decorated with ``@classmethod`` or ``@staticmethod`` when patch is
502called with ``autospec=True``.
503
504..
505
506.. date: 2023-04-02-23-05-22
507.. gh-issue: 103204
508.. nonce: bbDmu0
509.. section: Library
510
511Fixes :mod:`http.server` accepting HTTP requests with HTTP version numbers
512preceded by '+', or '-', or with digit-separating '_' characters.  The
513length of the version numbers is also constrained.
514
515..
516
517.. date: 2023-03-23-15-24-38
518.. gh-issue: 102953
519.. nonce: YR4KaK
520.. section: Library
521
522The extraction methods in :mod:`tarfile`, and :func:`shutil.unpack_archive`,
523have a new a *filter* argument that allows limiting tar features than may be
524surprising or dangerous, such as creating files outside the destination
525directory. See :ref:`tarfile-extraction-filter` for details.
526
527..
528
529.. date: 2023-02-09-22-24-34
530.. gh-issue: 101640
531.. nonce: oFuEpB
532.. section: Library
533
534:class:`argparse.ArgumentParser` now catches errors when writing messages,
535such as when :data:`sys.stderr` is ``None``. Patch by Oleg Iarygin.
536
537..
538
539.. date: 2022-09-07-09-32-07
540.. gh-issue: 96522
541.. nonce: t73oqp
542.. section: Library
543
544Fix potential deadlock in pty.spawn()
545
546..
547
548.. date: 2022-08-27-21-41-41
549.. gh-issue: 87474
550.. nonce: 9X-kxt
551.. section: Library
552
553Fix potential file descriptor leaks in :class:`subprocess.Popen`.
554
555..
556
557.. date: 2023-05-28-21-01-00
558.. gh-issue: 89455
559.. nonce: qAKRrA
560.. section: Documentation
561
562Add missing documentation for the ``max_group_depth`` and
563``max_group_width`` parameters and the ``exceptions`` attribute of the
564:class:`traceback.TracebackException` class.
565
566..
567
568.. date: 2023-05-28-19-08-42
569.. gh-issue: 89412
570.. nonce: j4cg7K
571.. section: Documentation
572
573Add missing documentation for the ``end_lineno`` and ``end_offset``
574attributes of the :class:`traceback.TracebackException` class.
575
576..
577
578.. date: 2023-05-25-22-34-31
579.. gh-issue: 104943
580.. nonce: J2v1Pc
581.. section: Documentation
582
583Remove mentions of old Python versions in :class:`typing.NamedTuple`.
584
585..
586
587.. date: 2023-05-14-12-11-28
588.. gh-issue: 67056
589.. nonce: nVC2Rf
590.. section: Documentation
591
592Document that the effect of registering or unregistering an :mod:`atexit`
593cleanup function from within a registered cleanup function is undefined.
594
595..
596
597.. date: 2023-04-25-22-58-08
598.. gh-issue: 48241
599.. nonce: l1Gxxh
600.. section: Documentation
601
602Clarifying documentation about the url parameter to urllib.request.urlopen
603and urllib.request.Requst needing to be encoded properly.
604
605..
606
607.. date: 2023-05-15-02-22-44
608.. gh-issue: 104494
609.. nonce: Bkrbfn
610.. section: Tests
611
612Update ``test_pack_configure_in`` and ``test_place_configure_in`` for
613changes to error message formatting in Tk 8.7.
614
615..
616
617.. date: 2023-05-14-03-00-00
618.. gh-issue: 104461
619.. nonce: Rmex11
620.. section: Tests
621
622Run test_configure_screen on X11 only, since the ``DISPLAY`` environment
623variable and ``-screen`` option for toplevels are not useful on Tk for Win32
624or Aqua.
625
626..
627
628.. date: 2023-04-08-00-50-23
629.. gh-issue: 103329
630.. nonce: M38tqF
631.. section: Tests
632
633Regression tests for the behaviour of ``unittest.mock.PropertyMock`` were
634added.
635
636..
637
638.. date: 2023-02-11-22-36-10
639.. gh-issue: 85984
640.. nonce: EVXjT9
641.. section: Tests
642
643Utilize new "winsize" functions from termios in pty tests.
644
645..
646
647.. date: 2022-11-06-18-42-38
648.. gh-issue: 75729
649.. nonce: uGYJrv
650.. section: Tests
651
652Fix the :func:`os.spawn* <os.spawnl>` tests failing on Windows when the
653working directory or interpreter path contains spaces.
654
655..
656
657.. date: 2023-06-06-09-08-10
658.. gh-issue: 90005
659.. nonce: 8mmeJQ
660.. section: Build
661
662Fix a regression in :file:`configure` where we could end up unintentionally
663linking with ``libbsd``.
664
665..
666
667.. date: 2023-05-04-10-56-14
668.. gh-issue: 104106
669.. nonce: -W9BJS
670.. section: Build
671
672Add gcc fallback of mkfifoat/mknodat for macOS. Patch by Dong-hee Na.
673
674..
675
676.. date: 2023-02-11-05-31-05
677.. gh-issue: 99069
678.. nonce: X4LDvY
679.. section: Build
680
681Extended workaround defining ``static_assert`` when missing from the libc
682headers to all clang and gcc builds. In particular, this fixes building on
683macOS <= 10.10.
684
685..
686
687.. date: 2023-05-31-16-14-31
688.. gh-issue: 105146
689.. nonce: gNjqq8
690.. section: Windows
691
692Updated the links at the end of the installer to point to Discourse rather
693than the mailing lists.
694
695..
696
697.. date: 2023-05-18-22-46-03
698.. gh-issue: 104623
699.. nonce: HJZhm1
700.. section: Windows
701
702Update Windows installer to use SQLite 3.42.0.
703
704..
705
706.. date: 2023-03-24-11-25-28
707.. gh-issue: 102997
708.. nonce: dredy2
709.. section: Windows
710
711Update Windows installer to use SQLite 3.41.2.
712
713..
714
715.. date: 2023-03-18-21-38-00
716.. gh-issue: 88013
717.. nonce: Z3loxC
718.. section: Windows
719
720Fixed a bug where :exc:`TypeError` was raised when calling
721:func:`ntpath.realpath` with a bytes parameter in some cases.
722
723..
724
725.. date: 2023-05-30-23-30-46
726.. gh-issue: 103142
727.. nonce: 55lMXQ
728.. section: macOS
729
730Update macOS installer to use OpenSSL 1.1.1u.
731
732..
733
734.. date: 2023-05-18-22-31-49
735.. gh-issue: 104623
736.. nonce: 6h7Xfx
737.. section: macOS
738
739Update macOS installer to SQLite 3.42.0.
740
741..
742
743.. date: 2023-03-24-11-20-47
744.. gh-issue: 102997
745.. nonce: ZgQkbq
746.. section: macOS
747
748Update macOS installer to SQLite 3.41.2.
749
750..
751
752.. date: 2023-05-23-17-19-49
753.. gh-issue: 104719
754.. nonce: rvYXH-
755.. section: IDLE
756
757Remove IDLE's modification of tokenize.tabsize and test other uses of
758tokenize data and methods.
759
760..
761
762.. date: 2023-05-17-17-32-21
763.. gh-issue: 104499
764.. nonce: hNeqV4
765.. section: IDLE
766
767Fix completions for Tk Aqua 8.7 (currently blank).
768
769..
770
771.. date: 2023-05-17-15-11-11
772.. gh-issue: 104496
773.. nonce: wjav-y
774.. section: IDLE
775
776About prints both tcl and tk versions if different (expected someday).
777
778..
779
780.. date: 2023-04-30-20-01-18
781.. gh-issue: 88496
782.. nonce: y65vUb
783.. section: IDLE
784
785Fix IDLE test hang on macOS.
786