1.. date: 2023-02-06-20-13-36
2.. gh-issue: 92173
3.. nonce: RQE0mk
4.. release date: 2023-02-07
5.. section: Core and Builtins
6
7Fix the ``defs`` and ``kwdefs`` arguments to :c:func:`PyEval_EvalCodeEx` and
8a reference leak in that function.
9
10..
11
12.. date: 2023-01-30-08-59-47
13.. gh-issue: 101400
14.. nonce: Di_ZFm
15.. section: Core and Builtins
16
17Fix wrong lineno in exception message on :keyword:`continue` or
18:keyword:`break` which are not in a loop. Patch by Dong-hee Na.
19
20..
21
22.. date: 2023-01-28-20-31-42
23.. gh-issue: 101372
24.. nonce: 8BcpCC
25.. section: Core and Builtins
26
27Fix :func:`~unicodedata.is_normalized` to properly handle the UCD 3.2.0
28cases. Patch by Dong-hee Na.
29
30..
31
32.. date: 2023-01-15-03-26-04
33.. gh-issue: 101046
34.. nonce: g2CM4S
35.. section: Core and Builtins
36
37Fix a possible memory leak in the parser when raising :exc:`MemoryError`.
38Patch by Pablo Galindo
39
40..
41
42.. date: 2023-01-14-17-03-08
43.. gh-issue: 101037
44.. nonce: 9ATNuf
45.. section: Core and Builtins
46
47Fix potential memory underallocation issue for instances of :class:`int`
48subclasses with value zero.
49
50..
51
52.. date: 2023-01-11-22-52-19
53.. gh-issue: 100942
54.. nonce: ontOy_
55.. section: Core and Builtins
56
57Fixed segfault in property.getter/setter/deleter that occurred when a
58property subclass overrode the ``__new__`` method to return a non-property
59instance.
60
61..
62
63.. date: 2023-01-10-14-11-17
64.. gh-issue: 100892
65.. nonce: qfBVYI
66.. section: Core and Builtins
67
68Fix race while iterating over thread states in clearing
69:class:`threading.local`. Patch by Kumar Aditya.
70
71..
72
73.. date: 2023-01-06-02-02-11
74.. gh-issue: 100776
75.. nonce: pP8xux
76.. section: Core and Builtins
77
78Fix misleading default value in :func:`input`'s ``__text_signature__``.
79
80..
81
82.. date: 2023-01-01-15-59-48
83.. gh-issue: 100637
84.. nonce: M2n6Kg
85.. section: Core and Builtins
86
87Fix :func:`int.__sizeof__` calculation to include the 1 element ob_digit
88array for 0 and False.
89
90..
91
92.. date: 2022-12-31-23-32-09
93.. gh-issue: 100649
94.. nonce: C0fY4S
95.. section: Core and Builtins
96
97Update the native_thread_id field of PyThreadState after fork.
98
99..
100
101.. date: 2022-12-20-16-14-19
102.. gh-issue: 100374
103.. nonce: YRrVHT
104.. section: Core and Builtins
105
106Fix incorrect result and delay in :func:`socket.getfqdn`. Patch by Dominic
107Socular.
108
109..
110
111.. date: 2022-12-12-01-05-16
112.. gh-issue: 99110
113.. nonce: 1JqtIg
114.. section: Core and Builtins
115
116Initialize frame->previous in frameobject.c to fix a segmentation fault when
117accessing frames created by :c:func:`PyFrame_New`.
118
119..
120
121.. date: 2022-12-06-22-24-01
122.. gh-issue: 100050
123.. nonce: lcrPqQ
124.. section: Core and Builtins
125
126Honor existing errors obtained when searching for mismatching parentheses in
127the tokenizer. Patch by Pablo Galindo
128
129..
130
131.. bpo: 32782
132.. date: 2018-02-06-23-21-13
133.. nonce: EJVSfR
134.. section: Core and Builtins
135
136``ctypes`` arrays of length 0 now report a correct itemsize when a
137``memoryview`` is constructed from them, rather than always giving a value
138of 0.
139
140..
141
142.. date: 2023-02-05-14-39-49
143.. gh-issue: 101541
144.. nonce: Mo3ppp
145.. section: Library
146
147[Enum] - fix psuedo-flag creation
148
149..
150
151.. date: 2023-01-25-18-07-20
152.. gh-issue: 101326
153.. nonce: KL4SFv
154.. section: Library
155
156Fix regression when passing ``None`` as second or third argument to
157``FutureIter.throw``.
158
159..
160
161.. date: 2023-01-21-16-50-22
162.. gh-issue: 100795
163.. nonce: NPMZf7
164.. section: Library
165
166Avoid potential unexpected ``freeaddrinfo`` call (double free) in
167:mod:`socket` when when a libc ``getaddrinfo()`` implementation leaves
168garbage in an output pointer when returning an error. Original patch by
169Sergey G. Brester.
170
171..
172
173.. date: 2023-01-20-10-46-59
174.. gh-issue: 101143
175.. nonce: hJo8hu
176.. section: Library
177
178Remove unused references to :class:`~asyncio.TimerHandle` in
179``asyncio.base_events.BaseEventLoop._add_callback``.
180
181..
182
183.. date: 2023-01-18-17-58-50
184.. gh-issue: 101144
185.. nonce: FHd8Un
186.. section: Library
187
188Make :func:`zipfile.Path.open` and :func:`zipfile.Path.read_text` also
189accept ``encoding`` as a positional argument. This was the behavior in
190Python 3.9 and earlier.  3.10 introduced a regression where supplying it as
191a positional argument would lead to a :exc:`TypeError`.
192
193..
194
195.. date: 2023-01-14-12-58-21
196.. gh-issue: 101015
197.. nonce: stWFid
198.. section: Library
199
200Fix :func:`typing.get_type_hints` on ``'*tuple[...]'`` and ``*tuple[...]``.
201It must not drop the ``Unpack`` part.
202
203..
204
205.. date: 2023-01-12-01-18-13
206.. gh-issue: 100573
207.. nonce: KDskqo
208.. section: Library
209
210Fix a Windows :mod:`asyncio` bug with named pipes where a client doing
211``os.stat()`` on the pipe would cause an error in the server that disabled
212serving future requests.
213
214..
215
216.. date: 2023-01-07-15-13-47
217.. gh-issue: 100805
218.. nonce: 05rBz9
219.. section: Library
220
221Modify :func:`random.choice` implementation to once again work with NumPy
222arrays.
223
224..
225
226.. date: 2023-01-04-22-10-31
227.. gh-issue: 90104
228.. nonce: yZk5EX
229.. section: Library
230
231Avoid RecursionError on ``repr`` if a dataclass field definition has a
232cyclic reference.
233
234..
235
236.. date: 2023-01-04-14-42-59
237.. gh-issue: 100750
238.. nonce: iFJs5Y
239.. section: Library
240
241pass encoding kwarg to subprocess in platform
242
243..
244
245.. date: 2023-01-04-12-58-59
246.. gh-issue: 100689
247.. nonce: Ce0ITG
248.. section: Library
249
250Fix crash in :mod:`pyexpat` by statically allocating ``PyExpat_CAPI``
251capsule.
252
253..
254
255.. date: 2023-01-04-09-53-38
256.. gh-issue: 100740
257.. nonce: -j5UjI
258.. section: Library
259
260Fix ``unittest.mock.Mock`` not respecting the spec for attribute names
261prefixed with ``assert``.
262
263..
264
265.. date: 2022-12-30-07-49-08
266.. gh-issue: 86508
267.. nonce: nGZDzC
268.. section: Library
269
270Fix :func:`asyncio.open_connection` to skip binding to local addresses of
271different family. Patch by Kumar Aditya.
272
273..
274
275.. date: 2022-12-24-08-42-05
276.. gh-issue: 100287
277.. nonce: n0oEuG
278.. section: Library
279
280Fix the interaction of :func:`unittest.mock.seal` with
281:class:`unittest.mock.AsyncMock`.
282
283..
284
285.. date: 2022-12-23-21-02-43
286.. gh-issue: 100474
287.. nonce: gppA4U
288.. section: Library
289
290:mod:`http.server` now checks that an index page is actually a regular file
291before trying to serve it.  This avoids issues with directories named
292``index.html``.
293
294..
295
296.. date: 2022-12-21-18-29-24
297.. gh-issue: 100160
298.. nonce: isBmL5
299.. section: Library
300
301Remove any deprecation warnings in :func:`asyncio.get_event_loop`. They are
302deferred to Python 3.12.
303
304..
305
306.. date: 2022-12-19-23-19-26
307.. gh-issue: 96290
308.. nonce: qFjsi6
309.. section: Library
310
311Fix handling of partial and invalid UNC drives in ``ntpath.splitdrive()``,
312and in ``ntpath.normpath()`` on non-Windows systems. Paths such as
313'\\server' and '\\' are now considered by ``splitdrive()`` to contain only a
314drive, and consequently are not modified by ``normpath()`` on non-Windows
315systems. The behaviour of ``normpath()`` on Windows systems is unaffected,
316as native OS APIs are used. Patch by Eryk Sun, with contributions by Barney
317Gale.
318
319..
320
321.. date: 2022-12-19-20-54-04
322.. gh-issue: 78878
323.. nonce: JrkYqJ
324.. section: Library
325
326Fix crash when creating an instance of :class:`!_ctypes.CField`.
327
328..
329
330.. date: 2022-12-11-14-38-59
331.. gh-issue: 99952
332.. nonce: IYGLzr
333.. section: Library
334
335Fix a reference undercounting issue in :class:`ctypes.Structure` with
336``from_param()`` results larger than a C pointer.
337
338..
339
340.. date: 2022-12-10-08-36-07
341.. gh-issue: 100133
342.. nonce: g-zQlp
343.. section: Library
344
345Fix regression in :mod:`asyncio` where a subprocess would sometimes lose
346data received from pipe.
347
348..
349
350.. date: 2022-12-08-06-18-06
351.. gh-issue: 100098
352.. nonce: uBvPlp
353.. section: Library
354
355Fix ``tuple`` subclasses being cast to ``tuple`` when used as enum values.
356
357..
358
359.. date: 2022-12-03-20-06-16
360.. gh-issue: 98778
361.. nonce: t5U9uc
362.. section: Library
363
364Update :exc:`~urllib.error.HTTPError` to be initialized properly, even if
365the ``fp`` is ``None``. Patch by Dong-hee Na.
366
367..
368
369.. date: 2022-11-21-16-24-01
370.. gh-issue: 83035
371.. nonce: qZIujU
372.. section: Library
373
374Fix :func:`inspect.getsource` handling of decorator calls with nested
375parentheses.
376
377..
378
379.. date: 2022-11-20-11-59-54
380.. gh-issue: 99576
381.. nonce: ZD7jU6
382.. section: Library
383
384Fix ``.save()`` method for ``LWPCookieJar`` and ``MozillaCookieJar``: saved
385file was not truncated on repeated save.
386
387..
388
389.. date: 2022-11-13-15-32-19
390.. gh-issue: 99433
391.. nonce: Ys6y0A
392.. section: Library
393
394Fix :mod:`doctest` failure on :class:`types.MethodWrapperType` in modules.
395
396..
397
398.. date: 2022-11-08-15-54-43
399.. gh-issue: 99240
400.. nonce: MhYwcz
401.. section: Library
402
403Fix double-free bug in Argument Clinic ``str_converter`` by extracting
404memory clean up to a new ``post_parsing`` section.
405
406..
407
408.. date: 2022-11-08-11-18-51
409.. gh-issue: 64490
410.. nonce: VcBgrN
411.. section: Library
412
413Fix refcount error when arguments are packed to tuple in Argument Clinic.
414
415..
416
417.. date: 2022-10-28-07-24-34
418.. gh-issue: 85267
419.. nonce: xUy_Wm
420.. section: Library
421
422Several improvements to :func:`inspect.signature`'s handling of
423``__text_signature``. - Fixes a case where :func:`inspect.signature` dropped
424parameters - Fixes a case where :func:`inspect.signature` raised
425:exc:`tokenize.TokenError` - Allows :func:`inspect.signature` to understand
426defaults involving binary operations of constants -
427:func:`inspect.signature` is documented as only raising :exc:`TypeError` or
428:exc:`ValueError`, but sometimes raised :exc:`RuntimeError`. These cases now
429raise :exc:`ValueError` - Removed a dead code path
430
431..
432
433.. date: 2022-08-11-10-02-19
434.. gh-issue: 95882
435.. nonce: FsUr72
436.. section: Library
437
438Fix a 3.11 regression in :func:`~contextlib.asynccontextmanager`, which
439caused it to propagate exceptions with incorrect tracebacks and fix a 3.11
440regression in  :func:`~contextlib.contextmanager`, which caused it to
441propagate exceptions with incorrect tracebacks for :exc:`StopIteration`.
442
443..
444
445.. bpo: 44817
446.. date: 2021-08-03-05-31-00
447.. nonce: wOW_Qn
448.. section: Library
449
450Ignore WinError 53 (ERROR_BAD_NETPATH), 65 (ERROR_NETWORK_ACCESS_DENIED) and
451161 (ERROR_BAD_PATHNAME) when using ntpath.realpath().
452
453..
454
455.. bpo: 40447
456.. date: 2020-05-03-12-55-55
457.. nonce: oKR0Lj
458.. section: Library
459
460Accept :class:`os.PathLike` (such as :class:`pathlib.Path`) in the
461``stripdir`` arguments of :meth:`compileall.compile_file` and
462:meth:`compileall.compile_dir`.
463
464..
465
466.. bpo: 36880
467.. date: 2019-05-13-11-37-30
468.. nonce: ZgBgH0
469.. section: Library
470
471Fix a reference counting issue when a :mod:`ctypes` callback with return
472type :class:`~ctypes.py_object` returns ``None``, which could cause crashes.
473
474..
475
476.. date: 2022-12-30-00-42-23
477.. gh-issue: 100616
478.. nonce: eu80ij
479.. section: Documentation
480
481Document existing ``attr`` parameter to :func:`curses.window.vline` function
482in :mod:`curses`.
483
484..
485
486.. date: 2022-12-23-21-42-26
487.. gh-issue: 100472
488.. nonce: NNixfO
489.. section: Documentation
490
491Remove claim in documentation that the ``stripdir``, ``prependdir`` and
492``limit_sl_dest`` parameters of :func:`compileall.compile_dir` and
493:func:`compileall.compile_file` could be :class:`bytes`.
494
495..
496
497.. date: 2022-12-02-17-08-08
498.. gh-issue: 99931
499.. nonce: wC46hE
500.. section: Documentation
501
502Use `sphinxext-opengraph <https://sphinxext-opengraph.readthedocs.io/>`__ to
503generate `OpenGraph metadata <https://ogp.me/>`__.
504
505..
506
507.. date: 2023-02-04-17-24-33
508.. gh-issue: 101334
509.. nonce: _yOqwg
510.. section: Tests
511
512``test_tarfile`` has been updated to pass when run as a high UID.
513
514..
515
516.. date: 2022-12-23-13-29-55
517.. gh-issue: 100454
518.. nonce: 3no0cW
519.. section: Tests
520
521Start running SSL tests with OpenSSL 3.1.0-beta1.
522
523..
524
525.. date: 2022-08-22-15-49-14
526.. gh-issue: 96002
527.. nonce: 4UE9UE
528.. section: Tests
529
530Add functional test for Argument Clinic.
531
532..
533
534.. date: 2023-02-02-23-43-46
535.. gh-issue: 101522
536.. nonce: lnUDta
537.. section: Build
538
539Allow overriding Windows dependencies versions and paths using MSBuild
540properties.
541
542..
543
544.. date: 2023-02-03-17-53-06
545.. gh-issue: 101543
546.. nonce: cORAT4
547.. section: Windows
548
549Ensure the install path in the registry is only used when the standard
550library hasn't been located in any other way.
551
552..
553
554.. date: 2023-01-31-16-50-07
555.. gh-issue: 101467
556.. nonce: ye9t-L
557.. section: Windows
558
559The ``py.exe`` launcher now correctly filters when only a single runtime is
560installed. It also correctly handles prefix matches on tags so that ``-3.1``
561does not match ``3.11``, but would still match ``3.1-32``.
562
563..
564
565.. date: 2023-01-18-18-25-18
566.. gh-issue: 101135
567.. nonce: HF9VlG
568.. section: Windows
569
570Restore ability to launch older 32-bit versions from the :file:`py.exe`
571launcher when both 32-bit and 64-bit installs of the same version are
572available.
573
574..
575
576.. date: 2023-01-17-18-17-58
577.. gh-issue: 82052
578.. nonce: mWyysT
579.. section: Windows
580
581Fixed an issue where writing more than 32K of Unicode output to the console
582screen in one go can result in mojibake.
583
584..
585
586.. date: 2023-01-11-16-28-09
587.. gh-issue: 100320
588.. nonce: 2DU2it
589.. section: Windows
590
591Ensures the ``PythonPath`` registry key from an install is used when
592launching from a different copy of Python that relies on an existing install
593to provide a copy of its modules and standard library.
594
595..
596
597.. date: 2023-01-11-14-42-11
598.. gh-issue: 100247
599.. nonce: YfEmSz
600.. section: Windows
601
602Restores support for the :file:`py.exe` launcher finding shebang commands in
603its configuration file using the full command name.
604
605..
606
607.. date: 2023-01-09-23-03-57
608.. gh-issue: 100180
609.. nonce: b5phrg
610.. section: Windows
611
612Update Windows installer to OpenSSL 1.1.1s
613
614..
615
616.. bpo: 43984
617.. date: 2021-05-02-15-29-33
618.. nonce: U92jiv
619.. section: Windows
620
621:meth:`winreg.SetValueEx` now leaves the target value untouched in the case
622of conversion errors. Previously, ``-1`` would be written in case of such
623errors.
624
625..
626
627.. date: 2023-01-09-22-04-21
628.. gh-issue: 100180
629.. nonce: WVhCny
630.. section: macOS
631
632Update macOS installer to OpenSSL 1.1.1s
633
634..
635
636.. bpo: 45256
637.. date: 2022-12-29-19-22-11
638.. nonce: a0ee_H
639.. section: Tools/Demos
640
641Fix a bug that caused an :exc:`AttributeError` to be raised in
642``python-gdb.py`` when ``py-locals`` is used without a frame.
643
644..
645
646.. date: 2022-12-19-10-08-53
647.. gh-issue: 100342
648.. nonce: qDFlQG
649.. section: Tools/Demos
650
651Add missing ``NULL`` check for possible allocation failure in ``*args``
652parsing in Argument Clinic.
653
654..
655
656.. date: 2022-08-11-09-58-15
657.. gh-issue: 64490
658.. nonce: PjwhM4
659.. section: Tools/Demos
660
661Argument Clinic varargs bugfixes
662
663* Fix out-of-bounds error in :c:func:`!_PyArg_UnpackKeywordsWithVararg`.
664* Fix incorrect check which allowed more than one varargs in clinic.py.
665* Fix miscalculation of ``noptargs`` in generated code.
666* Do not generate ``noptargs`` when there is a vararg argument and no optional argument.
667
668..
669
670.. date: 2022-11-30-16-39-22
671.. gh-issue: 99240
672.. nonce: 67nAX-
673.. section: C API
674
675In argument parsing, after deallocating newly allocated memory, reset its
676pointer to NULL.
677