summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/3.13.0a5.rst
blob: 6d74c6bc5c4d553ca295dfffc1cb2922b7bbbc3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
.. date: 2024-02-18-03-14-40
.. gh-issue: 115398
.. nonce: tzvxH8
.. release date: 2024-03-12
.. section: Security

Allow controlling Expat >=2.6.0 reparse deferral (:cve:`2023-52425`) by adding
five new methods:

* :meth:`xml.etree.ElementTree.XMLParser.flush`
* :meth:`xml.etree.ElementTree.XMLPullParser.flush`
* :meth:`xml.parsers.expat.xmlparser.GetReparseDeferralEnabled`
* :meth:`xml.parsers.expat.xmlparser.SetReparseDeferralEnabled`
* :meth:`xml.sax.expatreader.ExpatParser.flush`

..

.. date: 2024-01-26-22-14-09
.. gh-issue: 114572
.. nonce: t1QMQD
.. section: Security

:meth:`ssl.SSLContext.cert_store_stats` and
:meth:`ssl.SSLContext.get_ca_certs` now correctly lock access to the
certificate store, when the :class:`ssl.SSLContext` is shared across
multiple threads.

..

.. date: 2024-03-11-22-24-59
.. gh-issue: 116604
.. nonce: LCEzAT
.. section: Core and Builtins

Respect the status of the garbage collector when indirect calls are made via
:c:func:`PyErr_CheckSignals` and the evaluation breaker. Patch by Pablo
Galindo

..

.. date: 2024-03-09-11-10-53
.. gh-issue: 112087
.. nonce: nbI0Pw
.. section: Core and Builtins

:class:`list` is now compatible with the implementation of :pep:`703`.

..

.. date: 2024-03-05-22-00-58
.. gh-issue: 116381
.. nonce: 0Nq9iO
.. section: Core and Builtins

Add specialization for ``CONTAINS_OP``.

..

.. date: 2024-03-04-10-19-51
.. gh-issue: 116296
.. nonce: gvtxyU
.. section: Core and Builtins

Fix possible refleak in :meth:`!object.__reduce__` internal error handling.

..

.. date: 2024-02-22-16-17-53
.. gh-issue: 115823
.. nonce: c1TreJ
.. section: Core and Builtins

Properly calculate error ranges in the parser when raising
:exc:`SyntaxError` exceptions caused by invalid byte sequences. Patch by
Pablo Galindo

..

.. date: 2024-02-22-11-33-20
.. gh-issue: 115778
.. nonce: jksd1D
.. section: Core and Builtins

Add ``tierN`` annotation for instruction definition in interpreter DSL.

..

.. date: 2024-02-20-18-49-02
.. gh-issue: 115733
.. nonce: 51Zb85
.. section: Core and Builtins

Fix crash when calling ``next()`` on exhausted list iterators.

..

.. date: 2024-02-20-12-46-20
.. gh-issue: 115700
.. nonce: KLJ5r4
.. section: Core and Builtins

The regen-cases build stage now works on Windows.

..

.. date: 2024-02-14-23-50-43
.. gh-issue: 115347
.. nonce: VkHvQC
.. section: Core and Builtins

Fix bug where docstring was replaced by a redundant NOP when Python is run
with ``-OO``.

..

.. date: 2024-02-12-23-29-17
.. gh-issue: 115323
.. nonce: 3t6687
.. section: Core and Builtins

Make error message more meaningful for when :meth:`bytearray.extend` is
called with a :class:`str` object.

..

.. date: 2024-02-09-18-59-22
.. gh-issue: 112175
.. nonce: qglugr
.. section: Core and Builtins

Every ``PyThreadState`` now has its own ``eval_breaker``, allowing specific
threads to be interrupted.

..

.. date: 2024-02-08-16-01-18
.. gh-issue: 115154
.. nonce: ji96FV
.. section: Core and Builtins

Fix a bug that was causing the :func:`tokenize.untokenize` function to
handle unicode named literals incorrectly. Patch by Pablo Galindo

..

.. date: 2024-01-28-02-46-12
.. gh-issue: 112433
.. nonce: FUX-nT
.. section: Core and Builtins

Add ability to force alignment of :mod:`ctypes.Structure` by way of the new
``_align_`` attribute on the class.

..

.. date: 2023-07-16-15-02-47
.. gh-issue: 104090
.. nonce: oMjNa9
.. section: Core and Builtins

The multiprocessing resource tracker now exits with non-zero status code if
a resource leak was detected. It still exits with status code 0 otherwise.

..

.. date: 2023-06-16-21-29-06
.. gh-issue: 105858
.. nonce: Q7h0EV
.. section: Core and Builtins

Improve the constructors for :mod:`ast` nodes. Arguments of list types now
default to an empty list if omitted, and optional fields default to
``None``. AST nodes now have an ``__annotations__`` attribute with the
expected types of their attributes. Passing unrecognized extra arguments to
AST nodes is deprecated and will become an error in Python 3.15. Omitting a
required argument to an AST node is deprecated and will become an error in
Python 3.15. Patch by Jelle Zijlstra.

..

.. date: 2023-02-13-11-36-50
.. gh-issue: 101860
.. nonce: CKCMbC
.. section: Core and Builtins

Expose ``__name__`` attribute on property.

..

.. date: 2022-09-04-16-51-56
.. gh-issue: 96497
.. nonce: HTBuIL
.. section: Core and Builtins

Fix incorrect resolution of mangled class variables used in assignment
expressions in comprehensions.

..

.. date: 2024-03-11-12-11-10
.. gh-issue: 116600
.. nonce: FcNBy_
.. section: Library

Fix :func:`repr` for global :class:`~enum.Flag` members.

..

.. date: 2024-03-07-21-57-50
.. gh-issue: 116349
.. nonce: fD2pbP
.. section: Library

:func:`platform.java_ver` is deprecated and will be removed in 3.15. It was
largely untested, had a confusing API, and was only useful for Jython
support.

..

.. date: 2024-03-05-20-53-34
.. gh-issue: 116143
.. nonce: sww6Zl
.. section: Library

Fix a race in pydoc ``_start_server``, eliminating a window in which
``_start_server`` can return a thread that is "serving" but without a
``docserver`` set.

..

.. date: 2024-03-05-14-34-22
.. gh-issue: 116127
.. nonce: 5uktu3
.. section: Library

:mod:`typing`: implement :pep:`705` which adds :data:`typing.ReadOnly`
support to :class:`typing.TypedDict`.

..

.. date: 2024-03-05-02-09-18
.. gh-issue: 116325
.. nonce: FmlBYv
.. section: Library

:mod:`typing`: raise :exc:`SyntaxError` instead of :exc:`AttributeError` on
forward references as empty strings.

..

.. date: 2024-03-02-11-31-49
.. gh-issue: 115957
.. nonce: C-3Z_U
.. section: Library

When ``asyncio.TaskGroup.create_task`` is called on an inactive
``asyncio.TaskGroup``, the given coroutine will be closed (which prevents a
``RuntimeWarning``).

..

.. date: 2024-03-01-14-22-08
.. gh-issue: 115978
.. nonce: r2ePTo
.. section: Library

Disable preadv(), readv(), pwritev(), and writev() on WASI.

Under wasmtime for WASI 0.2, these functions don't pass test_posix
(https://github.com/bytecodealliance/wasmtime/issues/7830).

..

.. date: 2024-03-01-11-57-32
.. gh-issue: 88352
.. nonce: bZ68rw
.. section: Library

Fix the computation of the next rollover time in the
:class:`logging.TimedRotatingFileHandler` handler. :meth:`!computeRollover`
now always returns a timestamp larger than the specified time and works
correctly during the DST change. :meth:`!doRollover` no longer overwrite the
already rolled over file, saving from data loss when run at midnight or
during repeated time at the DST change.

..

.. date: 2024-02-29-20-06-06
.. gh-issue: 87115
.. nonce: FVMiOR
.. section: Library

Set ``__main__.__spec__`` to ``None`` when running a script with :mod:`pdb`

..

.. date: 2024-02-29-17-06-54
.. gh-issue: 76511
.. nonce: WqjRLP
.. section: Library

Fix UnicodeEncodeError in :meth:`email.Message.as_string` that results when
a message that claims to be in the ascii character set actually has
non-ascii characters. Non-ascii characters are now replaced with the U+FFFD
replacement character, like in the ``replace`` error handler.

..

.. date: 2024-02-28-17-50-42
.. gh-issue: 89547
.. nonce: GetF38
.. section: Library

Add support for nested typing special forms like Final[ClassVar[int]].

..

.. date: 2024-02-28-17-04-28
.. gh-issue: 65824
.. nonce: gG8KR1
.. section: Library

Improve the ``less`` prompt in :mod:`pydoc`.

..

.. date: 2024-02-28-13-10-17
.. gh-issue: 116040
.. nonce: wDidHd
.. section: Library

[Enum] fix by-value calls when second value is falsey; e.g. Cardinal(1, 0)

..

.. date: 2024-02-28-12-14-31
.. gh-issue: 115821
.. nonce: YO2vKA
.. section: Library

[Enum] Improve error message when calling super().__new__() in custom
__new__.

..

.. date: 2024-02-27-20-11-29
.. gh-issue: 85644
.. nonce: 3rgcBm
.. section: Library

Use the ``XDG_CURRENT_DESKTOP`` environment variable in :mod:`webbrowser` to
check desktop. Prefer it to the deprecated ``GNOME_DESKTOP_SESSION_ID`` for
GNOME detection.

..

.. date: 2024-02-27-13-05-51
.. gh-issue: 75988
.. nonce: In6LlB
.. section: Library

Fixed :func:`unittest.mock.create_autospec` to pass the call through to the
wrapped object to return the real result.

..

.. date: 2024-02-25-19-20-05
.. gh-issue: 115881
.. nonce: ro_Kuw
.. section: Library

Fix issue where :func:`ast.parse` would incorrectly flag conditional context
managers (such as ``with (x() if y else z()): ...``) as invalid syntax if
``feature_version=(3, 8)`` was passed. This reverts changes to the grammar
made as part of gh-94949.

..

.. date: 2024-02-24-18-48-14
.. gh-issue: 115886
.. nonce: rgM6AF
.. section: Library

Fix silent truncation of the name with an embedded null character in
:class:`multiprocessing.shared_memory.SharedMemory`.

..

.. date: 2024-02-23-11-08-31
.. gh-issue: 115532
.. nonce: zVd3gK
.. section: Library

Add kernel density estimation to the statistics module.

..

.. date: 2024-02-22-12-10-18
.. gh-issue: 115714
.. nonce: P2JsU1
.. section: Library

On WASI, the :mod:`time` module no longer get process time using ``times()``
or ``CLOCK_PROCESS_CPUTIME_ID``, system API is that is unreliable and is
likely to be removed from WASI. The affected clock functions fall back to
calling ``clock()``.

..

.. date: 2024-02-22-11-29-27
.. gh-issue: 115809
.. nonce: 9H1DhB
.. section: Library

Improve algorithm for computing which rolled-over log files to delete in
:class:`logging.TimedRotatingFileHandler`. It is now reliable for handlers
without ``namer`` and with arbitrary deterministic ``namer`` that leaves the
datetime part in the file name unmodified.

..

.. date: 2024-02-21-17-54-59
.. gh-issue: 74668
.. nonce: JT-Q8W
.. section: Library

:mod:`urllib.parse` functions :func:`~urllib.parse.parse_qs` and
:func:`~urllib.parse.parse_qsl` now support bytes arguments containing raw
and percent-encoded non-ASCII data.

..

.. date: 2024-02-20-22-02-34
.. gh-issue: 67044
.. nonce: QF9_Ru
.. section: Library

:func:`csv.writer` now always quotes or escapes ``'\r'`` and ``'\n'``,
regardless of *lineterminator* value.

..

.. date: 2024-02-20-16-42-54
.. gh-issue: 115712
.. nonce: EXVMXw
.. section: Library

Restore support of space delimiter with ``skipinitialspace=True`` in
:mod:`csv`. :func:`csv.writer()` now quotes empty fields if delimiter is a
space and skipinitialspace is true and raises exception if quoting is not
possible.

..

.. date: 2024-02-20-07-38-15
.. gh-issue: 112364
.. nonce: EX7uGI
.. section: Library

Fixed :func:`ast.unparse` to handle format_spec with ``"``, ``'`` or ``\\``.
Patched by Frank Hoffmann.

..

.. date: 2024-02-19-16-53-48
.. gh-issue: 112997
.. nonce: sYBXRZ
.. section: Library

Stop logging potentially sensitive callback arguments in :mod:`asyncio`
unless debug mode is active.

..

.. date: 2024-02-19-15-52-30
.. gh-issue: 114914
.. nonce: M5-1d8
.. section: Library

Fix an issue where an abandoned :class:`StreamWriter` would not be garbage
collected.

..

.. date: 2024-02-18-12-18-12
.. gh-issue: 111358
.. nonce: 9yJUMD
.. section: Library

Fix a bug in :meth:`asyncio.BaseEventLoop.shutdown_default_executor` to
ensure the timeout passed to the coroutine behaves as expected.

..

.. date: 2024-02-17-18-47-12
.. gh-issue: 115618
.. nonce: napiNp
.. section: Library

Fix improper decreasing the reference count for ``None`` argument in
:class:`property` methods :meth:`~property.getter`, :meth:`~property.setter`
and :meth:`~property.deleter`.

..

.. date: 2024-02-16-16-40-10
.. gh-issue: 112720
.. nonce: io6_Ac
.. section: Library

Refactor :class:`dis.ArgResolver` to make it possible to subclass and change
the way jump args are interpreted.

..

.. date: 2024-02-15-23-42-54
.. gh-issue: 112006
.. nonce: 4wxcK-
.. section: Library

Fix :func:`inspect.unwrap` for types with the ``__wrapper__`` data
descriptor. Fix :meth:`inspect.Signature.from_callable` for builtins
:func:`classmethod` and :func:`staticmethod`.

..

.. date: 2024-02-15-19-11-49
.. gh-issue: 101293
.. nonce: 898b8l
.. section: Library

Support callables with the ``__call__()`` method and types with
``__new__()`` and ``__init__()`` methods set to class methods, static
methods, bound methods, partial functions, and other types of methods and
descriptors in :meth:`inspect.Signature.from_callable`.

..

.. date: 2024-02-12-11-42-48
.. gh-issue: 103092
.. nonce: sGMKr0
.. section: Library

Isolate :mod:`_lsprof` (apply :pep:`687`).

..

.. date: 2024-02-11-20-12-39
.. gh-issue: 113942
.. nonce: i72sMJ
.. section: Library

:mod:`pydoc` no longer skips global functions implemented as builtin
methods, such as :class:`~type.MethodDescriptorType` and
:class:`~type.WrapperDescriptorType`.

..

.. date: 2024-02-10-17-18-49
.. gh-issue: 115256
.. nonce: 41Fy9P
.. section: Library

Added DeprecationWarning when accessing the tarfile attribute of TarInfo
objects. The attribute is never used internally and is only attached to
TarInfos when the tarfile is opened in write-mode, not read-mode. The
attribute creates an unnecessary reference cycle which may cause corruption
when not closing the handle after writing a tarfile.

..

.. date: 2024-02-09-19-41-48
.. gh-issue: 115197
.. nonce: 20wkWH
.. section: Library

``urllib.request`` no longer resolves the hostname before checking it
against the system's proxy bypass list on macOS and Windows.

..

.. date: 2024-02-09-12-22-47
.. gh-issue: 113812
.. nonce: wOraaG
.. section: Library

:meth:`DatagramTransport.sendto` will now send zero-length datagrams if
called with an empty bytes object. The transport flow control also now
accounts for the datagram header when calculating the buffer size.

..

.. date: 2024-01-30-23-28-29
.. gh-issue: 114763
.. nonce: BRjKkg
.. section: Library

Protect modules loaded with :class:`importlib.util.LazyLoader` from race
conditions when multiple threads try to access attributes before the loading
is complete.

..

.. date: 2024-01-29-13-46-41
.. gh-issue: 114709
.. nonce: SQ998l
.. section: Library

:func:`posixpath.commonpath()` now raises a :exc:`ValueError` exception when
passed an empty iterable. Previously, :exc:`IndexError` was raised.

:func:`posixpath.commonpath()` now raises a :exc:`TypeError` exception when
passed ``None``. Previously, :exc:`ValueError` was raised.

..

.. date: 2024-01-26-16-42-31
.. gh-issue: 114610
.. nonce: S18Vuz
.. section: Library

Fix bug where :meth:`pathlib.PurePath.with_stem` converted a non-empty path
suffix to a stem when given an empty *stem* argument. It now raises
:exc:`ValueError`, just like :meth:`pathlib.PurePath.with_suffix` does when
called on a path with an empty stem, given a non-empty *suffix* argument.

..

.. date: 2023-11-24-23-40-00
.. gh-issue: 107361
.. nonce: v54gh46
.. section: Library

Add :data:`ssl.VERIFY_X509_PARTIAL_CHAIN` and :data:`VERIFY_X509_STRICT` to
the default SSL context created with :func:`ssl.create_default_context`.

..

.. date: 2023-11-20-16-15-44
.. gh-issue: 112281
.. nonce: gH4EVk
.. section: Library

Allow creating :ref:`union of types<types-union>` for
:class:`typing.Annotated` with unhashable metadata.

..

.. date: 2023-11-07-10-22-06
.. gh-issue: 111775
.. nonce: IoVxfX
.. section: Library

Fix :meth:`importlib.resources.simple.ResourceHandle.open` for text mode,
added missed ``stream`` argument.

..

.. date: 2023-10-07-06-15-13
.. gh-issue: 90095
.. nonce: gWn1ka
.. section: Library

Make .pdbrc and -c work with any valid pdb commands.

..

.. date: 2023-08-05-08-41-58
.. gh-issue: 107625
.. nonce: cVSHCT
.. section: Library

Raise :exc:`configparser.ParsingError` from
:meth:`~configparser.ConfigParser.read` and
:meth:`~configparser.ConfigParser.read_file` methods of
:class:`configparser.ConfigParser` if a key without a corresponding value is
continued (that is, followed by an indented line).

..

.. date: 2023-08-02-01-17-32
.. gh-issue: 107155
.. nonce: Mj1K9L
.. section: Library

Fix incorrect output of ``help(x)`` where ``x`` is a :keyword:`lambda`
function, which has an ``__annotations__`` dictionary attribute with a
``"return"`` key.

..

.. date: 2023-07-12-14-52-04
.. gh-issue: 57141
.. nonce: L2k8Xb
.. section: Library

Add option for *non-shallow* comparisons to :class:`filecmp.dircmp` like
:func:`filecmp.cmp`. Original patch by Steven Ward. Enhanced by Tobias
Rautenkranz

..

.. date: 2023-05-17-21-33-21
.. gh-issue: 69990
.. nonce: Blvz9G
.. section: Library

:meth:`Profile.print_stats` has been improved to accept multiple sort
arguments. Patched by Chiu-Hsiang Hsu and Furkan Onder.

..

.. date: 2023-05-01-22-28-57
.. gh-issue: 104061
.. nonce: vxfBXf
.. section: Library

Add :data:`socket.SO_BINDTOIFINDEX` constant.

..

.. date: 2023-04-02-21-20-35
.. gh-issue: 60346
.. nonce: 7mjgua
.. section: Library

Fix ArgumentParser inconsistent with parse_known_args.

..

.. date: 2023-03-03-09-05-42
.. gh-issue: 102389
.. nonce: ucmo0_
.. section: Library

Add ``windows_31j`` to aliases for ``cp932`` codec

..

.. date: 2023-02-14-17-19-59
.. gh-issue: 72249
.. nonce: fv35wU
.. section: Library

:func:`functools.partial`s of :func:`repr` has been improved to include the
:term:`module` name. Patched by Furkan Onder and Anilyka Barry.

..

.. date: 2023-01-12-14-16-01
.. gh-issue: 100985
.. nonce: GT5Fvd
.. section: Library

Update HTTPSConnection to consistently wrap IPv6 Addresses when using a
proxy.

..

.. date: 2023-01-09-14-08-02
.. gh-issue: 100884
.. nonce: DcmdLl
.. section: Library

email: fix misfolding of comma in address-lists over multiple lines in
combination with unicode encoding.

..

.. date: 2022-11-22-23-17-43
.. gh-issue: 95782
.. nonce: an_and
.. section: Library

Fix :func:`io.BufferedReader.tell`, :func:`io.BufferedReader.seek`,
:func:`_pyio.BufferedReader.tell`, :func:`io.BufferedRandom.tell`,
:func:`io.BufferedRandom.seek` and :func:`_pyio.BufferedRandom.tell` being
able to return negative offsets.

..

.. date: 2022-08-26-15-50-53
.. gh-issue: 96310
.. nonce: 0NssDh
.. section: Library

Fix a traceback in :mod:`argparse` when all options in a mutually exclusive
group are suppressed.

..

.. date: 2022-05-25-17-49-04
.. gh-issue: 93205
.. nonce: DjhFVR
.. section: Library

Fixed a bug in :class:`logging.handlers.TimedRotatingFileHandler` where
multiple rotating handler instances pointing to files with the same name but
different extensions would conflict and not delete the correct files.

..

.. bpo: 31116
.. date: 2022-01-14-10-50-17
.. nonce: 0bduV9
.. section: Library

Add Z85 encoding to ``base64``.

..

.. bpo: 44865
.. date: 2021-08-24-20-47-37
.. nonce: c3BhZS
.. section: Library

Add missing call to localization function in :mod:`argparse`.

..

.. bpo: 43952
.. date: 2021-05-03-11-04-12
.. nonce: Me7fJe
.. section: Library

Fix :meth:`multiprocessing.connection.Listener.accept()` to accept empty
bytes as authkey. Not accepting empty bytes as key causes it to hang
indefinitely.

..

.. bpo: 42125
.. date: 2020-12-15-22-30-49
.. nonce: UGyseY
.. section: Library

linecache: get module name from ``__spec__`` if available. This allows
getting source code for the ``__main__`` module when a custom loader is
used.

..

.. bpo: 41122
.. date: 2020-07-13-23-59-42
.. nonce: 8P_Brh
.. section: Library

Failing to pass arguments properly to :func:`functools.singledispatchmethod`
now throws a TypeError instead of hitting an index out of bounds internally.

..

.. bpo: 40818
.. date: 2020-05-29-18-08-54
.. nonce: Ij8ffq
.. section: Library

The asyncio REPL now runs :data:`sys.__interactivehook__` on startup. The
default implementation of :data:`sys.__interactivehook__` provides
auto-completion to the asyncio REPL. Patch contributed by RĂ©mi Lapeyre.

..

.. bpo: 33775
.. date: 2019-04-06-23-50-59
.. nonce: 0yhMDc
.. section: Library

Add 'default' and 'version' help text for localization in argparse.

..

.. date: 2024-02-14-20-17-04
.. gh-issue: 115399
.. nonce: fb9a0R
.. section: Documentation

Document :cve:`2023-52425` of Expat <2.6.0 under "XML vulnerabilities".

..

.. date: 2024-02-08-08-51-37
.. gh-issue: 109653
.. nonce: QHLW4w
.. section: Documentation

Improve import time of :mod:`uuid` on Linux.

..

.. date: 2024-02-25-16-28-26
.. gh-issue: 71052
.. nonce: lSb9EC
.. section: Tests

Add test exclusions to support running the test suite on Android.

..

.. date: 2024-02-25-15-58-28
.. gh-issue: 71052
.. nonce: lxBjqY
.. section: Tests

Enable ``test_concurrent_futures`` on platforms that support threading but
not multiprocessing.

..

.. date: 2024-02-22-00-17-06
.. gh-issue: 115796
.. nonce: d4hpKy
.. section: Tests

Make '_testinternalcapi.assemble_code_object' construct the exception table
for the code object.

..

.. date: 2024-02-20-15-47-41
.. gh-issue: 115720
.. nonce: w8i8UG
.. section: Tests

Leak tests (``-R``, ``--huntrleaks``) now show a summary of the number of
leaks found in each iteration.

..

.. date: 2024-02-18-14-20-52
.. gh-issue: 115122
.. nonce: 3rGNo9
.. section: Tests

Add ``--bisect`` option to regrtest test runner: run failed tests with
``test.bisect_cmd`` to identify failing tests. Patch by Victor Stinner.

..

.. date: 2024-02-17-08-25-01
.. gh-issue: 115596
.. nonce: RGPCrR
.. section: Tests

Fix ``ProgramPriorityTests`` in ``test_os`` permanently changing the process
priority.

..

.. date: 2024-02-16-13-04-28
.. gh-issue: 115556
.. nonce: rjaQ9w
.. section: Tests

On Windows, commas passed in arguments to ``Tools\buildbot\test.bat`` and
``PCbuild\\rt.bat`` are now properly handled.

..

.. date: 2024-02-13-18-24-04
.. gh-issue: 115420
.. nonce: -dlzfI
.. section: Tests

Fix translation of exception handler targets by
``_testinternalcapi.optimize_cfg``.

..

.. date: 2024-02-12-22-35-01
.. gh-issue: 115376
.. nonce: n9vubZ
.. section: Tests

Fix segfault in ``_testinternalcapi.compiler_codegen`` on bad input.

..

.. date: 2024-03-04-12-43-42
.. gh-issue: 116313
.. nonce: cLLb8S
.. section: Build

Get WASI builds to work under wasmtime 18 w/ WASI 0.2/preview2 primitives.

..

.. date: 2024-03-01-16-44-19
.. gh-issue: 71052
.. nonce: Hs-9EP
.. section: Build

Change Android's :data:`sys.platform` from ``"linux"`` to ``"android"``.

..

.. date: 2024-02-29-15-12-31
.. gh-issue: 116117
.. nonce: eENkQK
.. section: Build

Backport ``libb2``'s PR #42 to fix compiling CPython on 32-bit Windows with
``clang-cl``.

..

.. date: 2024-02-26-14-54-58
.. gh-issue: 71052
.. nonce: XvFay1
.. section: Build

Fix several Android build issues

..

.. date: 2024-02-26-13-13-53
.. gh-issue: 114099
.. nonce: 8lpX-7
.. section: Build

A testbed project was added to run the test suite on iOS.

..

.. date: 2024-02-24-12-50-43
.. gh-issue: 115350
.. nonce: naQA6y
.. section: Build

Fix building ctypes module with -DWIN32_LEAN_AND_MEAN defined

..

.. date: 2024-02-21-18-22-49
.. gh-issue: 111225
.. nonce: Z8C3av
.. section: Build

Link extension modules against libpython on Android.

..

.. date: 2024-02-21-11-58-30
.. gh-issue: 115737
.. nonce: dpNl2T
.. section: Build

The install name for libPython is now correctly set for non-framework macOS
builds.

..

.. date: 2024-02-13-14-52-59
.. gh-issue: 114099
.. nonce: zjXsQr
.. section: Build

Makefile targets were added to support compiling an iOS-compatible framework
build.

..

.. date: 2024-02-27-23-21-55
.. gh-issue: 116012
.. nonce: B9_IwM
.. section: Windows

Ensure the value of ``GetLastError()`` is preserved across GIL operations.

..

.. date: 2024-02-23-11-43-43
.. gh-issue: 115582
.. nonce: sk1XPi
.. section: Windows

Building extensions intended for free-threaded builds of CPython now require
compiling with ``/DPy_GIL_DISABLED`` manually when using a regular install.
This is expected to change in future releases.

..

.. date: 2024-02-21-23-48-59
.. gh-issue: 115554
.. nonce: 02mpQC
.. section: Windows

The installer now has more strict rules about updating the :ref:`launcher`.
In general, most users only have a single launcher installed and will see no
difference. When multiple launchers have been installed, the option to
install the launcher is disabled until all but one have been removed.
Downgrading the launcher (which was never allowed) is now more obviously
blocked.

..

.. date: 2024-02-15-23-16-31
.. gh-issue: 115543
.. nonce: otrWnw
.. section: Windows

:ref:`launcher` can now detect Python 3.13 when installed from the Microsoft
Store, and will install Python 3.12 by default when
:envvar:`PYLAUNCHER_ALLOW_INSTALL` is set.

..

.. date: 2024-02-29-20-52-23
.. gh-issue: 116145
.. nonce: ygafim
.. section: macOS

Update macOS installer to Tcl/Tk 8.6.14.

..

.. date: 2023-12-09-11-04-26
.. gh-issue: 88516
.. nonce: SIIvfs
.. section: IDLE

On macOS show a proxy icon in the title bar of editor windows to match
platform behaviour.

..

.. date: 2023-02-12-19-28-08
.. gh-issue: 100176
.. nonce: Kzs4Zw
.. section: Tools/Demos

Remove outdated Tools/{io,cc,string}bench

..

.. bpo: 45101
.. date: 2021-09-05-02-47-48
.. nonce: 60Zqmt
.. section: Tools/Demos

Add consistency in usage message IO between 2 versions of python-config.

..

.. date: 2024-02-16-15-56-53
.. gh-issue: 114626
.. nonce: ie2esA
.. section: C API

Add again ``_PyCFunctionFastWithKeywords`` name, removed in Python 3.13
alpha 4 by mistake.  Keep the old private ``_PyCFunctionFastWithKeywords``
name (Python 3.7) as an alias to the new public name
``PyCFunctionFastWithKeywords`` (Python 3.13a4). Patch by Victor Stinner.

..

.. date: 2023-11-15-09-24-51
.. gh-issue: 111418
.. nonce: FYYetY
.. section: C API

Add :c:macro:`PyHASH_MODULUS`, :c:macro:`PyHASH_BITS`, :c:macro:`PyHASH_INF`
and :c:macro:`PyHASH_IMAG` C macros.  Patch by Sergey B Kirpichev.