From c844f6da99dc8f6127a8978fc556f600e000de09 Mon Sep 17 00:00:00 2001 From: Aniket Singh Yadav Date: Sat, 3 Jan 2026 22:01:21 +0530 Subject: [PATCH 1/4] Move misplaced NEWS entries to an appropriate section --- Misc/NEWS.d/3.12.0a1.rst | 40 ++++++++++++++++++++-------------------- Misc/NEWS.d/3.12.0a2.rst | 10 +++++----- Misc/NEWS.d/3.12.0a3.rst | 10 +++++----- Misc/NEWS.d/3.12.0a4.rst | 6 +++--- Misc/NEWS.d/3.12.0a5.rst | 6 +++--- Misc/NEWS.d/3.12.0a6.rst | 4 ++-- Misc/NEWS.d/3.12.0a7.rst | 8 ++++---- Misc/NEWS.d/3.12.0b1.rst | 12 ++++++------ Misc/NEWS.d/3.13.0a5.rst | 8 ++++---- Misc/NEWS.d/3.13.0a6.rst | 10 +++++----- Misc/NEWS.d/3.13.0b1.rst | 4 ++-- 11 files changed, 59 insertions(+), 59 deletions(-) diff --git a/Misc/NEWS.d/3.12.0a1.rst b/Misc/NEWS.d/3.12.0a1.rst index 0da7cdde1b2535..23d98401a78021 100644 --- a/Misc/NEWS.d/3.12.0a1.rst +++ b/Misc/NEWS.d/3.12.0a1.rst @@ -160,7 +160,7 @@ to calculate those doing pointer arithmetic. .. date: 2022-10-06-15-45-57 .. gh-issue: 96078 .. nonce: fS-6mU -.. section: Core and Builtins +.. section: Library :func:`os.sched_yield` now release the GIL while calling sched_yield(2). Patch by Donghee Na. @@ -170,7 +170,7 @@ Patch by Donghee Na. .. date: 2022-10-06-14-14-28 .. gh-issue: 97955 .. nonce: Nq5VXD -.. section: Core and Builtins +.. section: Library Migrate :mod:`zoneinfo` to Argument Clinic. @@ -223,7 +223,7 @@ chance to execute the GC periodically. .. date: 2022-10-05-00-37-27 .. gh-issue: 65961 .. nonce: z0Ys0y -.. section: Core and Builtins +.. section: Library When ``__package__`` is different than ``__spec__.parent``, raise a ``DeprecationWarning`` instead of ``ImportWarning``. @@ -245,7 +245,7 @@ Long deprecated, ``module_repr()`` should now be completely eradicated. .. date: 2022-10-04-14-04-40 .. gh-issue: 86298 .. nonce: QVM7G1 -.. section: Core and Builtins +.. section: Library In cases where ``warnings.warn_explicit()`` consults the module's loader, an ``DeprecationWarning`` is issued when ``m.__loader__`` differs from @@ -361,7 +361,7 @@ branching conditions. .. date: 2022-09-19-03-35-01 .. gh-issue: 96821 .. nonce: izK6JA -.. section: Core and Builtins +.. section: Library Fix undefined behaviour in ``audioop.c``. @@ -481,7 +481,7 @@ Fix case of undefined behavior in ceval.c .. date: 2022-09-08-20-58-10 .. gh-issue: 64373 .. nonce: AfCi36 -.. section: Core and Builtins +.. section: Library Convert :mod:`!_functools` to argument clinic. @@ -490,7 +490,7 @@ Convert :mod:`!_functools` to argument clinic. .. date: 2022-09-07-13-38-37 .. gh-issue: 96641 .. nonce: wky0Fc -.. section: Core and Builtins +.. section: Library Do not expose ``KeyWrapper`` in :mod:`!_functools`. @@ -924,7 +924,7 @@ constructed without an instance of the compiler struct. .. date: 2022-07-24-00-27-47 .. gh-issue: 95185 .. nonce: ghYTZx -.. section: Core and Builtins +.. section: Library Prevented crashes in the AST constructor when compiling some absurdly long expressions like ``"+0"*1000000``. :exc:`RecursionError` is now raised @@ -935,7 +935,7 @@ instead. Patch by Pablo Galindo .. date: 2022-07-23-19-16-25 .. gh-issue: 93351 .. nonce: 0Jyvu- -.. section: Core and Builtins +.. section: Library :class:`ast.AST` node positions are now validated when provided to :func:`compile` and other related functions. If invalid positions are @@ -990,7 +990,7 @@ bytecode compiler. .. date: 2022-07-20-09-04-55 .. gh-issue: 95023 .. nonce: bs-xd7 -.. section: Core and Builtins +.. section: Library Implement :func:`os.setns` and :func:`os.unshare` for Linux. Patch by Noam Cohen. @@ -1021,7 +1021,7 @@ Previously it could cause SystemError or other undesired behavior. .. date: 2022-07-19-04-34-56 .. gh-issue: 94996 .. nonce: dV564A -.. section: Core and Builtins +.. section: Library :func:`ast.parse` will no longer parse function definitions with positional-only params when passed ``feature_version`` less than ``(3, 8)``. @@ -1041,7 +1041,7 @@ Allow jumping within, out of, and across exception handlers in the debugger. .. date: 2022-07-18-05-10-29 .. gh-issue: 94949 .. nonce: OsZ7_s -.. section: Core and Builtins +.. section: Library :func:`ast.parse` will no longer parse parenthesized context managers when passed ``feature_version`` less than ``(3, 9)``. Patch by Shantanu Jain. @@ -1051,7 +1051,7 @@ passed ``feature_version`` less than ``(3, 9)``. Patch by Shantanu Jain. .. date: 2022-07-18-04-48-34 .. gh-issue: 94947 .. nonce: df9gUw -.. section: Core and Builtins +.. section: Library :func:`ast.parse` will no longer parse assignment expressions when passed ``feature_version`` less than ``(3, 8)``. Patch by Shantanu Jain. @@ -1070,7 +1070,7 @@ Ensures the program name is known for help text during interpreter startup. .. date: 2022-07-16-08-14-17 .. gh-issue: 94869 .. nonce: eRwMsX -.. section: Core and Builtins +.. section: Library Fix the column offsets for some expressions in multi-line f-strings :mod:`ast` nodes. Patch by Pablo Galindo. @@ -1394,7 +1394,7 @@ calls. Previously, the end column could precede the column offset. .. date: 2022-06-09-19-19-02 .. gh-issue: 93461 .. nonce: 5DqP1e -.. section: Core and Builtins +.. section: Library :func:`importlib.invalidate_caches` now drops entries from :data:`sys.path_importer_cache` with a relative path as name. This solves a @@ -1469,7 +1469,7 @@ lookup of the :attr:`~types.CodeType.co_code` attribute. .. date: 2022-05-30-19-00-38 .. gh-issue: 93359 .. nonce: zXV3A0 -.. section: Core and Builtins +.. section: Library Ensure that custom :mod:`ast` nodes without explicit end positions can be compiled. Patch by Pablo Galindo. @@ -1642,7 +1642,7 @@ not finalized at exit. Patch by Kumar Aditya. .. date: 2022-05-18-18-34-45 .. gh-issue: 92930 .. nonce: kpYPOb -.. section: Core and Builtins +.. section: Library Fixed a crash in ``_pickle.c`` from mutating collections during ``__reduce__`` or ``persistent_id``. @@ -1709,7 +1709,7 @@ Jin. .. date: 2022-05-13-00-57-18 .. gh-issue: 92658 .. nonce: YdhFE2 -.. section: Core and Builtins +.. section: Library Add support for connecting and binding to Hyper-V sockets on Windows Hyper-V hosts and guests. @@ -1729,7 +1729,7 @@ tracing functions implemented in C. .. date: 2022-05-11-09-16-54 .. gh-issue: 91102 .. nonce: lenv9h -.. section: Core and Builtins +.. section: Library :meth:`!_warnings.warn_explicit` is ported to Argument Clinic. @@ -1759,7 +1759,7 @@ no longer does anything. .. date: 2022-05-03-20-12-18 .. gh-issue: 92261 .. nonce: aigLnb -.. section: Core and Builtins +.. section: Library Fix hang when trying to iterate over a ``typing.Union``. diff --git a/Misc/NEWS.d/3.12.0a2.rst b/Misc/NEWS.d/3.12.0a2.rst index 20e27c0d92f05f..65f2ad711d4c7a 100644 --- a/Misc/NEWS.d/3.12.0a2.rst +++ b/Misc/NEWS.d/3.12.0a2.rst @@ -108,7 +108,7 @@ back to alternative names ("python", "python."). .. date: 2022-11-06-22-59-02 .. gh-issue: 96055 .. nonce: TmQuJn -.. section: Core and Builtins +.. section: Library Update :mod:`faulthandler` to emit an error message with the proper unexpected signal number. Patch by Donghee Na. @@ -333,7 +333,7 @@ aware of this shim frame and the changes to the semantics of .. date: 2022-10-19-01-01-08 .. gh-issue: 98415 .. nonce: ZS2eWh -.. section: Core and Builtins +.. section: Library Fix detection of MAC addresses for :mod:`uuid` on certain OSs. Patch by Chaim Sanders @@ -353,7 +353,7 @@ aggressively. .. date: 2022-10-15-23-15-14 .. gh-issue: 92119 .. nonce: PMSwwG -.. section: Core and Builtins +.. section: Library Print exception class name instead of its string representation when raising errors from :mod:`ctypes` calls. @@ -395,7 +395,7 @@ longobject.c to speed up some operations. .. date: 2022-07-30-14-10-27 .. gh-issue: 95389 .. nonce: nSGEkG -.. section: Core and Builtins +.. section: Library Expose :const:`~socket.ETH_P_ALL` and some of the :ref:`ETHERTYPE_* constants ` in :mod:`socket`. Patch by Noam Cohen. @@ -405,7 +405,7 @@ Expose :const:`~socket.ETH_P_ALL` and some of the :ref:`ETHERTYPE_* constants .. date: 2022-06-10-16-37-44 .. gh-issue: 93696 .. nonce: 65BI2R -.. section: Core and Builtins +.. section: Library Allow :mod:`pdb` to locate source for frozen modules in the standard library. diff --git a/Misc/NEWS.d/3.12.0a3.rst b/Misc/NEWS.d/3.12.0a3.rst index 04a2bf9fb916b7..2485c02b07454c 100644 --- a/Misc/NEWS.d/3.12.0a3.rst +++ b/Misc/NEWS.d/3.12.0a3.rst @@ -100,7 +100,7 @@ Fix bug where an :exc:`ExceptionGroup` subclass can wrap a .. date: 2022-11-16-21-35-30 .. gh-issue: 99547 .. nonce: p_c_bp -.. section: Core and Builtins +.. section: Library Add a function to os.path to check if a path is a junction: isjunction. Add similar functionality to pathlib.Path as is_junction. @@ -110,7 +110,7 @@ similar functionality to pathlib.Path as is_junction. .. date: 2022-11-12-01-39-57 .. gh-issue: 99370 .. nonce: _cu32j -.. section: Core and Builtins +.. section: Library Fix zip path for venv created from a non-installed python on POSIX platforms. @@ -150,7 +150,7 @@ to specialize attribute accesses on types that haven't had .. date: 2022-11-05-22-26-35 .. gh-issue: 99127 .. nonce: Btk7ih -.. section: Core and Builtins +.. section: Library Allow some features of :mod:`syslog` to the main interpreter only. Patch by Donghee Na. @@ -196,7 +196,7 @@ unpickling. .. bpo: 31718 .. date: 2020-02-23-23-48-15 .. nonce: sXko5e -.. section: Core and Builtins +.. section: Library Raise :exc:`ValueError` instead of :exc:`SystemError` when methods of uninitialized :class:`io.IncrementalNewlineDecoder` objects are called. @@ -207,7 +207,7 @@ Patch by Oren Milman. .. bpo: 38031 .. date: 2019-09-04-19-09-49 .. nonce: Yq4L72 -.. section: Core and Builtins +.. section: Library Fix a possible assertion failure in :class:`io.FileIO` when the opener returns an invalid file descriptor. diff --git a/Misc/NEWS.d/3.12.0a4.rst b/Misc/NEWS.d/3.12.0a4.rst index 57fb2052764b6f..cce9078c4959bd 100644 --- a/Misc/NEWS.d/3.12.0a4.rst +++ b/Misc/NEWS.d/3.12.0a4.rst @@ -125,7 +125,7 @@ Improve the accuracy of ``sum()`` with compensated summation. .. date: 2022-12-20-16-14-19 .. gh-issue: 100374 .. nonce: YRrVHT -.. section: Core and Builtins +.. section: Library Fix incorrect result and delay in :func:`socket.getfqdn`. Patch by Dominic Socular. @@ -315,7 +315,7 @@ Improve performance of ``list.pop`` for small lists. .. date: 2022-06-17-08-00-34 .. gh-issue: 89051 .. nonce: yP4Na0 -.. section: Core and Builtins +.. section: Library Add :const:`ssl.OP_LEGACY_SERVER_CONNECT` @@ -324,7 +324,7 @@ Add :const:`ssl.OP_LEGACY_SERVER_CONNECT` .. bpo: 32782 .. date: 2018-02-06-23-21-13 .. nonce: EJVSfR -.. section: Core and Builtins +.. section: Library ``ctypes`` arrays of length 0 now report a correct itemsize when a ``memoryview`` is constructed from them, rather than always giving a value diff --git a/Misc/NEWS.d/3.12.0a5.rst b/Misc/NEWS.d/3.12.0a5.rst index b73bbfbfdc4819..cfca641f53fb0e 100644 --- a/Misc/NEWS.d/3.12.0a5.rst +++ b/Misc/NEWS.d/3.12.0a5.rst @@ -45,7 +45,7 @@ Fix wrong lineno in exception message on :keyword:`continue` or .. date: 2023-01-28-20-31-42 .. gh-issue: 101372 .. nonce: 8BcpCC -.. section: Core and Builtins +.. section: Library Fix :func:`~unicodedata.is_normalized` to properly handle the UCD 3.2.0 cases. Patch by Donghee Na. @@ -138,7 +138,7 @@ embed the mask into the oparg. .. date: 2023-01-10-14-11-17 .. gh-issue: 100892 .. nonce: qfBVYI -.. section: Core and Builtins +.. section: Library Fix race while iterating over thread states in clearing :class:`threading.local`. Patch by Kumar Aditya. @@ -181,7 +181,7 @@ regen-all``. .. bpo: 32780 .. date: 2018-02-05-21-54-46 .. nonce: Dtiz8z -.. section: Core and Builtins +.. section: Library Inter-field padding is now inserted into the PEP3118 format strings obtained from :class:`ctypes.Structure` objects, reflecting their true representation diff --git a/Misc/NEWS.d/3.12.0a6.rst b/Misc/NEWS.d/3.12.0a6.rst index bc708d163ce0e9..1fff067e5c5f88 100644 --- a/Misc/NEWS.d/3.12.0a6.rst +++ b/Misc/NEWS.d/3.12.0a6.rst @@ -154,7 +154,7 @@ Fix possible segfault in ``BUILD_SET`` opcode, when new set created. .. date: 2023-02-13-22-21-58 .. gh-issue: 74895 .. nonce: esMNtq -.. section: Core and Builtins +.. section: Library :mod:`socket.getaddrinfo` no longer raises :class:`OverflowError` for :class:`int` **port** values outside of the C long range. Out of range @@ -217,7 +217,7 @@ access of ``builtins.__dict__`` keys mutates the iter object. .. date: 2023-02-10-01-15-57 .. gh-issue: 101430 .. nonce: T3Gegb -.. section: Core and Builtins +.. section: Library Update :mod:`tracemalloc` to handle presize of object properly. Patch by Donghee Na. diff --git a/Misc/NEWS.d/3.12.0a7.rst b/Misc/NEWS.d/3.12.0a7.rst index f48b9ce0550440..fd1586e42f2783 100644 --- a/Misc/NEWS.d/3.12.0a7.rst +++ b/Misc/NEWS.d/3.12.0a7.rst @@ -102,7 +102,7 @@ Shrink the number of inline :opcode:`CACHE` entries used by .. date: 2023-03-08-08-37-36 .. gh-issue: 102491 .. nonce: SFvvsC -.. section: Core and Builtins +.. section: Library Improve import time of ``platform`` by removing IronPython version parsing. The IronPython version parsing was not functional (see @@ -138,7 +138,7 @@ collection. Patch by Kumar Aditya. .. date: 2023-03-03-23-21-16 .. gh-issue: 102406 .. nonce: XLqYO3 -.. section: Core and Builtins +.. section: Library :mod:`codecs` encoding/decoding errors now get the context information (which operation and which codecs) attached as :pep:`678` notes instead of @@ -187,7 +187,7 @@ Improve build support for the Xbox. Patch by Max Bachmann. .. date: 2023-02-21-23-42-39 .. gh-issue: 102027 .. nonce: fQARG0 -.. section: Core and Builtins +.. section: Library Fix SSE2 and SSE3 detection in ``_blake2`` internal module. Patch by Max Bachmann. @@ -207,7 +207,7 @@ Deprecate ``co_lnotab`` in code objects, schedule it for removal in Python .. bpo: 1635741 .. date: 2020-07-04-09-04-41 .. nonce: ZsP31Y -.. section: Core and Builtins +.. section: Library Adapt :mod:`!_pickle` to :pep:`687`. Patch by Mohamed Koubaa and Erlend Aasland. diff --git a/Misc/NEWS.d/3.12.0b1.rst b/Misc/NEWS.d/3.12.0b1.rst index b867a4f623006f..28205f60cc8b9c 100644 --- a/Misc/NEWS.d/3.12.0b1.rst +++ b/Misc/NEWS.d/3.12.0b1.rst @@ -44,7 +44,7 @@ response to :cve:`2023-24329`. Patch by Illia Volochii. .. date: 2023-05-20-23-08-48 .. gh-issue: 102856 .. nonce: Knv9WT -.. section: Core and Builtins +.. section: Library Implement PEP 701 changes in the :mod:`tokenize` module. Patch by Marta Gómez Macías and Pablo Galindo Salgado @@ -312,7 +312,7 @@ Patch by Eric Traut, Larry Hastings, and Jelle Zijlstra. .. date: 2023-04-24-21-47-38 .. gh-issue: 103801 .. nonce: WaBanq -.. section: Core and Builtins +.. section: Library Adds three minor linting fixes to the wasm module caught that were caught by ruff. @@ -322,7 +322,7 @@ ruff. .. date: 2023-04-24-14-38-16 .. gh-issue: 103793 .. nonce: kqoH6Q -.. section: Core and Builtins +.. section: Library Optimized asyncio Task creation by deferring expensive string formatting (task name generation) from Task creation to the first time ``get_name`` is @@ -461,7 +461,7 @@ unpickled. .. date: 2023-04-08-17-13-07 .. gh-issue: 103242 .. nonce: ysI1b3 -.. section: Core and Builtins +.. section: Library Migrate :meth:`~ssl.SSLContext.set_ecdh_curve` method not to use deprecated OpenSSL APIs. Patch by Donghee Na. @@ -542,7 +542,7 @@ and reduce bytecode size. .. date: 2022-11-08-12-36-25 .. gh-issue: 99184 .. nonce: KIaqzz -.. section: Core and Builtins +.. section: Library Bypass instance attribute access of ``__name__`` in ``repr`` of :class:`weakref.ref`. @@ -573,7 +573,7 @@ raising an :exc:`IndexError`. .. bpo: 31821 .. date: 2019-12-01-12-58-31 .. nonce: 1FNmwk -.. section: Core and Builtins +.. section: Library Fix :func:`!pause_reading` to work when called from :func:`!connection_made` in :mod:`asyncio`. diff --git a/Misc/NEWS.d/3.13.0a5.rst b/Misc/NEWS.d/3.13.0a5.rst index 19ba16bc8c83d5..9704a116525dd9 100644 --- a/Misc/NEWS.d/3.13.0a5.rst +++ b/Misc/NEWS.d/3.13.0a5.rst @@ -136,7 +136,7 @@ threads to be interrupted. .. date: 2024-02-08-16-01-18 .. gh-issue: 115154 .. nonce: ji96FV -.. section: Core and Builtins +.. section: Library Fix a bug that was causing the :func:`tokenize.untokenize` function to handle unicode named literals incorrectly. Patch by Pablo Galindo @@ -146,7 +146,7 @@ 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 +.. section: Library Add ability to force alignment of :mod:`ctypes.Structure` by way of the new ``_align_`` attribute on the class. @@ -156,7 +156,7 @@ Add ability to force alignment of :mod:`ctypes.Structure` by way of the new .. date: 2023-07-16-15-02-47 .. gh-issue: 104090 .. nonce: oMjNa9 -.. section: Core and Builtins +.. section: Library 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. @@ -166,7 +166,7 @@ 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 +.. section: Library Improve the constructors for :mod:`ast` nodes. Arguments of list types now default to an empty list if omitted, and optional fields default to diff --git a/Misc/NEWS.d/3.13.0a6.rst b/Misc/NEWS.d/3.13.0a6.rst index ad6622d23bf36b..85fd5ff6c57329 100644 --- a/Misc/NEWS.d/3.13.0a6.rst +++ b/Misc/NEWS.d/3.13.0a6.rst @@ -82,7 +82,7 @@ Grigoryev Semyon .. date: 2024-03-26-17-22-38 .. gh-issue: 117266 .. nonce: Kwh79O -.. section: Core and Builtins +.. section: Library Fix crashes for certain user-created subclasses of :class:`ast.AST`. Such classes are now expected to set the ``_field_types`` attribute. @@ -92,7 +92,7 @@ classes are now expected to set the ``_field_types`` attribute. .. date: 2024-03-25-17-04-54 .. gh-issue: 99108 .. nonce: 8bjdO6 -.. section: Core and Builtins +.. section: Library Updated the :mod:`hashlib` built-in `HACL\* project`_ C code from upstream that we use for many implementations when they are not present via OpenSSL @@ -139,7 +139,7 @@ event. .. date: 2024-03-12-20-31-57 .. gh-issue: 113964 .. nonce: bJppzg -.. section: Core and Builtins +.. section: Library Starting new threads and process creation through :func:`os.fork` are now only prevented once all non-daemon threads exit. @@ -224,7 +224,7 @@ When the collecting space becomes empty, the two spaces are swapped. .. date: 2023-10-14-00-05-17 .. gh-issue: 109870 .. nonce: oKpJ3P -.. section: Core and Builtins +.. section: Library Dataclasses now calls :func:`exec` once per dataclass, instead of once per method being added. This can speed up dataclass creation by up to 20%. @@ -234,7 +234,7 @@ method being added. This can speed up dataclass creation by up to 20%. .. date: 2022-10-05-09-33-48 .. gh-issue: 97901 .. nonce: BOLluU -.. section: Core and Builtins +.. section: Library Mime type ``text/rtf`` is now supported by :mod:`mimetypes`. diff --git a/Misc/NEWS.d/3.13.0b1.rst b/Misc/NEWS.d/3.13.0b1.rst index 97731276679ba6..33337bdbeea57d 100644 --- a/Misc/NEWS.d/3.13.0b1.rst +++ b/Misc/NEWS.d/3.13.0b1.rst @@ -60,7 +60,7 @@ for speed. .. date: 2024-05-03-18-01-26 .. gh-issue: 95382 .. nonce: 73FSEv -.. section: Core and Builtins +.. section: Library Improve performance of :func:`json.dumps` and :func:`json.dump` when using the argument *indent*. Depending on the data the encoding using @@ -120,7 +120,7 @@ the GIL is always enabled. In the free-threaded build, it may return .. date: 2024-05-02-15-57-07 .. gh-issue: 118164 .. nonce: AF6kwI -.. section: Core and Builtins +.. section: Library Break a loop between the Python implementation of the :mod:`decimal` module and the Python code for integer to string conversion. Also optimize integer From ebb08da06ac8ff1d176fb8c67d6c65cc6021d31b Mon Sep 17 00:00:00 2001 From: Aniket Singh Yadav Date: Sat, 3 Jan 2026 22:49:43 +0530 Subject: [PATCH 2/4] Move misplaced NEWS entries to an appropriate section --- Misc/NEWS.d/3.12.0a1.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/3.12.0a1.rst b/Misc/NEWS.d/3.12.0a1.rst index 23d98401a78021..1e74542ee5de1a 100644 --- a/Misc/NEWS.d/3.12.0a1.rst +++ b/Misc/NEWS.d/3.12.0a1.rst @@ -924,7 +924,7 @@ constructed without an instance of the compiler struct. .. date: 2022-07-24-00-27-47 .. gh-issue: 95185 .. nonce: ghYTZx -.. section: Library +.. section: Core and Builtins Prevented crashes in the AST constructor when compiling some absurdly long expressions like ``"+0"*1000000``. :exc:`RecursionError` is now raised From 8b2db3eb361dc66f6f727a38d69595a46f5d9932 Mon Sep 17 00:00:00 2001 From: Aniket Singh Yadav Date: Sun, 4 Jan 2026 18:33:25 +0530 Subject: [PATCH 3/4] Move misplaced NEWS entries to an appropriate section --- Misc/NEWS.d/3.12.0a1.rst | 4 ++-- Misc/NEWS.d/3.12.0a2.rst | 2 +- Misc/NEWS.d/3.12.0a7.rst | 4 ++-- Misc/NEWS.d/3.13.0a5.rst | 2 +- Misc/NEWS.d/3.13.0a6.rst | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Misc/NEWS.d/3.12.0a1.rst b/Misc/NEWS.d/3.12.0a1.rst index 1e74542ee5de1a..bef6326de989e3 100644 --- a/Misc/NEWS.d/3.12.0a1.rst +++ b/Misc/NEWS.d/3.12.0a1.rst @@ -245,7 +245,7 @@ Long deprecated, ``module_repr()`` should now be completely eradicated. .. date: 2022-10-04-14-04-40 .. gh-issue: 86298 .. nonce: QVM7G1 -.. section: Library +.. section: Core and Builtins In cases where ``warnings.warn_explicit()`` consults the module's loader, an ``DeprecationWarning`` is issued when ``m.__loader__`` differs from @@ -935,7 +935,7 @@ instead. Patch by Pablo Galindo .. date: 2022-07-23-19-16-25 .. gh-issue: 93351 .. nonce: 0Jyvu- -.. section: Library +.. section: Core and Builtins :class:`ast.AST` node positions are now validated when provided to :func:`compile` and other related functions. If invalid positions are diff --git a/Misc/NEWS.d/3.12.0a2.rst b/Misc/NEWS.d/3.12.0a2.rst index 65f2ad711d4c7a..258dd22a657278 100644 --- a/Misc/NEWS.d/3.12.0a2.rst +++ b/Misc/NEWS.d/3.12.0a2.rst @@ -333,7 +333,7 @@ aware of this shim frame and the changes to the semantics of .. date: 2022-10-19-01-01-08 .. gh-issue: 98415 .. nonce: ZS2eWh -.. section: Library +.. section: Build Fix detection of MAC addresses for :mod:`uuid` on certain OSs. Patch by Chaim Sanders diff --git a/Misc/NEWS.d/3.12.0a7.rst b/Misc/NEWS.d/3.12.0a7.rst index fd1586e42f2783..e0c079c5def971 100644 --- a/Misc/NEWS.d/3.12.0a7.rst +++ b/Misc/NEWS.d/3.12.0a7.rst @@ -138,7 +138,7 @@ collection. Patch by Kumar Aditya. .. date: 2023-03-03-23-21-16 .. gh-issue: 102406 .. nonce: XLqYO3 -.. section: Library +.. section: Core and Builtins :mod:`codecs` encoding/decoding errors now get the context information (which operation and which codecs) attached as :pep:`678` notes instead of @@ -187,7 +187,7 @@ Improve build support for the Xbox. Patch by Max Bachmann. .. date: 2023-02-21-23-42-39 .. gh-issue: 102027 .. nonce: fQARG0 -.. section: Library +.. section: Build Fix SSE2 and SSE3 detection in ``_blake2`` internal module. Patch by Max Bachmann. diff --git a/Misc/NEWS.d/3.13.0a5.rst b/Misc/NEWS.d/3.13.0a5.rst index 9704a116525dd9..b0ef10c442557f 100644 --- a/Misc/NEWS.d/3.13.0a5.rst +++ b/Misc/NEWS.d/3.13.0a5.rst @@ -166,7 +166,7 @@ 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: Library +.. 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 diff --git a/Misc/NEWS.d/3.13.0a6.rst b/Misc/NEWS.d/3.13.0a6.rst index 85fd5ff6c57329..ce69c07ea81b3e 100644 --- a/Misc/NEWS.d/3.13.0a6.rst +++ b/Misc/NEWS.d/3.13.0a6.rst @@ -82,7 +82,7 @@ Grigoryev Semyon .. date: 2024-03-26-17-22-38 .. gh-issue: 117266 .. nonce: Kwh79O -.. section: Library +.. section: Core and Builtins Fix crashes for certain user-created subclasses of :class:`ast.AST`. Such classes are now expected to set the ``_field_types`` attribute. From d70464f79c13b458b1f03f77a5c6f5a459cb6097 Mon Sep 17 00:00:00 2001 From: Aniket Singh Yadav Date: Fri, 9 Jan 2026 13:03:11 +0530 Subject: [PATCH 4/4] Move misplaced NEWS entries to an appropriate section --- Misc/NEWS.d/3.12.0a1.rst | 8 ++++---- Misc/NEWS.d/3.12.0a2.rst | 6 +++--- Misc/NEWS.d/3.12.0a3.rst | 6 +++--- Misc/NEWS.d/3.12.0a4.rst | 4 ++-- Misc/NEWS.d/3.12.0a5.rst | 4 ++-- Misc/NEWS.d/3.12.0a6.rst | 4 ++-- Misc/NEWS.d/3.12.0b1.rst | 4 ++-- Misc/NEWS.d/3.13.0a5.rst | 2 +- Misc/NEWS.d/3.13.0a6.rst | 4 ++-- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Misc/NEWS.d/3.12.0a1.rst b/Misc/NEWS.d/3.12.0a1.rst index bef6326de989e3..d3dcd61e1aa1f1 100644 --- a/Misc/NEWS.d/3.12.0a1.rst +++ b/Misc/NEWS.d/3.12.0a1.rst @@ -1070,7 +1070,7 @@ Ensures the program name is known for help text during interpreter startup. .. date: 2022-07-16-08-14-17 .. gh-issue: 94869 .. nonce: eRwMsX -.. section: Library +.. section: Core and Builtins Fix the column offsets for some expressions in multi-line f-strings :mod:`ast` nodes. Patch by Pablo Galindo. @@ -1469,7 +1469,7 @@ lookup of the :attr:`~types.CodeType.co_code` attribute. .. date: 2022-05-30-19-00-38 .. gh-issue: 93359 .. nonce: zXV3A0 -.. section: Library +.. section: Core and Builtins Ensure that custom :mod:`ast` nodes without explicit end positions can be compiled. Patch by Pablo Galindo. @@ -1642,7 +1642,7 @@ not finalized at exit. Patch by Kumar Aditya. .. date: 2022-05-18-18-34-45 .. gh-issue: 92930 .. nonce: kpYPOb -.. section: Library +.. section: Core and Builtins Fixed a crash in ``_pickle.c`` from mutating collections during ``__reduce__`` or ``persistent_id``. @@ -1709,7 +1709,7 @@ Jin. .. date: 2022-05-13-00-57-18 .. gh-issue: 92658 .. nonce: YdhFE2 -.. section: Library +.. section: Core and Builtins Add support for connecting and binding to Hyper-V sockets on Windows Hyper-V hosts and guests. diff --git a/Misc/NEWS.d/3.12.0a2.rst b/Misc/NEWS.d/3.12.0a2.rst index 258dd22a657278..9c73ae95d10a4c 100644 --- a/Misc/NEWS.d/3.12.0a2.rst +++ b/Misc/NEWS.d/3.12.0a2.rst @@ -108,7 +108,7 @@ back to alternative names ("python", "python."). .. date: 2022-11-06-22-59-02 .. gh-issue: 96055 .. nonce: TmQuJn -.. section: Library +.. section: Core and Builtins Update :mod:`faulthandler` to emit an error message with the proper unexpected signal number. Patch by Donghee Na. @@ -353,7 +353,7 @@ aggressively. .. date: 2022-10-15-23-15-14 .. gh-issue: 92119 .. nonce: PMSwwG -.. section: Library +.. section: Core and Builtins Print exception class name instead of its string representation when raising errors from :mod:`ctypes` calls. @@ -395,7 +395,7 @@ longobject.c to speed up some operations. .. date: 2022-07-30-14-10-27 .. gh-issue: 95389 .. nonce: nSGEkG -.. section: Library +.. section: Core and Builtins Expose :const:`~socket.ETH_P_ALL` and some of the :ref:`ETHERTYPE_* constants ` in :mod:`socket`. Patch by Noam Cohen. diff --git a/Misc/NEWS.d/3.12.0a3.rst b/Misc/NEWS.d/3.12.0a3.rst index 2485c02b07454c..d2c717afcb6e8d 100644 --- a/Misc/NEWS.d/3.12.0a3.rst +++ b/Misc/NEWS.d/3.12.0a3.rst @@ -150,7 +150,7 @@ to specialize attribute accesses on types that haven't had .. date: 2022-11-05-22-26-35 .. gh-issue: 99127 .. nonce: Btk7ih -.. section: Library +.. section: Core and Builtins Allow some features of :mod:`syslog` to the main interpreter only. Patch by Donghee Na. @@ -196,7 +196,7 @@ unpickling. .. bpo: 31718 .. date: 2020-02-23-23-48-15 .. nonce: sXko5e -.. section: Library +.. section: Core and Builtins Raise :exc:`ValueError` instead of :exc:`SystemError` when methods of uninitialized :class:`io.IncrementalNewlineDecoder` objects are called. @@ -207,7 +207,7 @@ Patch by Oren Milman. .. bpo: 38031 .. date: 2019-09-04-19-09-49 .. nonce: Yq4L72 -.. section: Library +.. section: Core and Builtins Fix a possible assertion failure in :class:`io.FileIO` when the opener returns an invalid file descriptor. diff --git a/Misc/NEWS.d/3.12.0a4.rst b/Misc/NEWS.d/3.12.0a4.rst index cce9078c4959bd..19f7daf381ad87 100644 --- a/Misc/NEWS.d/3.12.0a4.rst +++ b/Misc/NEWS.d/3.12.0a4.rst @@ -315,7 +315,7 @@ Improve performance of ``list.pop`` for small lists. .. date: 2022-06-17-08-00-34 .. gh-issue: 89051 .. nonce: yP4Na0 -.. section: Library +.. section: Core and Builtins Add :const:`ssl.OP_LEGACY_SERVER_CONNECT` @@ -324,7 +324,7 @@ Add :const:`ssl.OP_LEGACY_SERVER_CONNECT` .. bpo: 32782 .. date: 2018-02-06-23-21-13 .. nonce: EJVSfR -.. section: Library +.. section: Core and Builtins ``ctypes`` arrays of length 0 now report a correct itemsize when a ``memoryview`` is constructed from them, rather than always giving a value diff --git a/Misc/NEWS.d/3.12.0a5.rst b/Misc/NEWS.d/3.12.0a5.rst index cfca641f53fb0e..74801bf1add5d8 100644 --- a/Misc/NEWS.d/3.12.0a5.rst +++ b/Misc/NEWS.d/3.12.0a5.rst @@ -45,7 +45,7 @@ Fix wrong lineno in exception message on :keyword:`continue` or .. date: 2023-01-28-20-31-42 .. gh-issue: 101372 .. nonce: 8BcpCC -.. section: Library +.. section: Core and Builtins Fix :func:`~unicodedata.is_normalized` to properly handle the UCD 3.2.0 cases. Patch by Donghee Na. @@ -138,7 +138,7 @@ embed the mask into the oparg. .. date: 2023-01-10-14-11-17 .. gh-issue: 100892 .. nonce: qfBVYI -.. section: Library +.. section: Core and Builtins Fix race while iterating over thread states in clearing :class:`threading.local`. Patch by Kumar Aditya. diff --git a/Misc/NEWS.d/3.12.0a6.rst b/Misc/NEWS.d/3.12.0a6.rst index 1fff067e5c5f88..bc708d163ce0e9 100644 --- a/Misc/NEWS.d/3.12.0a6.rst +++ b/Misc/NEWS.d/3.12.0a6.rst @@ -154,7 +154,7 @@ Fix possible segfault in ``BUILD_SET`` opcode, when new set created. .. date: 2023-02-13-22-21-58 .. gh-issue: 74895 .. nonce: esMNtq -.. section: Library +.. section: Core and Builtins :mod:`socket.getaddrinfo` no longer raises :class:`OverflowError` for :class:`int` **port** values outside of the C long range. Out of range @@ -217,7 +217,7 @@ access of ``builtins.__dict__`` keys mutates the iter object. .. date: 2023-02-10-01-15-57 .. gh-issue: 101430 .. nonce: T3Gegb -.. section: Library +.. section: Core and Builtins Update :mod:`tracemalloc` to handle presize of object properly. Patch by Donghee Na. diff --git a/Misc/NEWS.d/3.12.0b1.rst b/Misc/NEWS.d/3.12.0b1.rst index 28205f60cc8b9c..e897bfebd24f2c 100644 --- a/Misc/NEWS.d/3.12.0b1.rst +++ b/Misc/NEWS.d/3.12.0b1.rst @@ -461,7 +461,7 @@ unpickled. .. date: 2023-04-08-17-13-07 .. gh-issue: 103242 .. nonce: ysI1b3 -.. section: Library +.. section: Core and Builtins Migrate :meth:`~ssl.SSLContext.set_ecdh_curve` method not to use deprecated OpenSSL APIs. Patch by Donghee Na. @@ -542,7 +542,7 @@ and reduce bytecode size. .. date: 2022-11-08-12-36-25 .. gh-issue: 99184 .. nonce: KIaqzz -.. section: Library +.. section: Core and Builtins Bypass instance attribute access of ``__name__`` in ``repr`` of :class:`weakref.ref`. diff --git a/Misc/NEWS.d/3.13.0a5.rst b/Misc/NEWS.d/3.13.0a5.rst index b0ef10c442557f..6f8c82e5af3d75 100644 --- a/Misc/NEWS.d/3.13.0a5.rst +++ b/Misc/NEWS.d/3.13.0a5.rst @@ -146,7 +146,7 @@ handle unicode named literals incorrectly. Patch by Pablo Galindo .. date: 2024-01-28-02-46-12 .. gh-issue: 112433 .. nonce: FUX-nT -.. section: Library +.. section: Core and Builtins Add ability to force alignment of :mod:`ctypes.Structure` by way of the new ``_align_`` attribute on the class. diff --git a/Misc/NEWS.d/3.13.0a6.rst b/Misc/NEWS.d/3.13.0a6.rst index ce69c07ea81b3e..b97973fad020af 100644 --- a/Misc/NEWS.d/3.13.0a6.rst +++ b/Misc/NEWS.d/3.13.0a6.rst @@ -92,7 +92,7 @@ classes are now expected to set the ``_field_types`` attribute. .. date: 2024-03-25-17-04-54 .. gh-issue: 99108 .. nonce: 8bjdO6 -.. section: Library +.. section: Core and Builtins Updated the :mod:`hashlib` built-in `HACL\* project`_ C code from upstream that we use for many implementations when they are not present via OpenSSL @@ -139,7 +139,7 @@ event. .. date: 2024-03-12-20-31-57 .. gh-issue: 113964 .. nonce: bJppzg -.. section: Library +.. section: Core and Builtins Starting new threads and process creation through :func:`os.fork` are now only prevented once all non-daemon threads exit.