-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
/
Copy path3.13.0a2.rst
1622 lines (1163 loc) · 35.7 KB
/
3.13.0a2.rst
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
.. date: 2023-11-20-14-13-02
.. gh-issue: 112243
.. nonce: FKdQnr
.. release date: 2023-11-22
.. section: Core and Builtins
Don't include comments in f-string debug expressions. Patch by Pablo Galindo
..
.. date: 2023-11-20-10-40-40
.. gh-issue: 112287
.. nonce: 15gWAK
.. section: Core and Builtins
Slightly optimize the Tier 2 (uop) interpreter by only loading ``oparg`` and
``operand`` when needed. Also double the trace size limit again, to 512 this
time.
..
.. date: 2023-11-19-15-57-23
.. gh-issue: 112266
.. nonce: BSJMbR
.. section: Core and Builtins
Change docstrings of :attr:`~object.__dict__` and
:attr:`~object.__weakref__`.
..
.. date: 2023-11-17-16-49-32
.. gh-issue: 111807
.. nonce: QvjP9_
.. section: Core and Builtins
Lower the max parser stack depth to 1000 under WASI debug builds.
..
.. date: 2023-11-15-20-20-51
.. gh-issue: 111798
.. nonce: cs-3t3
.. section: Core and Builtins
When Python is built in debug mode, set the C recursion limit to 500 instead
of 1500. A debug build is likely built with low optimization level which
implies higher stack memory usage than a release build. Patch by Victor
Stinner.
..
.. date: 2023-11-15-16-14-10
.. gh-issue: 106529
.. nonce: Y48ax9
.. section: Core and Builtins
Enable translating unspecialized ``FOR_ITER`` to Tier 2.
..
.. date: 2023-11-14-22-12-11
.. gh-issue: 111916
.. nonce: ZGCayL
.. section: Core and Builtins
Make hashlib related modules thread-safe without the GIL
..
.. date: 2023-11-07-12-59-02
.. gh-issue: 81137
.. nonce: qFpJCY
.. section: Core and Builtins
Deprecate assignment to a function's ``__code__`` field when the new code
object is of a mismatched type (e.g., from a generator to a plain function).
..
.. date: 2023-11-06-16-44-09
.. gh-issue: 79932
.. nonce: 2qv7uD
.. section: Core and Builtins
Raise exception if :meth:`frame.clear` is called on a suspended frame.
..
.. date: 2023-11-05-20-59-10
.. gh-issue: 81925
.. nonce: wKHLSS
.. section: Core and Builtins
Implement native thread ids for GNU KFreeBSD.
..
.. date: 2023-11-05-06-40-35
.. gh-issue: 111843
.. nonce: c045cB
.. section: Core and Builtins
Use exponential backoff to reduce the number of failed tier 2 optimization
attempts by over 99%.
..
.. date: 2023-11-04-13-36-51
.. gh-issue: 110829
.. nonce: Pa0CJI
.. section: Core and Builtins
Joining a thread now ensures the underlying OS thread has exited. This is
required for safer fork() in multi-threaded processes.
..
.. date: 2023-11-03-22-48-29
.. gh-issue: 109369
.. nonce: ELYaxJ
.. section: Core and Builtins
Make sure that tier 2 traces are de-optimized if the code is instrumented
..
.. date: 2023-11-03-19-25-38
.. gh-issue: 111772
.. nonce: aRQvOn
.. section: Core and Builtins
Specialize slot loads and stores for _Py_T_OBJECT as well as Py_T_OBJECT_EX
..
.. date: 2023-11-03-01-23-48
.. gh-issue: 111666
.. nonce: l8Q8G5
.. section: Core and Builtins
Speed up :meth:`BaseExceptionGroup.derive`,
:meth:`BaseExceptionGroup.subgroup`, and :meth:`BaseExceptionGroup.split` by
changing how they parse passed arguments.
..
.. date: 2023-11-03-01-04-55
.. gh-issue: 111654
.. nonce: scUhDO
.. section: Core and Builtins
Fix runtime crash when some error happens in opcode
``LOAD_FROM_DICT_OR_DEREF``.
..
.. date: 2023-11-02-15-00-57
.. gh-issue: 111623
.. nonce: BZxYc8
.. section: Core and Builtins
Add support for sharing tuples between interpreters using the
cross-interpreter API. Patch by Anthony Shaw.
..
.. date: 2023-11-02-14-49-19
.. gh-issue: 111354
.. nonce: gIS3f-
.. section: Core and Builtins
The oparg of :opcode:`YIELD_VALUE` is now ``1`` if the instruction is part
of a yield-from or await, and ``0`` otherwise.
The SUSPENDED frame state is now split into ``SUSPENDED`` and
``SUSPENDED_YIELD_FROM``. This simplifies the code in ``_PyGen_yf``.
..
.. date: 2023-10-31-21-33-35
.. gh-issue: 111520
.. nonce: vw-rxJ
.. section: Core and Builtins
Merge the Tier 1 (bytecode) and Tier 2 (micro-ops) interpreters together,
moving the Tier 2 interpreter loop and switch into
``_PyEval_EvalFrameDefault()`` in ``Python/ceval.c``. The
``Python/executor.c`` file is gone. Also the ``TIER_ONE`` and ``TIER_TWO``
macros are now handled by the code generator.
**Beware!** This changes the environment variables to enable micro-ops and
their debugging to ``PYTHON_UOPS`` and ``PYTHON_LLTRACE``.
..
.. date: 2023-10-31-14-25-21
.. gh-issue: 109181
.. nonce: 11h6Mc
.. section: Core and Builtins
Speed up :class:`Traceback` object creation by lazily compute the line number.
Patch by Pablo Galindo
..
.. date: 2023-10-29-20-11-21
.. gh-issue: 111420
.. nonce: IUT-GK
.. section: Core and Builtins
Allow type comments in parenthesized ``with`` statements
..
.. date: 2023-10-29-12-33-33
.. gh-issue: 111438
.. nonce: bHTLLl
.. section: Core and Builtins
Add support for sharing floats between interpreters using the
cross-interpreter API. Patch by Anthony Shaw.
..
.. date: 2023-10-29-11-35-21
.. gh-issue: 111435
.. nonce: ageUWQ
.. section: Core and Builtins
Add support for sharing of ``True`` and ``False`` between interpreters using the
cross-interpreter API. Patch by Anthony Shaw.
..
.. date: 2023-10-27-19-38-33
.. gh-issue: 102388
.. nonce: vd5YUZ
.. section: Core and Builtins
Fix a bug where ``iso2022_jp_3`` and ``iso2022_jp_2004`` codecs read out of
bounds
..
.. date: 2023-10-27-12-17-49
.. gh-issue: 111366
.. nonce: _TSknV
.. section: Core and Builtins
Fix an issue in the :mod:`codeop` that was causing :exc:`SyntaxError`
exceptions raised in the presence of invalid syntax to not contain precise
error messages. Patch by Pablo Galindo
..
.. date: 2023-10-27-11-51-40
.. gh-issue: 111380
.. nonce: vgSbir
.. section: Core and Builtins
Fix a bug that was causing :exc:`SyntaxWarning` to appear twice when parsing
if invalid syntax is encountered later. Patch by Pablo galindo
..
.. date: 2023-10-27-11-22-09
.. gh-issue: 111374
.. nonce: e9lrPZ
.. section: Core and Builtins
Added a new environment variable :envvar:`PYTHON_FROZEN_MODULES`. It
determines whether or not frozen modules are ignored by the import
machinery, equivalent of the :option:`-X frozen_modules <-X>` command-line
option.
..
.. date: 2023-10-26-18-45-20
.. gh-issue: 111354
.. nonce: GrT-Wf
.. section: Core and Builtins
Remove ``oparg`` from :opcode:`YIELD_VALUE`. Change ``oparg`` of
:opcode:`RESUME` to include information about the except-depth. These
changes make it possible to simplify the code in generator close.
..
.. date: 2023-10-23-22-11-09
.. gh-issue: 94438
.. nonce: y2pITu
.. section: Core and Builtins
Fix a regression that prevented jumping across ``is None`` and ``is not
None`` when debugging. Patch by Savannah Ostrowski.
..
.. date: 2023-10-23-15-44-47
.. gh-issue: 67224
.. nonce: S4D6CR
.. section: Core and Builtins
Show source lines in tracebacks when using the ``-c`` option when running
Python. Patch by Pablo Galindo
..
.. date: 2023-10-20-23-14-06
.. gh-issue: 111123
.. nonce: jjVc3M
.. section: Core and Builtins
Fix a bug where a :keyword:`global` declaration in an :keyword:`except`
block is rejected when the global is used in the :keyword:`else` block.
..
.. date: 2023-10-17-11-03-45
.. gh-issue: 110938
.. nonce: X3sbMb
.. section: Core and Builtins
Fix error messages for indented blocks with functions and classes with
generic type parameters. Patch by Pablo Galindo
..
.. date: 2023-10-16-15-51-37
.. gh-issue: 109214
.. nonce: -RGTFH
.. section: Core and Builtins
Remove unnecessary instruction pointer updates before returning from frames.
..
.. date: 2023-10-16-12-12-48
.. gh-issue: 110912
.. nonce: uEJGi_
.. section: Core and Builtins
Correctly display the traceback for :exc:`MemoryError` exceptions using the
:mod:`traceback` module. Patch by Pablo Galindo
..
.. date: 2023-10-15-22-18-45
.. gh-issue: 109894
.. nonce: UAmo06
.. section: Core and Builtins
Fixed crash due to improperly initialized static :exc:`MemoryError` in
subinterpreter.
..
.. date: 2023-10-15-20-45-35
.. gh-issue: 110892
.. nonce: oA6eVY
.. section: Core and Builtins
Return ``NULL`` for ``PyTrace_RETURN`` events caused by an exception
..
.. date: 2023-10-14-12-19-34
.. gh-issue: 110864
.. nonce: -baPDE
.. section: Core and Builtins
Fix argument parsing by ``_PyArg_UnpackKeywordsWithVararg`` for functions
defining pos-or-keyword, vararg, and kw-only parameters.
..
.. date: 2023-10-13-16-55-55
.. gh-issue: 109094
.. nonce: ziL4cJ
.. section: Core and Builtins
Replace ``prev_instr`` on the interpreter frame by ``instr_ptr`` which
points to the beginning of the instruction that is currently executing (or
will execute once the frame resumes).
..
.. date: 2023-10-13-09-21-29
.. gh-issue: 110805
.. nonce: vhU7A7
.. section: Core and Builtins
Allow the repl to show source code and complete tracebacks. Patch by Pablo
Galindo
..
.. date: 2023-10-12-17-15-23
.. gh-issue: 110722
.. nonce: sjMwQe
.. section: Core and Builtins
Add :envvar:`PYTHON_PRESITE=package.module` to import a module early in the
interpreter lifecycle before ``site.py`` is executed. Python needs to be
:ref:`built in debug mode <debug-build>` for this option to exist.
..
.. date: 2023-10-12-12-09-01
.. gh-issue: 110481
.. nonce: 3Er3it
.. section: Core and Builtins
Implement biased reference counting in ``--disable-gil`` builds.
..
.. date: 2023-10-09-19-54-33
.. gh-issue: 110543
.. nonce: 1wrxO8
.. section: Core and Builtins
Fix regression in Python 3.12 where :meth:`types.CodeType.replace` would
produce a broken code object if called on a module or class code object that
contains a comprehension. Patch by Jelle Zijlstra.
..
.. date: 2023-09-30-17-30-11
.. gh-issue: 89519
.. nonce: hz2pZf
.. section: Core and Builtins
Removed chained :class:`classmethod` descriptors (introduced in
:issue:`19072`). This can no longer be used to wrap other descriptors such
as :class:`property`. The core design of this feature was flawed and caused
a number of downstream problems. To "pass-through" a :class:`classmethod`,
consider using the :attr:`!__wrapped__` attribute that was added in Python
3.10.
..
.. date: 2023-09-15-23-39-43
.. gh-issue: 103615
.. nonce: WZavly
.. section: Core and Builtins
Use local events for opcode tracing
..
.. bpo: 46657
.. date: 2023-09-06-12-36-11
.. nonce: xea1T_
.. section: Core and Builtins
Add mimalloc memory allocator support.
..
.. date: 2023-08-31-11-42-16
.. gh-issue: 106718
.. nonce: _-57DA
.. section: Core and Builtins
When PyConfig.stdlib_dir is explicitly set, it's now respected and won't be
overridden by PyConfig.home.
..
.. date: 2023-07-20-11-41-16
.. gh-issue: 106905
.. nonce: AyZpuB
.. section: Core and Builtins
Fix incorrect SystemError about AST constructor recursion depth mismatch.
..
.. date: 2022-12-27-02-51-45
.. gh-issue: 100445
.. nonce: C8f6ph
.. section: Core and Builtins
Improve error message for unterminated strings with escapes.
..
.. bpo: 45759
.. date: 2021-11-10-10-40-05
.. nonce: WJoB3D
.. section: Core and Builtins
Improved error messages for ``elif``/``else`` statements not matching any
valid statements. Patch by Jeremiah Vivian.
..
.. date: 2023-11-14-18-43-55
.. gh-issue: 111942
.. nonce: x1pnrj
.. section: Library
Fix SystemError in the TextIOWrapper constructor with non-encodable "errors"
argument in non-debug mode.
..
.. date: 2023-11-14-16-31-59
.. gh-issue: 111995
.. nonce: OoX8JJ
.. section: Library
Added the ``NI_IDN`` constant to the :mod:`socket` module when present in C
at build time for use with :func:`socket.getnameinfo`.
..
.. date: 2023-11-11-16-42-48
.. gh-issue: 109538
.. nonce: cMG5ux
.. section: Library
Issue warning message instead of having :class:`RuntimeError` be displayed
when event loop has already been closed at :meth:`StreamWriter.__del__`.
..
.. date: 2023-11-10-22-08-28
.. gh-issue: 111942
.. nonce: MDFm6v
.. section: Library
Fix crashes in :meth:`io.TextIOWrapper.reconfigure` when pass invalid
arguments, e.g. non-string encoding.
..
.. date: 2023-11-09-12-57-43
.. gh-issue: 111460
.. nonce: TQaz9I
.. section: Library
:mod:`curses`: restore wide character support (including
:func:`curses.unget_wch` and :meth:`~curses.window.get_wch`) on macOS, which
was unavailable due to a regression in Python 3.12.
..
.. date: 2023-11-09-10-45-56
.. gh-issue: 103791
.. nonce: sdfkja
.. section: Library
:class:`contextlib.suppress` now supports suppressing exceptions raised as
part of a :exc:`BaseExceptionGroup`, in addition to the recent support for
:exc:`ExceptionGroup`.
..
.. date: 2023-11-08-23-32-03
.. gh-issue: 111835
.. nonce: ufFiuW
.. section: Library
The :class:`mmap.mmap` class now has an :meth:`~mmap.mmap.seekable` method
that can be used when a seekable file-like object is required.
The :meth:`~mmap.mmap.seek` method now returns the new absolute position.
Patch by Donghee Na.
..
.. date: 2023-11-08-15-58-57
.. gh-issue: 111804
.. nonce: uAXTOL
.. section: Library
Remove posix.fallocate() under WASI as the underlying posix_fallocate() is
not available in WASI preview2.
..
.. date: 2023-11-08-11-50-49
.. gh-issue: 111841
.. nonce: iSqdQf
.. section: Library
Fix truncating arguments on an embedded null character in :meth:`os.putenv`
and :meth:`os.unsetenv` on Windows.
..
.. date: 2023-11-08-07-42-53
.. gh-issue: 111768
.. nonce: g-WpnV
.. section: Library
:func:`wsgiref.util.is_hop_by_hop` is now exposed correctly in ``__all__``.
..
.. date: 2023-11-04-21-12-27
.. gh-issue: 80731
.. nonce: Wq51xg
.. section: Library
Avoid executing the default function in :class:`cmd.Cmd` in an except block
..
.. date: 2023-11-04-10-24-25
.. gh-issue: 111541
.. nonce: x0RBI1
.. section: Library
Fix :mod:`doctest` for :exc:`SyntaxError` not-builtin subclasses.
..
.. date: 2023-11-04-01-20-23
.. gh-issue: 111719
.. nonce: fUiKBD
.. section: Library
Add extra argument validation for ``alias`` command in :mod:`pdb`
..
.. date: 2023-11-02-12-15-46
.. gh-issue: 111482
.. nonce: FWqZIU
.. section: Library
:mod:`time`: Make :func:`time.clock_gettime()` and
:func:`time.clock_gettime_ns()` functions up to 2x faster by faster calling
convention. Patch by Victor Stinner.
..
.. date: 2023-11-01-14-03-24
.. gh-issue: 110894
.. nonce: 7-wZxC
.. section: Library
Call loop exception handler for exceptions in ``client_connected_cb`` of
:func:`asyncio.start_server` so that applications can handle it. Patch by
Kumar Aditya.
..
.. date: 2023-10-31-07-46-56
.. gh-issue: 111531
.. nonce: 6zUV_G
.. section: Library
Fix reference leaks in ``bind_class()`` and ``bind_all()`` methods of
:mod:`tkinter` widgets.
..
.. date: 2023-10-30-14-47-23
.. gh-issue: 111246
.. nonce: QJ_ehs
.. section: Library
:meth:`asyncio.loop.create_unix_server` will now automatically remove the
Unix socket when the server is closed.
..
.. date: 2023-10-30-08-50-46
.. gh-issue: 111356
.. nonce: Bc8LvA
.. section: Library
Added :func:`io.text_encoding()`, :data:`io.DEFAULT_BUFFER_SIZE`, and
:class:`io.IncrementalNewlineDecoder` to ``io.__all__``.
..
.. date: 2023-10-29-03-46-27
.. gh-issue: 66425
.. nonce: FWTdDo
.. section: Library
Remove the code to set the REMOTE_HOST header from wsgiref module, as it is
unreachable. This header is used for performance reasons, which is not
necessary in the wsgiref module.
..
.. date: 2023-10-28-22-11-11
.. gh-issue: 111429
.. nonce: mJGxuQ
.. section: Library
Speed up :meth:`pathlib.PurePath.relative_to` and
:meth:`~pathlib.PurePath.is_relative_to`.
..
.. date: 2023-10-28-04-21-17
.. gh-issue: 111342
.. nonce: m8Ln1k
.. section: Library
Fixed typo in :func:`math.sumprod`.
..
.. date: 2023-10-27-12-46-56
.. gh-issue: 68166
.. nonce: 0EbWW4
.. section: Library
Remove mention of not supported "vsapi" element type in
:meth:`tkinter.ttk.Style.element_create`. Add tests for ``element_create()``
and other ``ttk.Style`` methods. Add examples for ``element_create()`` in
the documentation.
..
.. date: 2023-10-27-09-56-20
.. gh-issue: 111388
.. nonce: SlmDbC
.. section: Library
Add ``show_group`` parameter to :func:`traceback.format_exception_only`,
which allows to format :exc:`ExceptionGroup` instances.
..
.. date: 2023-10-25-11-54-00
.. gh-issue: 79033
.. nonce: 5ePgFl
.. section: Library
Another attempt at fixing :func:`asyncio.Server.wait_closed()`. It now
blocks until both conditions are true: the server is closed, *and* there are
no more active connections. (This means that in some cases where in 3.12.0
this function would *incorrectly* have returned immediately, it will now
block; in particular, when there are no active connections but the server
hasn't been closed yet.)
..
.. date: 2023-10-25-11-13-35
.. gh-issue: 111259
.. nonce: z7ndeA
.. section: Library
Optimize recursive wildcards in :mod:`pathlib`.
..
.. date: 2023-10-25-08-42-05
.. gh-issue: 111295
.. nonce: H2K4lf
.. section: Library
Fix :mod:`time` not checking for errors when initializing.
..
.. date: 2023-10-24-12-20-46
.. gh-issue: 111253
.. nonce: HFywSK
.. section: Library
Add error checking during :mod:`!_socket` module init.
..
.. date: 2023-10-24-12-09-46
.. gh-issue: 111251
.. nonce: urFYtn
.. section: Library
Fix :mod:`!_blake2` not checking for errors when initializing.
..
.. date: 2023-10-23-23-14-54
.. gh-issue: 111233
.. nonce: sCdCC0
.. section: Library
Fix :mod:`select` not checking for errors when initializing.
..
.. date: 2023-10-23-22-40-47
.. gh-issue: 111230
.. nonce: k3Jm84
.. section: Library
Fix :mod:`ssl` not checking for errors when initializing.
..
.. date: 2023-10-23-13-53-58
.. gh-issue: 111174
.. nonce: Oohmzd
.. section: Library
Fix crash in :meth:`io.BytesIO.getbuffer` called repeatedly for empty
BytesIO.
..
.. date: 2023-10-22-21-28-05
.. gh-issue: 111187
.. nonce: _W11Ab
.. section: Library
Postpone removal version for locale.getdefaultlocale() to Python 3.15.
..
.. date: 2023-10-21-13-57-06
.. gh-issue: 111159
.. nonce: GoHp7s
.. section: Library
Fix :mod:`doctest` output comparison for exceptions with notes.
..
.. date: 2023-10-20-15-29-10
.. gh-issue: 110910
.. nonce: u2oPwX
.. section: Library
Fix invalid state handling in :class:`asyncio.TaskGroup` and
:class:`asyncio.Timeout`. They now raise proper RuntimeError if they are
improperly used and are left in consistent state after this.
..
.. date: 2023-10-19-22-46-34
.. gh-issue: 111092
.. nonce: hgut12
.. section: Library
Make turtledemo run without default root enabled.
..
.. date: 2023-10-16-18-41-51
.. gh-issue: 110944
.. nonce: CmUKXo
.. section: Library
Support alias and convenience vars for :mod:`pdb` completion
..
.. date: 2023-10-15-08-08-26
.. gh-issue: 110745
.. nonce: mxEkh0
.. section: Library
Added *newline* parameter to :meth:`pathlib.Path.read_text`. Patch by Junya
Okabe.
..
.. date: 2023-10-14-21-33-57
.. gh-issue: 84583
.. nonce: -Cmn4_
.. section: Library
Make :mod:`pdb` enter post-mortem mode even for :exc:`SyntaxError`
..
.. date: 2023-10-14-20-15-53
.. gh-issue: 80675
.. nonce: _M-cQC
.. section: Library
Set ``f_trace_lines = True`` on all frames upon :func:`pdb.set_trace()`
..
.. date: 2023-10-13-06-47-20
.. gh-issue: 110771
.. nonce: opwdlc
.. section: Library
Expose the setup and cleanup portions of ``asyncio.run_forever()`` as the
standalone methods ``asyncio.run_forever_setup()`` and
``asyncio.run_forever_cleanup()``. This allows for tighter integration with
GUI event loops.
..
.. date: 2023-10-12-15-16-44
.. gh-issue: 110774
.. nonce: AdCb5A
.. section: Library
Support setting the :class:`asyncio.Runner` loop_factory kwarg in
:class:`unittest.IsolatedAsyncioTestCase`
..
.. date: 2023-10-10-17-56-41
.. gh-issue: 110392
.. nonce: 6g6CnP
.. section: Library
Fix :func:`tty.setraw` and :func:`tty.setcbreak`: previously they returned
partially modified list of the original tty attributes.
:func:`tty.cfmakeraw` and :func:`tty.cfmakecbreak` now make a copy of the
list of special characters before modifying it.
..
.. date: 2023-10-09-23-59-04
.. gh-issue: 59013
.. nonce: qPbS-G
.. section: Library
Make line number of function breakpoint more precise in :mod:`pdb`
..
.. date: 2023-10-08-18-38-09
.. gh-issue: 88434
.. nonce: 2Q_IkG
.. section: Library
Emit deprecation warning for non-integer numbers in :mod:`gettext` functions
and methods that consider plural forms even if the translation was not
found.
..
.. date: 2023-10-08-14-17-06
.. gh-issue: 110395
.. nonce: _tdCsV
.. section: Library
Ensure that :func:`select.kqueue` objects correctly appear as closed in
forked children, to prevent operations on an invalid file descriptor.
..
.. date: 2023-10-02-05-23-27
.. gh-issue: 110196
.. nonce: djwt0z
.. section: Library
Add ``__reduce__`` method to :class:`IPv6Address` in order to keep
``scope_id``
..
.. date: 2023-09-25-20-05-41
.. gh-issue: 109747
.. nonce: _cRJH8
.. section: Library
Improve errors for unsupported look-behind patterns. Now re.error is raised
instead of OverflowError or RuntimeError for too large width of look-behind
pattern.
..
.. date: 2023-09-15-12-30-21
.. gh-issue: 109466
.. nonce: 6ah-aw
.. section: Library
Add the :attr:`ipaddress.IPv4Address.ipv6_mapped` property, which returns the
IPv4-mapped IPv6 address.
..
.. date: 2023-09-08-12-10-10
.. gh-issue: 85098
.. nonce: DfQbeJ
.. section: Library
Implement the CLI of the :mod:`symtable` module and improve the repr of
:class:`~symtable.Symbol`.
..
.. date: 2023-09-02-16-07-23
.. gh-issue: 108791
.. nonce: fBcAqh
.. section: Library
Improved error handling in :mod:`pdb` command line interface, making it
produce more concise error messages.
..