• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.. date: 2024-09-24-10-48-46
2.. gh-issue: 124448
3.. nonce: bFMrS6
4.. release date: 2024-12-03
5.. section: macOS
6
7Update bundled Tcl/Tk in macOS installer to 8.6.15.
8
9..
10
11.. date: 2024-11-16-22-08-41
12.. gh-issue: 126911
13.. nonce: HchCZZ
14.. section: Windows
15
16Update credits command output.
17
18..
19
20.. date: 2024-11-12-22-31-13
21.. gh-issue: 118973
22.. nonce: _lfxW6
23.. section: Windows
24
25Ensures the experimental free-threaded install includes the ``_tkinter``
26module. The optional Tcl/Tk component must also be installed in order for
27the module to work.
28
29..
30
31.. date: 2024-11-07-20-42-31
32.. gh-issue: 126497
33.. nonce: EARpd-
34.. section: Windows
35
36Fixes venv failure due to missing redirector executables in experimental
37free-threaded installs.
38
39..
40
41.. date: 2024-10-29-20-09-52
42.. gh-issue: 126074
43.. nonce: 83ZzZs
44.. section: Windows
45
46Removed unnecessary DLLs from Windows embeddable package
47
48..
49
50.. date: 2024-10-29-19-48-03
51.. gh-issue: 125315
52.. nonce: jdB9qN
53.. section: Windows
54
55Avoid crashing in :mod:`platform` due to slow WMI calls on some Windows
56machines.
57
58..
59
60.. date: 2024-10-29-09-39-06
61.. gh-issue: 126084
62.. nonce: 3wAL8o
63.. section: Windows
64
65Fix venvwlauncher to launch pythonw instead of python so no extra console
66window is created.
67
68..
69
70.. date: 2024-10-23-17-24-23
71.. gh-issue: 125842
72.. nonce: m3EF9E
73.. section: Windows
74
75Fix a :exc:`SystemError` when :func:`sys.exit` is called with ``0xffffffff``
76on Windows.
77
78..
79
80.. date: 2024-10-15-21-28-43
81.. gh-issue: 125550
82.. nonce: hmGWCP
83.. section: Windows
84
85Enable the :ref:`launcher` to detect Python 3.14 installs from the Windows
86Store.
87
88..
89
90.. date: 2024-09-24-19-04-56
91.. gh-issue: 124448
92.. nonce: srVT3d
93.. section: Windows
94
95Updated bundled Tcl/Tk to 8.6.15.
96
97..
98
99.. date: 2024-11-13-22-23-36
100.. gh-issue: 126807
101.. nonce: vpaWuN
102.. section: Tools/Demos
103
104Fix extraction warnings in :program:`pygettext.py` caused by mistaking
105function definitions for function calls.
106
107..
108
109.. date: 2024-10-30-13-59-07
110.. gh-issue: 126167
111.. nonce: j5cCWE
112.. section: Tools/Demos
113
114The iOS testbed was modified so that it can be used by third-party projects
115for testing purposes.
116
117..
118
119.. date: 2024-11-17-16-56-48
120.. gh-issue: 126909
121.. nonce: 60VTxW
122.. section: Tests
123
124Fix test_os extended attribute tests to work on filesystems with 1 KiB xattr
125size limit.
126
127..
128
129.. date: 2024-10-07-14-13-38
130.. gh-issue: 125041
131.. nonce: PKLWDf
132.. section: Tests
133
134Re-enable skipped tests for :mod:`zlib` on the s390x architecture: only skip
135checks of the compressed bytes, which can be different between zlib's
136software implementation and the hardware-accelerated implementation.
137
138..
139
140.. date: 2024-09-30-22-52-44
141.. gh-issue: 124295
142.. nonce: VZy5kx
143.. section: Tests
144
145Add translation tests to the :mod:`argparse` module.
146
147..
148
149.. date: 2024-11-13-11-09-12
150.. gh-issue: 126623
151.. nonce: TO7NnR
152.. section: Security
153
154Upgrade libexpat to 2.6.4
155
156..
157
158.. date: 2024-10-09-20-08-13
159.. gh-issue: 125140
160.. nonce: YgNWRB
161.. section: Security
162
163Remove the current directory from ``sys.path`` when using PyREPL.
164
165..
166
167.. date: 2024-08-07-10-42-13
168.. gh-issue: 122792
169.. nonce: oiTMo9
170.. section: Security
171
172Changed IPv4-mapped ``ipaddress.IPv6Address`` to consistently use the mapped
173IPv4 address value for deciding properties. Properties which have their
174behavior fixed are ``is_multicast``, ``is_reserved``, ``is_link_local``,
175``is_global``, and ``is_unspecified``.
176
177..
178
179.. date: 2024-11-30-21-46-15
180.. gh-issue: 127321
181.. nonce: M78fBv
182.. section: Library
183
184:func:`pdb.set_trace` will not stop at an opcode that does not have an
185associated line number anymore.
186
187..
188
189.. date: 2024-11-27-16-06-10
190.. gh-issue: 127303
191.. nonce: asqkgh
192.. section: Library
193
194Publicly expose :data:`~token.EXACT_TOKEN_TYPES` in :attr:`!token.__all__`.
195
196..
197
198.. date: 2024-11-27-14-06-35
199.. gh-issue: 123967
200.. nonce: wxUmnW
201.. section: Library
202
203Fix faulthandler for trampoline frames. If the top-most frame is a
204trampoline frame, skip it. Patch by Victor Stinner.
205
206..
207
208.. date: 2024-11-24-14-20-17
209.. gh-issue: 127182
210.. nonce: WmfY2g
211.. section: Library
212
213Fix :meth:`!io.StringIO.__setstate__` crash, when :const:`None` was passed
214as the first value.
215
216..
217
218.. date: 2024-11-24-12-41-31
219.. gh-issue: 127217
220.. nonce: UAXGFr
221.. section: Library
222
223Fix :func:`urllib.request.pathname2url` for paths starting with multiple
224slashes on Posix.
225
226..
227
228.. date: 2024-11-22-10-42-34
229.. gh-issue: 127035
230.. nonce: UnbDlr
231.. section: Library
232
233Fix :mod:`shutil.which` on Windows. Now it looks at direct match if and only
234if the command ends with a PATHEXT extension or X_OK is not in mode. Support
235extensionless files if "." is in PATHEXT. Support PATHEXT extensions that
236end with a dot.
237
238..
239
240.. date: 2024-11-22-09-23-41
241.. gh-issue: 122273
242.. nonce: H8M6fd
243.. section: Library
244
245Support PyREPL history on Windows. Patch by devdanzin and Victor Stinner.
246
247..
248
249.. date: 2024-11-22-03-40-02
250.. gh-issue: 127078
251.. nonce: gI_PaP
252.. section: Library
253
254Fix issue where :func:`urllib.request.url2pathname` failed to discard an
255extra slash before a UNC drive in the URL path on Windows.
256
257..
258
259.. date: 2024-11-22-02-31-55
260.. gh-issue: 126766
261.. nonce: jfkhBH
262.. section: Library
263
264Fix issue where :func:`urllib.request.url2pathname` failed to discard any
265'localhost' authority present in the URL.
266
267..
268
269.. date: 2024-11-21-16-23-16
270.. gh-issue: 127065
271.. nonce: cfL1zd
272.. section: Library
273
274Fix crash when calling a :func:`operator.methodcaller` instance from
275multiple threads in the free threading build.
276
277..
278
279.. date: 2024-11-20-16-58-59
280.. gh-issue: 126997
281.. nonce: 0PI41Y
282.. section: Library
283
284Fix support of STRING and GLOBAL opcodes with non-ASCII arguments in
285:mod:`pickletools`. :func:`pickletools.dis` now outputs non-ASCII bytes in
286STRING, BINSTRING and SHORT_BINSTRING arguments as escaped (``\xXX``).
287
288..
289
290.. date: 2024-11-20-11-37-08
291.. gh-issue: 126316
292.. nonce: ElkZmE
293.. section: Library
294
295:mod:`grp`: Make :func:`grp.getgrall` thread-safe by adding a mutex. Patch
296by Victor Stinner.
297
298..
299
300.. date: 2024-11-20-08-54-11
301.. gh-issue: 126618
302.. nonce: ef_53g
303.. section: Library
304
305Fix the representation of :class:`itertools.count` objects when the count
306value is :data:`sys.maxsize`.
307
308..
309
310.. date: 2024-11-15-01-50-36
311.. gh-issue: 85168
312.. nonce: bP8VIN
313.. section: Library
314
315Fix issue where :func:`urllib.request.url2pathname` and
316:func:`~urllib.request.pathname2url` always used UTF-8 when quoting and
317unquoting file URIs. They now use the :term:`filesystem encoding and error
318handler`.
319
320..
321
322.. date: 2024-11-14-22-25-49
323.. gh-issue: 67877
324.. nonce: G9hw0w
325.. section: Library
326
327Fix memory leaks when :mod:`regular expression <re>` matching terminates
328abruptly, either because of a signal or because memory allocation fails.
329
330..
331
332.. date: 2024-11-13-22-25-57
333.. gh-issue: 126789
334.. nonce: lKzlc7
335.. section: Library
336
337Fixed the values of :py:func:`sysconfig.get_config_vars`,
338:py:func:`sysconfig.get_paths`, and their siblings when the :py:mod:`site`
339initialization happens after :py:mod:`sysconfig` has built a cache for
340:py:func:`sysconfig.get_config_vars`.
341
342..
343
344.. date: 2024-11-13-20-03-18
345.. gh-issue: 126188
346.. nonce: RJLKk-
347.. section: Library
348
349Update bundled pip to 24.3.1
350
351..
352
353.. date: 2024-11-13-19-15-18
354.. gh-issue: 126780
355.. nonce: ZZqJvI
356.. section: Library
357
358Fix :func:`os.path.normpath` for drive-relative paths on Windows.
359
360..
361
362.. date: 2024-11-12-21-43-12
363.. gh-issue: 126766
364.. nonce: oi2KJ7
365.. section: Library
366
367Fix issue where :func:`urllib.request.url2pathname` failed to discard two
368leading slashes introducing an empty authority section.
369
370..
371
372.. date: 2024-11-12-13-14-47
373.. gh-issue: 126727
374.. nonce: 5Eqfqd
375.. section: Library
376
377``locale.nl_langinfo(locale.ERA)`` now returns multiple era description
378segments separated by semicolons. Previously it only returned the first
379segment on platforms with Glibc.
380
381..
382
383.. date: 2024-11-11-13-24-22
384.. gh-issue: 126699
385.. nonce: ONGbMd
386.. section: Library
387
388Allow :class:`collections.abc.AsyncIterator` to be a base for Protocols.
389
390..
391
392.. date: 2024-11-11-13-00-21
393.. gh-issue: 126654
394.. nonce: 4gfP2y
395.. section: Library
396
397Fix crash when non-dict was passed to several functions in ``_interpreters``
398module.
399
400..
401
402.. date: 2024-11-10-18-14-51
403.. gh-issue: 104745
404.. nonce: zAa5Ke
405.. section: Library
406
407Limit starting a patcher (from :func:`unittest.mock.patch` or
408:func:`unittest.mock.patch.object`) more than once without stopping it
409
410..
411
412.. date: 2024-11-09-10-31-10
413.. gh-issue: 126595
414.. nonce: A-7MyC
415.. section: Library
416
417Fix a crash when instantiating :class:`itertools.count` with an initial
418count of :data:`sys.maxsize` on debug builds. Patch by Bénédikt Tran.
419
420..
421
422.. date: 2024-11-08-17-05-10
423.. gh-issue: 120423
424.. nonce: 7rdLVV
425.. section: Library
426
427Fix issue where :func:`urllib.request.pathname2url` mishandled Windows paths
428with embedded forward slashes.
429
430..
431
432.. date: 2024-11-08-11-06-14
433.. gh-issue: 126565
434.. nonce: dFFO22
435.. section: Library
436
437Improve performances of :meth:`zipfile.Path.open` for non-reading modes.
438
439..
440
441.. date: 2024-11-07-22-41-47
442.. gh-issue: 126505
443.. nonce: iztYE1
444.. section: Library
445
446Fix bugs in compiling case-insensitive :mod:`regular expressions <re>` with
447character classes containing non-BMP characters: upper-case non-BMP
448character did was ignored and the ASCII flag was ignored when matching a
449character range whose upper bound is beyond the BMP region.
450
451..
452
453.. date: 2024-11-07-01-40-11
454.. gh-issue: 117378
455.. nonce: o9O5uM
456.. section: Library
457
458Fixed the :mod:`multiprocessing` ``"forkserver"`` start method forkserver
459process to correctly inherit the parent's :data:`sys.path` during the
460importing of :func:`multiprocessing.set_forkserver_preload` modules in the
461same manner as :data:`sys.path` is configured in workers before executing
462work items.
463
464This bug caused some forkserver module preloading to silently fail to
465preload. This manifested as a performance degration in child processes when
466the ``sys.path`` was required due to additional repeated work in every
467worker.
468
469It could also have a side effect of ``""`` remaining in :data:`sys.path`
470during forkserver preload imports instead of the absolute path from
471:func:`os.getcwd` at multiprocessing import time used in the worker
472``sys.path``.
473
474The ``sys.path`` differences between phases in the child process could
475potentially have caused preload to import incorrect things from the wrong
476location.  We are unaware of that actually having happened in practice.
477
478..
479
480.. date: 2024-11-06-23-40-28
481.. gh-issue: 125679
482.. nonce: Qq9xF5
483.. section: Library
484
485The :class:`multiprocessing.Lock` and :class:`multiprocessing.RLock`
486``repr`` values no longer say "unknown" on macOS.
487
488..
489
490.. date: 2024-11-06-18-30-50
491.. gh-issue: 126476
492.. nonce: F1wh3c
493.. section: Library
494
495Raise :class:`calendar.IllegalMonthError` (now a subclass of
496:class:`IndexError`) for :func:`calendar.month` when the input month is not
497correct.
498
499..
500
501.. date: 2024-11-06-13-41-38
502.. gh-issue: 126489
503.. nonce: toaf-0
504.. section: Library
505
506The Python implementation of :mod:`pickle` no longer calls
507:meth:`pickle.Pickler.persistent_id` for the result of
508:meth:`!persistent_id`.
509
510..
511
512.. date: 2024-11-03-09-42-42
513.. gh-issue: 126313
514.. nonce: EFP6Dl
515.. section: Library
516
517Fix an issue in :func:`curses.napms` when :func:`curses.initscr` has not yet
518been called. Patch by Bénédikt Tran.
519
520..
521
522.. date: 2024-11-02-19-20-44
523.. gh-issue: 126303
524.. nonce: yVvyWB
525.. section: Library
526
527Fix pickling and copying of :class:`os.sched_param` objects.
528
529..
530
531.. date: 2024-11-01-14-31-41
532.. gh-issue: 126138
533.. nonce: yTniOG
534.. section: Library
535
536Fix a use-after-free crash on :class:`asyncio.Task` objects whose underlying
537coroutine yields an object that implements an evil
538:meth:`~object.__getattribute__`. Patch by Nico Posada.
539
540..
541
542.. date: 2024-10-31-14-06-28
543.. gh-issue: 126220
544.. nonce: uJAJCU
545.. section: Library
546
547Fix crash in :class:`!cProfile.Profile` and :class:`!_lsprof.Profiler` when
548their callbacks were directly called with 0 arguments.
549
550..
551
552.. date: 2024-10-30-23-59-36
553.. gh-issue: 126212
554.. nonce: _9uYjT
555.. section: Library
556
557Fix issue where :func:`urllib.request.pathname2url` and
558:func:`~urllib.request.url2pathname` removed slashes from Windows DOS drive
559paths and URLs.
560
561..
562
563.. date: 2024-10-30-23-42-44
564.. gh-issue: 126223
565.. nonce: k2qooc
566.. section: Library
567
568Raise a :exc:`UnicodeEncodeError` instead of a :exc:`SystemError` upon
569calling :func:`!_interpreters.create` with an invalid Unicode character.
570
571..
572
573.. date: 2024-10-30-20-45-17
574.. gh-issue: 126205
575.. nonce: CHEmtx
576.. section: Library
577
578Fix issue where :func:`urllib.request.pathname2url` generated URLs beginning
579with four slashes (rather than two) when given a Windows UNC path.
580
581..
582
583.. date: 2024-10-29-11-45-44
584.. gh-issue: 126105
585.. nonce: cOL-R6
586.. section: Library
587
588Fix a crash in :mod:`ast` when the :attr:`ast.AST._fields` attribute is
589deleted.
590
591..
592
593.. date: 2024-10-29-10-58-52
594.. gh-issue: 126106
595.. nonce: rlF798
596.. section: Library
597
598Fixes a possible ``NULL`` pointer dereference in :mod:`ssl`.
599
600..
601
602.. date: 2024-10-29-10-38-28
603.. gh-issue: 126080
604.. nonce: qKRBuo
605.. section: Library
606
607Fix a use-after-free crash on :class:`asyncio.Task` objects for which the
608underlying event loop implements an evil :meth:`~object.__getattribute__`.
609Reported by Nico-Posada. Patch by Bénédikt Tran.
610
611..
612
613.. date: 2024-10-28-22-35-22
614.. gh-issue: 126083
615.. nonce: TuI--n
616.. section: Library
617
618Fixed a reference leak in :class:`asyncio.Task` objects when reinitializing
619the same object with a non-``None`` context. Patch by Nico Posada.
620
621..
622
623.. date: 2024-10-26-12-50-48
624.. gh-issue: 125984
625.. nonce: d4vp5_
626.. section: Library
627
628Fix use-after-free crashes on :class:`asyncio.Future` objects for which the
629underlying event loop implements an evil :meth:`~object.__getattribute__`.
630Reported by Nico-Posada. Patch by Bénédikt Tran.
631
632..
633
634.. date: 2024-10-25-11-13-24
635.. gh-issue: 125969
636.. nonce: YvbrTr
637.. section: Library
638
639Fix an out-of-bounds crash when an evil :meth:`asyncio.loop.call_soon`
640mutates the length of the internal callbacks list. Patch by Bénédikt Tran.
641
642..
643
644.. date: 2024-10-25-10-53-56
645.. gh-issue: 125966
646.. nonce: eOCYU_
647.. section: Library
648
649Fix a use-after-free crash in :meth:`asyncio.Future.remove_done_callback`.
650Patch by Bénédikt Tran.
651
652..
653
654.. date: 2024-10-24-14-08-10
655.. gh-issue: 125789
656.. nonce: eaiAMw
657.. section: Library
658
659Fix possible crash when mutating list of callbacks returned by
660:attr:`!asyncio.Future._callbacks`. It now always returns a new copy in C
661implementation :mod:`!_asyncio`. Patch by Kumar Aditya.
662
663..
664
665.. date: 2024-10-24-10-49-47
666.. gh-issue: 124452
667.. nonce: eqTRgx
668.. section: Library
669
670Fix an issue in :meth:`email.policy.EmailPolicy.header_source_parse` and
671:meth:`email.policy.Compat32.header_source_parse` that introduced spurious
672leading whitespaces into header values when the header includes a newline
673character after the header name delimiter (``:``) and before the value.
674
675..
676
677.. date: 2024-10-23-17-45-40
678.. gh-issue: 125884
679.. nonce: 41E_PD
680.. section: Library
681
682Fixed the bug for :mod:`pdb` where it can't set breakpoints on functions
683with certain annotations.
684
685..
686
687.. date: 2024-10-22-13-28-00
688.. gh-issue: 125355
689.. nonce: zssHm_
690.. section: Library
691
692Fix several bugs in :meth:`argparse.ArgumentParser.parse_intermixed_args`.
693
694* The parser no longer changes temporarily during parsing.
695* Default values are not processed twice.
696* Required mutually exclusive groups containing positional arguments are now supported.
697* The missing arguments report now includes the names of all required optional and positional arguments.
698* Unknown options can be intermixed with positional arguments in parse_known_intermixed_args().
699
700..
701
702.. date: 2024-10-19-16-06-52
703.. gh-issue: 125666
704.. nonce: jGfdCP
705.. section: Library
706
707Avoid the exiting the interpreter if a null byte is given as input in the
708new REPL.
709
710..
711
712.. date: 2024-10-19-13-37-37
713.. gh-issue: 125710
714.. nonce: FyFAAr
715.. section: Library
716
717[Enum] fix hashable<->nonhashable comparisons for member values
718
719..
720
721.. date: 2024-10-19-11-06-06
722.. gh-issue: 125631
723.. nonce: BlhVvR
724.. section: Library
725
726Restore ability to set :attr:`~pickle.Pickler.persistent_id` and
727:attr:`~pickle.Unpickler.persistent_load` attributes of instances of the
728:class:`!Pickler` and :class:`!Unpickler` classes in the :mod:`pickle`
729module.
730
731..
732
733.. date: 2024-10-19-01-30-40
734.. gh-issue: 125378
735.. nonce: WTosxX
736.. section: Library
737
738Fixed the bug in :mod:`pdb` where after a multi-line command, an empty line
739repeats the first line of the multi-line command, instead of the full
740command.
741
742..
743
744.. date: 2024-10-18-09-51-29
745.. gh-issue: 125682
746.. nonce: vsj4cU
747.. section: Library
748
749Reject non-ASCII digits in the Python implementation of :func:`json.loads`
750conforming to the JSON specification.
751
752..
753
754.. date: 2024-10-18-08-58-10
755.. gh-issue: 125660
756.. nonce: sDdDqO
757.. section: Library
758
759Reject invalid unicode escapes for Python implementation of
760:func:`json.loads`.
761
762..
763
764.. date: 2024-10-17-16-10-29
765.. gh-issue: 125259
766.. nonce: oMew0c
767.. section: Library
768
769Fix the notes removal logic for errors thrown in enum initialization.
770
771..
772
773.. date: 2024-10-16-20-32-40
774.. gh-issue: 125590
775.. nonce: stHzOP
776.. section: Library
777
778Allow ``FrameLocalsProxy`` to delete and pop if the key is not a fast
779variable.
780
781..
782
783.. date: 2024-10-15-14-01-03
784.. gh-issue: 125519
785.. nonce: TqGh6a
786.. section: Library
787
788Improve traceback if :func:`importlib.reload` is called with an object that
789is not a module. Patch by Alex Waygood.
790
791..
792
793.. date: 2024-10-14-17-29-34
794.. gh-issue: 125451
795.. nonce: fmP3T9
796.. section: Library
797
798Fix deadlock when :class:`concurrent.futures.ProcessPoolExecutor` shuts down
799concurrently with an error when feeding a job to a worker process.
800
801..
802
803.. date: 2024-10-14-04-44-12
804.. gh-issue: 125422
805.. nonce: MlVuC6
806.. section: Library
807
808Fixed the bug where :mod:`pdb` and :mod:`bdb` can step into the bottom
809caller frame.
810
811..
812
813.. date: 2024-10-14-02-27-03
814.. gh-issue: 100141
815.. nonce: NuAcwa
816.. section: Library
817
818Fixed the bug where :mod:`pdb` will be stuck in an infinite loop when
819debugging an empty file.
820
821..
822
823.. date: 2024-10-14-02-07-44
824.. gh-issue: 125115
825.. nonce: IOf3ON
826.. section: Library
827
828Fixed a bug in :mod:`pdb` where arguments starting with ``-`` can't be
829passed to the debugged script.
830
831..
832
833.. date: 2024-10-13-20-21-35
834.. gh-issue: 53203
835.. nonce: Rz1c8A
836.. section: Library
837
838Fix :func:`time.strptime` for ``%c``, ``%x`` and ``%X`` formats in many
839locales that use non-ASCII digits, like Persian, Burmese, Odia and Shan.
840
841..
842
843.. date: 2024-10-13-15-04-58
844.. gh-issue: 125398
845.. nonce: UW7Ndv
846.. section: Library
847
848Fix the conversion of the :envvar:`!VIRTUAL_ENV` path in the activate script
849in :mod:`venv` when running in Git Bash for Windows.
850
851..
852
853.. date: 2024-10-12-15-49-17
854.. gh-issue: 125316
855.. nonce: t15RnJ
856.. section: Library
857
858Fix using :func:`functools.partial` as :class:`enum.Enum` member. A
859FutureWarning with suggestion to use :func:`enum.member` is now emitted when
860the ``partial`` instance is used as an enum member.
861
862..
863
864.. date: 2024-10-11-00-40-13
865.. gh-issue: 125245
866.. nonce: 8vReM-
867.. section: Library
868
869Fix race condition when importing :mod:`collections.abc`, which could
870incorrectly return an empty module.
871
872..
873
874.. date: 2024-10-10-20-39-57
875.. gh-issue: 125243
876.. nonce: eUbbtu
877.. section: Library
878
879Fix data race when creating :class:`zoneinfo.ZoneInfo` objects in the free
880threading build.
881
882..
883
884.. date: 2024-10-10-19-57-35
885.. gh-issue: 125254
886.. nonce: RtZxXS
887.. section: Library
888
889Fix a bug where ArgumentError includes the incorrect ambiguous option in
890:mod:`argparse`.
891
892..
893
894.. date: 2024-10-10-18-33-31
895.. gh-issue: 125235
896.. nonce: 0kOB5I
897.. section: Library
898
899Keep :mod:`tkinter` TCL paths in venv pointing to base installation on
900Windows.
901
902..
903
904.. date: 2024-10-09-21-42-43
905.. gh-issue: 61011
906.. nonce: pQXZb1
907.. section: Library
908
909Fix inheritance of nested mutually exclusive groups from parent parser in
910:class:`argparse.ArgumentParser`. Previously, all nested mutually exclusive
911groups lost their connection to the group containing them and were displayed
912as belonging directly to the parser.
913
914..
915
916.. date: 2024-10-09-17-07-33
917.. gh-issue: 52551
918.. nonce: PBakSY
919.. section: Library
920
921Fix encoding issues in :func:`time.strftime`, the
922:meth:`~datetime.datetime.strftime` method of the :mod:`datetime` classes
923:class:`~datetime.datetime`, :class:`~datetime.date` and
924:class:`~datetime.time` and formatting of these classes. Characters not
925encodable in the current locale are now acceptable in the format string.
926Surrogate pairs and sequence of surrogatescape-encoded bytes are no longer
927recombinated. Embedded null character no longer terminates the format
928string.
929
930..
931
932.. date: 2024-10-09-07-09-00
933.. gh-issue: 125118
934.. nonce: J9rQ1S
935.. section: Library
936
937Don't copy arbitrary values to :c:expr:`_Bool` in the :mod:`struct` module.
938
939..
940
941.. date: 2024-10-08-21-17-16
942.. gh-issue: 125069
943.. nonce: 0RP0Mx
944.. section: Library
945
946Fix an issue where providing a :class:`pathlib.PurePath` object as an
947initializer argument to a second :class:`~pathlib.PurePath` object with a
948different :attr:`~pathlib.PurePath.parser` resulted in arguments to the
949former object's initializer being joined by the latter object's parser.
950
951..
952
953.. date: 2024-10-08-13-28-22
954.. gh-issue: 125096
955.. nonce: Vz0W5g
956.. section: Library
957
958If the :envvar:`PYTHON_BASIC_REPL` environment variable is set, the
959:mod:`site` module no longer imports the :mod:`!_pyrepl` module. Moreover,
960the :mod:`site` module now respects :option:`-E` and :option:`-I` command
961line options: ignore :envvar:`PYTHON_BASIC_REPL` in this case. Patch by
962Victor Stinner.
963
964..
965
966.. date: 2024-10-08-12-09-09
967.. gh-issue: 124969
968.. nonce: _VBQLq
969.. section: Library
970
971Fix ``locale.nl_langinfo(locale.ALT_DIGITS)`` on platforms with glibc. Now
972it returns a string consisting of up to 100 semicolon-separated symbols (an
973empty string in most locales) on all Posix platforms. Previously it only
974returned the first symbol or an empty string.
975
976..
977
978.. date: 2024-10-05-15-49-53
979.. gh-issue: 124960
980.. nonce: Bol9hT
981.. section: Library
982
983Fix support for the ``barry_as_FLUFL`` future flag in the new REPL.
984
985..
986
987.. date: 2024-10-04-22-43-48
988.. gh-issue: 124984
989.. nonce: xjMv9b
990.. section: Library
991
992Fixed thread safety in :mod:`ssl` in the free-threaded build. OpenSSL
993operations are now protected by a per-object lock.
994
995..
996
997.. date: 2024-10-04-08-46-00
998.. gh-issue: 124958
999.. nonce: rea9-x
1000.. section: Library
1001
1002Fix refcycles in exceptions raised from :class:`asyncio.TaskGroup` and the
1003python implementation of :class:`asyncio.Future`
1004
1005..
1006
1007.. date: 2024-10-03-20-45-57
1008.. gh-issue: 53203
1009.. nonce: 3Sk4Ia
1010.. section: Library
1011
1012Fix :func:`time.strptime` for ``%c`` and ``%x`` formats in many locales:
1013Arabic, Bislama, Breton, Bodo, Kashubian, Chuvash, Estonian, French, Irish,
1014Ge'ez, Gurajati, Manx Gaelic, Hebrew, Hindi, Chhattisgarhi, Haitian Kreyol,
1015Japanese, Kannada, Korean, Marathi, Malay, Norwegian, Nynorsk, Punjabi,
1016Rajasthani, Tok Pisin, Yoruba, Yue Chinese, Yau/Nungon and Chinese.
1017
1018..
1019
1020.. date: 2024-10-02-21-11-18
1021.. gh-issue: 124917
1022.. nonce: Lnwh5b
1023.. section: Library
1024
1025Allow calling :func:`os.path.exists` and :func:`os.path.lexists` with
1026keyword arguments on Windows. Fixes a regression in 3.13.0.
1027
1028..
1029
1030.. date: 2024-10-02-15-05-45
1031.. gh-issue: 124653
1032.. nonce: tqsTu9
1033.. section: Library
1034
1035Fix detection of the minimal Queue API needed by the :mod:`logging` module.
1036Patch by Bénédikt Tran.
1037
1038..
1039
1040.. date: 2024-10-01-17-12-20
1041.. gh-issue: 124858
1042.. nonce: Zy0tvT
1043.. section: Library
1044
1045Fix reference cycles left in tracebacks in :func:`asyncio.open_connection`
1046when used with ``happy_eyeballs_delay``
1047
1048..
1049
1050.. date: 2024-10-01-13-46-58
1051.. gh-issue: 124390
1052.. nonce: dK1Zcm
1053.. section: Library
1054
1055Fixed :exc:`AssertionError` when using
1056:func:`!asyncio.staggered.staggered_race` with
1057:attr:`asyncio.eager_task_factory`.
1058
1059..
1060
1061.. date: 2024-09-28-02-03-04
1062.. gh-issue: 124651
1063.. nonce: bLBGtH
1064.. section: Library
1065
1066Properly quote template strings in :mod:`venv` activation scripts.
1067
1068..
1069
1070.. date: 2024-09-27-15-16-04
1071.. gh-issue: 116850
1072.. nonce: dBkR0-
1073.. section: Library
1074
1075Fix :mod:`argparse` for namespaces with not directly writable dict (e.g.
1076classes).
1077
1078..
1079
1080.. date: 2024-09-26-22-14-12
1081.. gh-issue: 58573
1082.. nonce: hozbm9
1083.. section: Library
1084
1085Fix conflicts between abbreviated long options in the parent parser and
1086subparsers in :mod:`argparse`.
1087
1088..
1089
1090.. date: 2024-09-26-13-43-39
1091.. gh-issue: 124594
1092.. nonce: peYhsP
1093.. section: Library
1094
1095All :mod:`asyncio` REPL prompts run in the same :class:`context
1096<contextvars.Context>`. Contributed by Bartosz Sławecki.
1097
1098..
1099
1100.. date: 2024-09-26-09-18-09
1101.. gh-issue: 61181
1102.. nonce: dwjmch
1103.. section: Library
1104
1105Fix support of :ref:`choices` with string value in :mod:`argparse`.
1106Substrings of the specified string no longer considered valid values.
1107
1108..
1109
1110.. date: 2024-09-25-18-08-29
1111.. gh-issue: 80259
1112.. nonce: kO5Tw7
1113.. section: Library
1114
1115Fix :mod:`argparse` support of positional arguments with ``nargs='?'``,
1116``default=argparse.SUPPRESS`` and specified ``type``.
1117
1118..
1119
1120.. date: 2024-09-25-18-07-51
1121.. gh-issue: 120378
1122.. nonce: NlBSz_
1123.. section: Library
1124
1125Fix a crash related to an integer overflow in :func:`curses.resizeterm` and
1126:func:`curses.resize_term`.
1127
1128..
1129
1130.. date: 2024-09-24-22-38-51
1131.. gh-issue: 123884
1132.. nonce: iEPTK4
1133.. section: Library
1134
1135Fixed bug in itertools.tee() handling of other tee inputs (a tee in a tee).
1136The output now has the promised *n* independent new iterators.  Formerly,
1137the first iterator was identical (not independent) to the input iterator.
1138This would sometimes give surprising results.
1139
1140..
1141
1142.. date: 2024-09-24-18-16-59
1143.. gh-issue: 58956
1144.. nonce: 0wFrBR
1145.. section: Library
1146
1147Fixed a bug in :mod:`pdb` where sometimes the breakpoint won't trigger if it
1148was set on a function which is already in the call stack.
1149
1150..
1151
1152.. date: 2024-09-24-12-34-48
1153.. gh-issue: 124345
1154.. nonce: s3vKql
1155.. section: Library
1156
1157:mod:`argparse` vim supports abbreviated single-dash long options separated
1158by ``=`` from its value.
1159
1160..
1161
1162.. date: 2024-09-23-17-33-47
1163.. gh-issue: 104860
1164.. nonce: O86OSc
1165.. section: Library
1166
1167Fix disallowing abbreviation of single-dash long options in :mod:`argparse`
1168with ``allow_abbrev=False``.
1169
1170..
1171
1172.. date: 2024-09-21-23-56-41
1173.. gh-issue: 63143
1174.. nonce: YKu-LQ
1175.. section: Library
1176
1177Fix parsing mutually exclusive arguments in :mod:`argparse`. Arguments with
1178the value identical to the default value (e.g. booleans, small integers,
1179empty or 1-character strings) are no longer considered "not present".
1180
1181..
1182
1183.. date: 2024-09-21-22-32-21
1184.. gh-issue: 72795
1185.. nonce: naLmkX
1186.. section: Library
1187
1188Positional arguments with :ref:`nargs` equal to ``'*'`` or
1189:data:`!argparse.REMAINDER` are no longer required. This allows to use
1190positional argument with ``nargs='*'`` and without ``default`` in mutually
1191exclusive group and improves error message about required arguments.
1192
1193..
1194
1195.. date: 2024-09-21-19-02-37
1196.. gh-issue: 59317
1197.. nonce: OAhNZZ
1198.. section: Library
1199
1200Fix parsing positional argument with :ref:`nargs` equal to ``'?'`` or
1201``'*'`` if it is preceded by an option and another positional argument.
1202
1203..
1204
1205.. date: 2024-09-20-12-23-11
1206.. gh-issue: 53780
1207.. nonce: mrV1zi
1208.. section: Library
1209
1210:mod:`argparse` now ignores the first ``"--"`` (double dash) between an
1211option and command.
1212
1213..
1214
1215.. date: 2024-09-19-20-15-00
1216.. gh-issue: 124217
1217.. nonce: j0KlQB
1218.. section: Library
1219
1220Add RFC 9637 reserved IPv6 block ``3fff::/20`` in :mod:`ipaddress` module.
1221
1222..
1223
1224.. date: 2024-09-19-10-36-18
1225.. gh-issue: 81691
1226.. nonce: Hyhp_U
1227.. section: Library
1228
1229Fix handling of multiple ``"--"`` (double dashes) in :mod:`argparse`. Only
1230the first one has now been removed, all subsequent ones are now taken
1231literally.
1232
1233..
1234
1235.. date: 2024-09-16-12-31-48
1236.. gh-issue: 123978
1237.. nonce: z3smEu
1238.. section: Library
1239
1240Remove broken :func:`time.thread_time` and :func:`time.thread_time_ns` on
1241NetBSD.
1242
1243..
1244
1245.. date: 2024-09-13-18-24-27
1246.. gh-issue: 124008
1247.. nonce: XaiPQx
1248.. section: Library
1249
1250Fix possible crash (in debug build), incorrect output or returning incorrect
1251value from raw binary ``write()`` when writing to console on Windows.
1252
1253..
1254
1255.. date: 2024-09-11-13-33-19
1256.. gh-issue: 123935
1257.. nonce: fRZ_56
1258.. section: Library
1259
1260Fix parent slots detection for dataclasses that inherit from classes with
1261``__dictoffset__``.
1262
1263..
1264
1265.. date: 2024-09-06-00-00-43
1266.. gh-issue: 122765
1267.. nonce: tx4hsr
1268.. section: Library
1269
1270Fix unbalanced quote errors occurring when activate.csh in :mod:`venv` was
1271sourced with a custom prompt containing unpaired quotes or newlines.
1272
1273..
1274
1275.. date: 2024-08-28-19-27-35
1276.. gh-issue: 123370
1277.. nonce: SPZ9Ux
1278.. section: Library
1279
1280Fix the canvas not clearing after running turtledemo clock.
1281
1282..
1283
1284.. date: 2024-08-23-15-49-10
1285.. gh-issue: 116810
1286.. nonce: QLBUU8
1287.. section: Library
1288
1289Resolve a memory leak introduced in CPython 3.10's :mod:`ssl` when the
1290:attr:`ssl.SSLSocket.session` property was accessed.  Speeds up read and
1291write access to said property by no longer unnecessarily cloning session
1292objects via serialization.
1293
1294..
1295
1296.. date: 2024-07-23-02-24-50
1297.. gh-issue: 120754
1298.. nonce: nHb5mG
1299.. section: Library
1300
1301Update unbounded ``read`` calls in :mod:`zipfile` to specify an explicit
1302``size`` putting a limit on how much data they may read. This also updates
1303handling around ZIP max comment size to match the standard instead of
1304reading comments that are one byte too long.
1305
1306..
1307
1308.. date: 2024-06-06-04-06-05
1309.. gh-issue: 70764
1310.. nonce: 6511hw
1311.. section: Library
1312
1313Fixed an issue where :func:`inspect.getclosurevars` would incorrectly
1314classify an attribute name as a global variable when the name exists both as
1315an attribute name and a global variable.
1316
1317..
1318
1319.. date: 2024-06-05-19-09-36
1320.. gh-issue: 118289
1321.. nonce: moL9_d
1322.. section: Library
1323
1324:func:`!posixpath.realpath` now raises :exc:`NotADirectoryError` when
1325*strict* mode is enabled and a non-directory path with a trailing slash is
1326supplied.
1327
1328..
1329
1330.. date: 2024-06-02-11-48-19
1331.. gh-issue: 119826
1332.. nonce: N1obGa
1333.. section: Library
1334
1335Always return an absolute path for :func:`os.path.abspath` on Windows.
1336
1337..
1338
1339.. date: 2024-04-19-05-58-50
1340.. gh-issue: 117766
1341.. nonce: J3xepp
1342.. section: Library
1343
1344Always use :func:`str` to print ``choices`` in :mod:`argparse`.
1345
1346..
1347
1348.. date: 2023-10-26-16-36-22
1349.. gh-issue: 101955
1350.. nonce: Ixu3IF
1351.. section: Library
1352
1353Fix SystemError when match regular expression pattern containing some
1354combination of possessive quantifier, alternative and capture group.
1355
1356..
1357
1358.. date: 2023-02-15-23-54-42
1359.. gh-issue: 88110
1360.. nonce: KU6erv
1361.. section: Library
1362
1363Fixed :class:`multiprocessing.Process` reporting a ``.exitcode`` of 1 even
1364on success when using the ``"fork"`` start method while using a
1365:class:`concurrent.futures.ThreadPoolExecutor`.
1366
1367..
1368
1369.. date: 2022-10-15-10-18-20
1370.. gh-issue: 71936
1371.. nonce: MzJjc_
1372.. section: Library
1373
1374Fix a race condition in :class:`multiprocessing.pool.Pool`.
1375
1376..
1377
1378.. bpo: 46128
1379.. date: 2021-12-19-10-47-24
1380.. nonce: Qv3EK1
1381.. section: Library
1382
1383Strip :class:`unittest.IsolatedAsyncioTestCase` stack frames from reported
1384stacktraces.
1385
1386..
1387
1388.. bpo: 14074
1389.. date: 2018-12-04-07-36-27
1390.. nonce: fMLKCu
1391.. section: Library
1392
1393Fix :mod:`argparse` metavar processing to allow positional arguments to have
1394a tuple metavar.
1395
1396..
1397
1398.. date: 2024-10-04-15-34-34
1399.. gh-issue: 122392
1400.. nonce: V8K3w2
1401.. section: IDLE
1402
1403Increase currently inadequate vertical spacing for the IDLE browsers (path,
1404module, and stack) on high-resolution monitors.
1405
1406..
1407
1408.. date: 2024-11-09-19-43-10
1409.. gh-issue: 126622
1410.. nonce: YacfDc
1411.. section: Documentation
1412
1413Added stub pages for removed modules explaining their removal, where to find
1414replacements, and linking to the last Python version that supported them.
1415Contributed by Ned Batchelder.
1416
1417..
1418
1419.. date: 2024-10-10-23-46-54
1420.. gh-issue: 125277
1421.. nonce: QAby09
1422.. section: Documentation
1423
1424Require Sphinx 7.2.6 or later to build the Python documentation. Patch by
1425Adam Turner.
1426
1427..
1428
1429.. date: 2024-10-10-02-56-24
1430.. gh-issue: 124872
1431.. nonce: 0mDDOq
1432.. section: Documentation
1433
1434Added definitions for :term:`context`, :term:`current context`, and
1435:term:`context management protocol`, updated related definitions to be
1436consistent, and expanded the documentation for :class:`contextvars.Context`.
1437
1438..
1439
1440.. date: 2024-10-07-00-31-17
1441.. gh-issue: 125018
1442.. nonce: yKnymn
1443.. section: Documentation
1444
1445The :mod:`importlib.metadata` documentation now includes semantic
1446cross-reference targets for the significant documented APIs. This means
1447intersphinx references like :func:`importlib.metadata.version` will now work
1448as expected.
1449
1450..
1451
1452.. date: 2024-08-01-17-18-21
1453.. gh-issue: 70870
1454.. nonce: fZnBM9
1455.. section: Documentation
1456
1457Clarified the dual usage of the term "free variable" (both the formal
1458meaning of any reference to names defined outside the local scope, and the
1459narrower pragmatic meaning of nonlocal variables named in ``co_freevars``).
1460
1461..
1462
1463.. date: 2024-07-19-12-22-48
1464.. gh-issue: 121277
1465.. nonce: wF_zKd
1466.. section: Documentation
1467
1468Writers of CPython's documentation can now use ``next`` as the version for
1469the ``versionchanged``, ``versionadded``, ``deprecated`` directives.
1470
1471..
1472
1473.. date: 2023-03-28-22-24-45
1474.. gh-issue: 60712
1475.. nonce: So5uad
1476.. section: Documentation
1477
1478Include the :class:`object` type in the lists of documented types. Change by
1479Furkan Onder and Martin Panter.
1480
1481..
1482
1483.. bpo: 34008
1484.. date: 2018-07-04-20-35-25
1485.. nonce: bqecIb
1486.. section: Documentation
1487
1488The :c:func:`Py_Main` documentation moved from the "Very High Level API"
1489section to the "Initialization and Finalization" section.
1490
1491Also make it explicit that we expect ``Py_Main`` to typically be called
1492instead of ``Py_Initialize`` rather than after it (since ``Py_Main`` makes
1493its own call to ``Py_Initialize``). Document that calling both is supported
1494but is version dependent on which settings will be applied correctly.
1495
1496..
1497
1498.. date: 2024-11-24-07-01-28
1499.. gh-issue: 113841
1500.. nonce: WFg-Bu
1501.. section: Core and Builtins
1502
1503Fix possible undefined behavior division by zero in :class:`complex`'s
1504:c:func:`_Py_c_pow`.
1505
1506..
1507
1508.. date: 2024-11-19-21-49-58
1509.. gh-issue: 127020
1510.. nonce: 5vvI17
1511.. section: Core and Builtins
1512
1513Fix a crash in the free threading build when :c:func:`PyCode_GetCode`,
1514:c:func:`PyCode_GetVarnames`, :c:func:`PyCode_GetCellvars`, or
1515:c:func:`PyCode_GetFreevars` were called from multiple threads at the same
1516time.
1517
1518..
1519
1520.. date: 2024-11-18-23-18-17
1521.. gh-issue: 126980
1522.. nonce: r8QHdi
1523.. section: Core and Builtins
1524
1525Fix :meth:`~object.__buffer__` of :class:`bytearray` crashing when
1526:attr:`~inspect.BufferFlags.READ` or :attr:`~inspect.BufferFlags.WRITE` are
1527passed as flags.
1528
1529..
1530
1531.. date: 2024-11-16-11-11-35
1532.. gh-issue: 126881
1533.. nonce: ijofLZ
1534.. section: Core and Builtins
1535
1536Fix crash in finalization of dtoa state. Patch by Kumar Aditya.
1537
1538..
1539
1540.. date: 2024-11-12-19-24-00
1541.. gh-issue: 126341
1542.. nonce: 5SdAe1
1543.. section: Core and Builtins
1544
1545Now :exc:`ValueError` is raised instead of :exc:`SystemError` when trying to
1546iterate over a released :class:`memoryview` object.
1547
1548..
1549
1550.. date: 2024-11-11-17-02-48
1551.. gh-issue: 126688
1552.. nonce: QiOXUi
1553.. section: Core and Builtins
1554
1555Fix a crash when calling :func:`os.fork` on some operating systems,
1556including SerenityOS.
1557
1558..
1559
1560.. date: 2024-11-09-16-10-22
1561.. gh-issue: 126066
1562.. nonce: 9zs4m4
1563.. section: Core and Builtins
1564
1565Fix :mod:`importlib` to not write an incomplete .pyc files when a ulimit or
1566some other operating system mechanism is preventing the write to go through
1567fully.
1568
1569..
1570
1571.. date: 2024-11-02-14-43-46
1572.. gh-issue: 126312
1573.. nonce: LMHzLT
1574.. section: Core and Builtins
1575
1576Fix crash during garbage collection on an object frozen by :func:`gc.freeze`
1577on the free-threaded build.
1578
1579..
1580
1581.. date: 2024-10-29-15-17-31
1582.. gh-issue: 126139
1583.. nonce: B4OQ8a
1584.. section: Core and Builtins
1585
1586Provide better error location when attempting to use a :term:`future
1587statement <__future__>` with an unknown future feature.
1588
1589..
1590
1591.. date: 2024-10-26-23-50-03
1592.. gh-issue: 126018
1593.. nonce: Hq-qcM
1594.. section: Core and Builtins
1595
1596Fix a crash in :func:`sys.audit` when passing a non-string as first argument
1597and Python was compiled in debug mode.
1598
1599..
1600
1601.. date: 2024-10-24-22-43-03
1602.. gh-issue: 125942
1603.. nonce: 3UQht1
1604.. section: Core and Builtins
1605
1606On Android, the ``errors`` setting of :any:`sys.stdout` was changed from
1607``surrogateescape`` to ``backslashreplace``.
1608
1609..
1610
1611.. date: 2024-10-23-14-42-27
1612.. gh-issue: 125859
1613.. nonce: m3EF9E
1614.. section: Core and Builtins
1615
1616Fix a crash in the free threading build when :func:`gc.get_objects` or
1617:func:`gc.get_referrers` is called during an in-progress garbage collection.
1618
1619..
1620
1621.. date: 2024-10-18-16-00-10
1622.. gh-issue: 125703
1623.. nonce: QRoqMo
1624.. section: Core and Builtins
1625
1626Correctly honour :mod:`tracemalloc` hooks in specialized ``Py_DECREF``
1627paths. Patch by Pablo Galindo
1628
1629..
1630
1631.. date: 2024-10-18-10-11-43
1632.. gh-issue: 125593
1633.. nonce: Q97m3A
1634.. section: Core and Builtins
1635
1636Use color to highlight error locations in traceback from exception group
1637
1638..
1639
1640.. date: 2024-10-16-12-12-39
1641.. gh-issue: 125444
1642.. nonce: 9tG2X6
1643.. section: Core and Builtins
1644
1645Fix illegal instruction for older Arm architectures. Patch by Diego Russo,
1646testing by Ross Burton.
1647
1648..
1649
1650.. date: 2024-10-15-15-29-41
1651.. gh-issue: 124375
1652.. nonce: wNrWVa
1653.. section: Core and Builtins
1654
1655Fix a crash in the free threading build when the GC runs concurrently with a
1656new thread starting.
1657
1658..
1659
1660.. date: 2024-10-10-14-47-13
1661.. gh-issue: 125221
1662.. nonce: nfSQzT
1663.. section: Core and Builtins
1664
1665Fix possible race condition when calling :meth:`~object.__reduce_ex__` for
1666the first time in the free threading build.
1667
1668..
1669
1670.. date: 2024-10-09-13-53-50
1671.. gh-issue: 125038
1672.. nonce: ffSLCz
1673.. section: Core and Builtins
1674
1675Fix crash when iterating over a generator expression after direct changes on
1676``gi_frame.f_locals``. Patch by Mikhail Efimov.
1677
1678..
1679
1680.. date: 2024-10-03-14-39-41
1681.. gh-issue: 123378
1682.. nonce: dCxANf
1683.. section: Core and Builtins
1684
1685Fix a crash in the :meth:`~object.__str__` method of :exc:`UnicodeError`
1686objects when the :attr:`UnicodeError.start` and :attr:`UnicodeError.end`
1687values are invalid or out-of-range. Patch by Bénédikt Tran.
1688
1689..
1690
1691.. date: 2024-09-26-18-21-06
1692.. gh-issue: 116510
1693.. nonce: FacUWO
1694.. section: Core and Builtins
1695
1696Fix a crash caused by immortal interned strings being shared between
1697sub-interpreters that use basic single-phase init.  In that case, the string
1698can be used by an interpreter that outlives the interpreter that created and
1699interned it.  For interpreters that share obmalloc state, also share the
1700interned dict with the main interpreter.
1701
1702..
1703
1704.. date: 2024-09-19-13-17-31
1705.. gh-issue: 122878
1706.. nonce: 4iFpsB
1707.. section: Core and Builtins
1708
1709Use the ``pager`` binary, if available (e.g. on Debian and derivatives), to
1710display REPL ``help()``.
1711
1712..
1713
1714.. date: 2024-09-17-22-06-01
1715.. gh-issue: 124188
1716.. nonce: aFqNAB
1717.. section: Core and Builtins
1718
1719Fix reading and decoding a line from the source file witn non-UTF-8 encoding
1720for syntax errors raised in the compiler.
1721
1722..
1723
1724.. date: 2024-09-11-01-32-07
1725.. gh-issue: 123930
1726.. nonce: BkPfB6
1727.. section: Core and Builtins
1728
1729Improve the error message when a script shadowing a module from the standard
1730library causes :exc:`ImportError` to be raised during a "from" import.
1731Similarly, improve the error message when a script shadowing a third party
1732module attempts to "from" import an attribute from that third party module
1733while still initialising.
1734
1735..
1736
1737.. date: 2024-08-12-11-19-37
1738.. gh-issue: 122907
1739.. nonce: q68096
1740.. section: Core and Builtins
1741
1742Building with ``HAVE_DYNAMIC_LOADING`` now works as well as it did in 3.12.
1743Existing deficiences will be addressed separately. (See
1744https://github.com/python/cpython/issues/122950.)
1745
1746..
1747
1748.. date: 2024-05-12-03-10-36
1749.. gh-issue: 118950
1750.. nonce: 5Wc4vp
1751.. section: Core and Builtins
1752
1753Fix bug where SSLProtocol.connection_lost wasn't getting called when OSError
1754was thrown on writing to socket.
1755
1756..
1757
1758.. date: 2023-12-30-00-21-45
1759.. gh-issue: 113570
1760.. nonce: _XQgsW
1761.. section: Core and Builtins
1762
1763Fixed a bug in ``reprlib.repr`` where it incorrectly called the repr method
1764on shadowed Python built-in types.
1765
1766..
1767
1768.. date: 2023-09-22-21-01-56
1769.. gh-issue: 109746
1770.. nonce: 32MHt9
1771.. section: Core and Builtins
1772
1773If :func:`!_thread.start_new_thread` fails to start a new thread, it deletes
1774its state from interpreter and thus avoids its repeated cleanup on
1775finalization.
1776
1777..
1778
1779.. date: 2024-11-07-20-24-58
1780.. gh-issue: 126554
1781.. nonce: ri12eb
1782.. section: C API
1783
1784Fix error handling in :class:`ctypes.CDLL` objects which could result in a
1785crash in rare situations.
1786
1787..
1788
1789.. date: 2024-10-16-19-28-23
1790.. gh-issue: 125608
1791.. nonce: gTsU2g
1792.. section: C API
1793
1794Fix a bug where dictionary watchers (e.g., :c:func:`PyDict_Watch`) on an
1795object's attribute dictionary (:attr:`~object.__dict__`) were not triggered
1796when the object's attributes were modified.
1797
1798..
1799
1800.. bpo: 34008
1801.. date: 2018-06-30-21-48-16
1802.. nonce: 2Wjtm0
1803.. section: C API
1804
1805Added ``Py_IsInitialized`` to the list of APIs that are safe to call before
1806the interpreter is initialized, and updated the embedding tests to cover it.
1807
1808..
1809
1810.. date: 2024-11-07-15-03-34
1811.. gh-issue: 123877
1812.. nonce: 9dWXe2
1813.. section: Build
1814
1815Set ``wasm32-wasip1`` as the WASI target. The old ``wasm32-wasi`` target is
1816deprecated so it can be used for an eventual WASI 1.0.
1817
1818..
1819
1820.. date: 2024-11-04-09-42-04
1821.. gh-issue: 89640
1822.. nonce: QBv05o
1823.. section: Build
1824
1825Hard-code float word ordering as little endian on WASM.
1826
1827..
1828
1829.. date: 2024-10-24-22-14-35
1830.. gh-issue: 125940
1831.. nonce: 2wMtTA
1832.. section: Build
1833
1834The Android build now supports `16 KB page sizes
1835<https://developer.android.com/guide/practices/page-sizes>`__.
1836
1837..
1838
1839.. date: 2024-10-16-09-37-51
1840.. gh-issue: 89640
1841.. nonce: UDsW-j
1842.. section: Build
1843
1844Improve detection of float word ordering on Linux when link-time
1845optimizations are enabled.
1846
1847..
1848
1849.. date: 2024-10-13-21-11-30
1850.. gh-issue: 125269
1851.. nonce: BC-fdo
1852.. section: Build
1853
1854Fix detection of whether ``-latomic`` is needed when cross-compiling CPython
1855using the configure script.
1856
1857..
1858
1859.. date: 2024-08-14-19-17-34
1860.. gh-issue: 121634
1861.. nonce: eOMfHG
1862.. section: Build
1863
1864Allow for specifying the target compile triple for WASI.
1865
1866..
1867
1868.. date: 2024-08-12-15-48-49
1869.. gh-issue: 122578
1870.. nonce: YJ3xEa
1871.. section: Build
1872
1873Use WASI SDK 24 for testing.
1874
1875..
1876
1877.. date: 2024-03-03-20-28-23
1878.. gh-issue: 115382
1879.. nonce: 97hJFE
1880.. section: Build
1881
1882Fix cross compile failures when the host and target SOABIs match.
1883