diff options
Diffstat (limited to 'Misc')
442 files changed, 2826 insertions, 413 deletions
diff --git a/Misc/ACKS b/Misc/ACKS index 42068ec6aef..d1490e1e46c 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -478,6 +478,7 @@ Dean Draayer Fred L. Drake, Jr. Mehdi Drissi Derk Drukker +Weilin Du John DuBois Paul Dubois Jacques Ducasse @@ -658,6 +659,7 @@ Michael Goderbauer Karan Goel Jeroen Van Goey Christoph Gohlke +Daniel Golding Tim Golden Yonatan Goldschmidt Mark Gollahon @@ -763,6 +765,7 @@ Chris Herborth Ivan Herman Jürgen Hermann Joshua Jay Herman +Kevin Hernandez Gary Herron Ernie Hershey Thomas Herve @@ -795,6 +798,7 @@ Albert Hofkamp Chris Hogan Tomas Hoger Jonathan Hogg +John Keith Hohm Vladyslav Hoi Kamilla Holanda Steve Holden @@ -940,6 +944,7 @@ Anton Kasyanov Lou Kates Makoto Kato Irit Katriel +Kattni Hiroaki Kawai Dmitry Kazakov Brian Kearns @@ -966,6 +971,7 @@ Beomsoo Bombs Kim Derek D. Kim Gihwan Kim Jan Kim +Noah Kim Taek Joo Kim Yeojin Kim Sam Kimbrel @@ -1287,6 +1293,7 @@ Paul Moore Ross Moore Ben Morgan Emily Morehouse +Semyon Moroz Derek Morr James A Morrison Martin Morrison @@ -1361,6 +1368,7 @@ Milan Oberkirch Pascal Oberndoerfer Géry Ogam Seonkyo Ok +Andrea Oliveri Jeffrey Ollie Adam Olsen Bryan Olson @@ -1474,6 +1482,7 @@ Jean-François Piéronne Oleg Plakhotnyuk Anatoliy Platonov Marcel Plch +Stefan Pochmann Kirill Podoprigora Remi Pointel Jon Poler @@ -1863,6 +1872,7 @@ Neil Tallim Geoff Talvola Anish Tambe Musashi Tamura +Long Tan William Tanksley Christian Tanzer Steven Taschuk diff --git a/Misc/NEWS.d/3.10.0a3.rst b/Misc/NEWS.d/3.10.0a3.rst index 33c3e14b7a4..3f3fb7ec599 100644 --- a/Misc/NEWS.d/3.10.0a3.rst +++ b/Misc/NEWS.d/3.10.0a3.rst @@ -1395,9 +1395,9 @@ but now can get the condition by calling the new private .. nonce: -Br3Co .. section: C API -:c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, -:c:func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` and -:c:func:`Py_GetProgramName` functions now return ``NULL`` if called before +:c:func:`!Py_GetPath`, :c:func:`!Py_GetPrefix`, :c:func:`!Py_GetExecPrefix`, +:c:func:`!Py_GetProgramFullPath`, :c:func:`!Py_GetPythonHome` and +:c:func:`!Py_GetProgramName` functions now return ``NULL`` if called before :c:func:`Py_Initialize` (before Python is initialized). Use the new :ref:`Python Initialization Configuration API <init-config>` to get the :ref:`Python Path Configuration. <init-path-config>`. Patch by Victor diff --git a/Misc/NEWS.d/3.11.0a4.rst b/Misc/NEWS.d/3.11.0a4.rst index a2d36202045..47cbf33c3bb 100644 --- a/Misc/NEWS.d/3.11.0a4.rst +++ b/Misc/NEWS.d/3.11.0a4.rst @@ -1161,7 +1161,7 @@ no-op now. .. nonce: Lq2_gR .. section: C API -Replaced deprecated usage of :c:func:`PyImport_ImportModuleNoBlock` with +Replaced deprecated usage of :c:func:`!PyImport_ImportModuleNoBlock` with :c:func:`PyImport_ImportModule` in stdlib modules. Patch by Kumar Aditya. .. diff --git a/Misc/NEWS.d/3.13.0a1.rst b/Misc/NEWS.d/3.13.0a1.rst index 91e9fee7e37..0a93cbcea0f 100644 --- a/Misc/NEWS.d/3.13.0a1.rst +++ b/Misc/NEWS.d/3.13.0a1.rst @@ -2294,7 +2294,7 @@ superclass. Patch by James Hilton-Balfe .. nonce: VksX1D .. section: Library -:class:`http.server.CGIHTTPRequestHandler` has been deprecated for removal +:class:`!http.server.CGIHTTPRequestHandler` has been deprecated for removal in 3.15. Its design is old and the web world has long since moved beyond CGI. @@ -6538,7 +6538,7 @@ to hide implementation details. Patch by Victor Stinner. .. nonce: FQJG5B .. section: C API -Deprecate the :c:func:`PyImport_ImportModuleNoBlock` function which is just +Deprecate the :c:func:`!PyImport_ImportModuleNoBlock` function which is just an alias to :c:func:`PyImport_ImportModule` since Python 3.3. Patch by Victor Stinner. @@ -6593,12 +6593,12 @@ functions, deprecated in Python 3.9. Patch by Victor Stinner. Deprecate old Python initialization functions: * :c:func:`PySys_ResetWarnOptions` -* :c:func:`Py_GetExecPrefix` -* :c:func:`Py_GetPath` -* :c:func:`Py_GetPrefix` -* :c:func:`Py_GetProgramFullPath` -* :c:func:`Py_GetProgramName` -* :c:func:`Py_GetPythonHome` +* :c:func:`!Py_GetExecPrefix` +* :c:func:`!Py_GetPath` +* :c:func:`!Py_GetPrefix` +* :c:func:`!Py_GetProgramFullPath` +* :c:func:`!Py_GetProgramName` +* :c:func:`!Py_GetPythonHome` Patch by Victor Stinner. diff --git a/Misc/NEWS.d/3.14.0a1.rst b/Misc/NEWS.d/3.14.0a1.rst index 98639f0d350..67451a7e008 100644 --- a/Misc/NEWS.d/3.14.0a1.rst +++ b/Misc/NEWS.d/3.14.0a1.rst @@ -1033,7 +1033,7 @@ retrieve the spec information. .. nonce: s3vKql .. section: Library -:mod:`argparse` vim supports abbreviated single-dash long options separated +:mod:`argparse` supports abbreviated single-dash long options separated by ``=`` from its value. .. diff --git a/Misc/NEWS.d/3.14.0a6.rst b/Misc/NEWS.d/3.14.0a6.rst index bafd8845de6..d8840b6f283 100644 --- a/Misc/NEWS.d/3.14.0a6.rst +++ b/Misc/NEWS.d/3.14.0a6.rst @@ -1325,7 +1325,7 @@ variable. .. nonce: d75n8U .. section: Core and Builtins -Adapt :func:`reversed` for use in the free-theading build. The +Adapt :func:`reversed` for use in the free-threading build. The :func:`reversed` is still not thread-safe in the sense that concurrent iterations may see the same object, but they will not corrupt the interpreter state. diff --git a/Misc/NEWS.d/3.14.0b1.rst b/Misc/NEWS.d/3.14.0b1.rst new file mode 100644 index 00000000000..5847dea7d5e --- /dev/null +++ b/Misc/NEWS.d/3.14.0b1.rst @@ -0,0 +1,2112 @@ +.. date: 2025-04-25-13-34-27 +.. gh-issue: 132930 +.. nonce: 6MJumW +.. release date: 2025-05-06 +.. section: Windows + +Marks the installer for Windows as deprecated and updates documentation to +cover the new Python install manager. + +.. + +.. date: 2025-03-27-16-22-58 +.. gh-issue: 127405 +.. nonce: aASs2Z +.. section: Windows + +Add ``ABIFLAGS`` to :func:`sysconfig.get_config_vars` on Windows. Patch by +Xuehai Pan. + +.. + +.. date: 2025-03-10-08-19-22 +.. gh-issue: 130453 +.. nonce: 9B0x8k +.. section: Tools/Demos + +Allow passing multiple keyword arguments with the same function name in +:program:`pygettext`. + +.. + +.. date: 2025-02-16-19-00-00 +.. gh-issue: 130195 +.. nonce: 19274 +.. section: Tools/Demos + +Add warning messages when :program:`pygettext` unimplemented +``-a/--extract-all`` option is called. + +.. + +.. date: 2025-04-29-14-56-37 +.. gh-issue: 133131 +.. nonce: 1pchjl +.. section: Tests + +The iOS testbed will now select the most recently released "SE-class" device +for testing if a device isn't explicitly specified. + +.. + +.. date: 2025-04-23-12-40-27 +.. gh-issue: 91048 +.. nonce: WJQCdV +.. section: Tests + +Add ability to externally inspect all pending asyncio tasks, even if no task +is currently entered on the event loop. + +.. + +.. date: 2025-04-23-02-23-37 +.. gh-issue: 109981 +.. nonce: IX3k8p +.. section: Tests + +The test helper that counts the list of open file descriptors now uses the +optimised ``/dev/fd`` approach on all Apple platforms, not just macOS. This +avoids crashes caused by guarded file descriptors. + +.. + +.. date: 2025-04-18-14-00-38 +.. gh-issue: 132678 +.. nonce: j_ZKf2 +.. section: Tests + +Add ``--prioritize`` to ``-m test``. This option allows the user to specify +which selected tests should execute first, even if the order is otherwise +randomized. This is particularly useful for tests that run the longest. + +.. + +.. date: 2025-03-17-19-47-27 +.. gh-issue: 131290 +.. nonce: NyCIXR +.. section: Tests + +Tests in :file:`Lib/test` can now be correctly executed as standalone +scripts. + +.. + +.. date: 2024-02-18-02-53-25 +.. gh-issue: 115322 +.. nonce: Um2Sjx +.. section: Security + +The underlying extension modules behind :mod:`readline`:, :mod:`subprocess`, +and :mod:`ctypes` now raise audit events on previously uncovered code paths +that could lead to file system access related to C function calling and +external binary execution. The ``ctypes.call_function`` audit hook has also +been fixed to use an unsigned value for its ``function pointer``. + +.. + +.. date: 2025-05-06-00-10-10 +.. gh-issue: 133490 +.. nonce: Ubrppz +.. section: Library + +Add color support to PDB in remote mode. + +.. + +.. date: 2025-05-04-16-37-28 +.. gh-issue: 132493 +.. nonce: 5yjZ75 +.. section: Library + +Avoid eagerly evaluating annotations in functions decorated with +:func:`reprlib.recursive_repr`. + +.. + +.. date: 2025-05-04-16-00-01 +.. gh-issue: 130645 +.. nonce: yNwKue +.. section: Library + +Add color to stdlib argparse CLIs. Patch by Hugo van Kemenade. + +.. + +.. date: 2025-05-04-15-39-25 +.. gh-issue: 119180 +.. nonce: avZ3Hm +.. section: Library + +Make :func:`annotationlib.get_annotations` succeed with the ``FORWARDREF`` +format if evaluating the annotations throws an exception other than +:exc:`NameError` or :exc:`AttributeError`. + +.. + +.. date: 2025-05-04-13-46-20 +.. gh-issue: 133351 +.. nonce: YsZls1 +.. section: Library + +Fix remote PDB to correctly request tab completions for Python expressions +from the server when completing a continuation line of a multi-line Python +block. + +.. + +.. date: 2025-05-04-13-40-05 +.. gh-issue: 133367 +.. nonce: E5nl2u +.. section: Library + +Add the ``--feature-version``, ``--optimize``, and ``--show-empty`` options +to the :mod:`ast` command-line interface. Patch by Semyon Moroz. + +.. + +.. date: 2025-05-03-21-55-33 +.. gh-issue: 133363 +.. nonce: PTLnRP +.. section: Library + +The :class:`cmd.Cmd` class has been fixed to reliably call the +``completedefault`` method whenever the ``do_shell`` method is not defined +and tab completion is requested for a line beginning with ``!``. + +.. + +.. date: 2025-05-03-18-48-54 +.. gh-issue: 113081 +.. nonce: JsLJ1X +.. section: Library + +Highlight syntax on source code in :mod:`pdb`. + +.. + +.. date: 2025-05-03-16-04-04 +.. gh-issue: 133349 +.. nonce: kAhJDY +.. section: Library + +Introduced auto-indent in :mod:`pdb` multi-line input. + +.. + +.. date: 2025-05-03-13-19-22 +.. gh-issue: 133306 +.. nonce: ustKV3 +.. section: Library + +Use ``\z`` instead of ``\Z`` in :func:`fnmatch.translate` and +:func:`glob.translate`. + +.. + +.. date: 2025-05-02-21-35-03 +.. gh-issue: 133306 +.. nonce: -vBye5 +.. section: Library + +Support ``\z`` as a synonym for ``\Z`` in :mod:`regular expressions <re>`. + +.. + +.. date: 2025-05-02-17-23-41 +.. gh-issue: 133300 +.. nonce: oAh1P2 +.. section: Library + +Make :class:`argparse.ArgumentParser`'s ``suggest_on_error`` a keyword-only +parameter. Patch by Hugo van Kemenade. + +.. + +.. date: 2025-05-02-13-16-44 +.. gh-issue: 133290 +.. nonce: R5WrLM +.. section: Library + +Fix attribute caching issue when setting :attr:`ctypes._Pointer._type_` in +the undocumented and deprecated :func:`!ctypes.SetPointerType` function and +the undocumented :meth:`!set_type` method. + +.. + +.. date: 2025-05-01-18-32-44 +.. gh-issue: 133223 +.. nonce: KE_T5f +.. section: Library + +When PDB is attached to a remote process, do a better job of intercepting +Ctrl+C and forwarding it to the remote process. + +.. + +.. date: 2025-04-29-23-20-52 +.. gh-issue: 133153 +.. nonce: M-w9yC +.. section: Library + +Do not complete :mod:`pdb` commands in ``interact`` mode of :mod:`pdb`. + +.. + +.. date: 2025-04-29-13-40-05 +.. gh-issue: 133139 +.. nonce: 9yCcC2 +.. section: Library + +Add the :func:`curses.assume_default_colors` function, a refinement of the +:func:`curses.use_default_colors` function which allows to change the color +pair ``0``. + +.. + +.. date: 2025-04-29-02-23-04 +.. gh-issue: 133089 +.. nonce: 8Jy1ZS +.. section: Library + +Use original timeout value for :exc:`subprocess.TimeoutExpired` when the +func :meth:`subprocess.run` is called with a timeout instead of sometimes a +confusing partial remaining time out value used internally on the final +``wait()``. + +.. + +.. date: 2025-04-27-15-21-05 +.. gh-issue: 133036 +.. nonce: HCNYA7 +.. section: Library + +:func:`codecs.open` is now deprecated. Use :func:`open` instead. Contributed +by Inada Naoki. + +.. + +.. date: 2025-04-26-17-41-20 +.. gh-issue: 132987 +.. nonce: xxBCqg +.. section: Library + +Many builtin and extension functions which accept an unsigned integer +argument, now use :meth:`~object.__index__` if available. + +.. + +.. date: 2025-04-26-15-43-23 +.. gh-issue: 124703 +.. nonce: jc5auS +.. section: Library + +Set return code to ``1`` when aborting process from :mod:`pdb`. + +.. + +.. date: 2025-04-26-14-44-21 +.. gh-issue: 133005 +.. nonce: y4SRfk +.. section: Library + +Support passing ``preset`` option to :func:`tarfile.open` when using +``'w|xz'`` mode. + +.. + +.. date: 2025-04-26-12-25-42 +.. gh-issue: 115032 +.. nonce: jnM2Co +.. section: Library + +Support for custom logging handlers with the *strm* argument is deprecated +and scheduled for removal in Python 3.16. Define handlers with the *stream* +argument instead. Patch by Mariusz Felisiak. + +.. + +.. date: 2025-04-26-10-57-15 +.. gh-issue: 132991 +.. nonce: ekkqdt +.. section: Library + +Add :data:`!socket.IP_FREEBIND` constant on Linux 2.4 and later. + +.. + +.. date: 2025-04-26-10-54-38 +.. gh-issue: 132995 +.. nonce: JuDF9p +.. section: Library + +Bump the version of pip bundled in ensurepip to version 25.1.1 + +.. + +.. date: 2025-04-25-21-41-45 +.. gh-issue: 132933 +.. nonce: yO3ySJ +.. section: Library + +The zipapp module now applies the filter when creating the list of files to +add, rather than waiting until the file is being added to the archive. + +.. + +.. date: 2025-04-25-16-20-49 +.. gh-issue: 121249 +.. nonce: uue2nK +.. section: Library + +Always support the :c:expr:`float complex` and :c:expr:`double complex` C +types in the :mod:`struct` module. Patch by Sergey B Kirpichev. + +.. + +.. date: 2025-04-25-12-55-06 +.. gh-issue: 132915 +.. nonce: XuKCXn +.. section: Library + +:func:`fcntl.fcntl` and :func:`fcntl.ioctl` can now detect a buffer overflow +and raise :exc:`SystemError`. The stack and memory can be corrupted in such +case, so treat this error as fatal. + +.. + +.. date: 2025-04-25-10-51-00 +.. gh-issue: 132017 +.. nonce: SIGCONT1 +.. section: Library + +Fix error when ``pyrepl`` is suspended, then resumed and terminated. + +.. + +.. date: 2025-04-24-21-22-46 +.. gh-issue: 132893 +.. nonce: KFuxZ2 +.. section: Library + +Improved :meth:`statistics.NormalDist.cdf` accuracy for inputs smaller than +the mean. + +.. + +.. date: 2025-04-24-18-07-49 +.. gh-issue: 130328 +.. nonce: z7CN8z +.. section: Library + +Speedup pasting in ``PyREPL`` on Windows. Fix by Chris Eibl. + +.. + +.. date: 2025-04-24-09-10-04 +.. gh-issue: 132882 +.. nonce: 6zoyp5 +.. section: Library + +Fix copying of :class:`typing.Union` objects containing objects that do not +support the ``|`` operator. + +.. + +.. date: 2025-04-24-01-03-40 +.. gh-issue: 93696 +.. nonce: kM-MBp +.. section: Library + +Fixed the breakpoint display error for frozen modules in :mod:`pdb`. + +.. + +.. date: 2025-04-23-18-35-09 +.. gh-issue: 129965 +.. nonce: nj7Fx2 +.. section: Library + +Add MIME types for ``.7z``, ``.apk``, ``.deb``, ``.glb``, ``.gltf``, +``.gz``, ``.m4v``, ``.php``, ``.rar``, ``.rpm``, ``.stl`` and ``.wmv``. +Patch by Hugo van Kemenade. + +.. + +.. date: 2025-04-23-14-50-45 +.. gh-issue: 132742 +.. nonce: PB6B7F +.. section: Library + +:func:`fcntl.fcntl` now supports arbitrary :term:`bytes-like objects +<bytes-like object>`, not only :class:`bytes`. :func:`fcntl.ioctl` now +automatically retries system calls failing with EINTR and releases the GIL +during a system call even for large bytes-like object. + +.. + +.. date: 2025-04-22-19-45-46 +.. gh-issue: 132451 +.. nonce: eIzMvE +.. section: Library + +The CLI for the PDB debugger now accepts a ``-p PID`` argument to allow +attaching to a running process. The process must be running the same version +of Python as the one running PDB. + +.. + +.. date: 2025-04-22-16-35-37 +.. gh-issue: 125618 +.. nonce: PEocn3 +.. section: Library + +Add a *format* parameter to :meth:`annotationlib.ForwardRef.evaluate`. +Evaluating annotations in the ``FORWARDREF`` format now succeeds in more +cases that would previously have raised an exception. + +.. + +.. date: 2025-04-22-13-42-12 +.. gh-issue: 132805 +.. nonce: r-dhmJ +.. section: Library + +Fix incorrect handling of nested non-constant values in the FORWARDREF +format in :mod:`annotationlib`. + +.. + +.. date: 2025-04-19-19-58-27 +.. gh-issue: 132734 +.. nonce: S6F9Cs +.. section: Library + +Add new constants for Bluetooth :mod:`sockets <socket>`. + +.. + +.. date: 2025-04-18-14-34-43 +.. gh-issue: 132673 +.. nonce: 0sliCv +.. section: Library + +Fix :exc:`AssertionError` raised on :class:`ctypes.Structure` with ``_align_ += 0`` and ``_fields_ = []``. + +.. + +.. date: 2025-04-18-10-00-09 +.. gh-issue: 132578 +.. nonce: ruNvF- +.. section: Library + +Rename the ``threading.Thread._handle`` field to avoid shadowing methods +defined on subclasses of ``threading.Thread``. + +.. + +.. date: 2025-04-16-11-44-56 +.. gh-issue: 132561 +.. nonce: ekkDPE +.. section: Library + +Fix the public ``locked`` method of ``multiprocessing.SemLock`` class. Also +adding 2 tests for the derivated :class:`multiprocessing.Lock` and +:class:`multiprocessing.RLock` classes. + +.. + +.. date: 2025-04-16-01-41-34 +.. gh-issue: 121468 +.. nonce: rxgE1z +.. section: Library + +Add :func:`pdb.set_trace_async` function to support :keyword:`await` +statements in :mod:`pdb`. + +.. + +.. date: 2025-04-15-08-39-14 +.. gh-issue: 132493 +.. nonce: V0gLkU +.. section: Library + +:class:`typing.Protocol` now uses :func:`annotationlib.get_annotations` when +checking whether or not an instance implements the protocol with +:func:`isinstance`. This enables support for ``isinstance`` checks against +classes with deferred annotations. + +.. + +.. date: 2025-04-15-03-20-00 +.. gh-issue: 132536 +.. nonce: i5Pvof +.. section: Library + +Do not disable :monitoring-event:`PY_THROW` event in :mod:`bdb` because it +can't be disabled. + +.. + +.. date: 2025-04-14-23-00-00 +.. gh-issue: 132527 +.. nonce: kTi8T7 +.. section: Library + +Include the valid typecode 'w' in the error message when an invalid typecode +is passed to :class:`array.array`. + +.. + +.. date: 2025-04-14-20-38-43 +.. gh-issue: 132099 +.. nonce: 0l0LlK +.. section: Library + +The Bluetooth socket with the :data:`~socket.BTPROTO_HCI` protocol on Linux +now accepts an address in the format of an integer ``device_id``, not only a +tuple ``(device_id,)``. + +.. + +.. date: 2025-04-14-17-24-50 +.. gh-issue: 81793 +.. nonce: OhRTTT +.. section: Library + +Fix :func:`os.link` on platforms (like Linux) where the system +:c:func:`!link` function does not follow symlinks. On Linux, it now follows +symlinks by default or if ``follow_symlinks=True`` is specified. On Windows, +it now raises an error if ``follow_symlinks=True`` is passed. On macOS, it +now raises an error if ``follow_symlinks=False`` is passed and the system +:c:func:`!linkat` function is not available at runtime. + +.. + +.. date: 2025-04-13-21-35-50 +.. gh-issue: 132493 +.. nonce: 5SAQJn +.. section: Library + +Support creation of :class:`typing.Protocol` classes with annotations that +cannot be resolved at class creation time. + +.. + +.. date: 2025-04-13-21-22-37 +.. gh-issue: 132491 +.. nonce: jJfT4e +.. section: Library + +Rename ``annotationlib.value_to_string`` to :func:`annotationlib.type_repr` +and provide better handling for function objects. + +.. + +.. date: 2025-04-13-21-11-11 +.. gh-issue: 132426 +.. nonce: SZno1d +.. section: Library + +Add :func:`annotationlib.get_annotate_from_class_namespace` as a helper for +accessing annotations in metaclasses, and remove +``annotationlib.get_annotate_function``. + +.. + +.. date: 2025-04-13-19-17-14 +.. gh-issue: 70145 +.. nonce: nJ2MKg +.. section: Library + +Add support for channels in Bluetooth HCI protocol +(:const:`~socket.BTPROTO_HCI`). + +.. + +.. date: 2025-04-12-19-42-51 +.. gh-issue: 131913 +.. nonce: twOx7K +.. section: Library + +Add a shortcut function :func:`multiprocessing.Process.interrupt` alongside +the existing :func:`multiprocessing.Process.terminate` and +:func:`multiprocessing.Process.kill` for an improved control over child +process termination. + +.. + +.. date: 2025-04-12-16-29-42 +.. gh-issue: 132439 +.. nonce: 3twrU6 +.. section: Library + +Fix ``PyREPL`` on Windows: characters entered via AltGr are swallowed. Patch +by Chris Eibl. + +.. + +.. date: 2025-04-12-12-59-51 +.. gh-issue: 132429 +.. nonce: OEIdlW +.. section: Library + +Fix support of Bluetooth sockets on NetBSD and DragonFly BSD. Add support +for *cid* and *bdaddr_type* in the BTPROTO_L2CAP address on FreeBSD. Return +*cid* in ``getsockname()`` for BTPROTO_L2CAP if it is not zero. + +.. + +.. date: 2025-04-12-09-30-24 +.. gh-issue: 132106 +.. nonce: OxUds3 +.. section: Library + +:meth:`QueueListener.start <logging.handlers.QueueListener.start>` now +raises a :exc:`RuntimeError` if the listener is already started. + +.. + +.. date: 2025-04-11-21-48-49 +.. gh-issue: 132417 +.. nonce: uILGdS +.. section: Library + +Fix a ``NULL`` pointer dereference when a C function called using +:mod:`ctypes` with ``restype`` :class:`~ctypes.py_object` returns ``NULL``. + +.. + +.. date: 2025-04-11-12-41-47 +.. gh-issue: 132385 +.. nonce: 86HoA7 +.. section: Library + +Fix instance error suggestions trigger potential exceptions in +:meth:`object.__getattr__` in :mod:`traceback`. + +.. + +.. date: 2025-04-10-21-43-04 +.. gh-issue: 125866 +.. nonce: EZ9X8D +.. section: Library + +Add optional *add_scheme* argument to :func:`urllib.request.pathname2url`; +when set to true, a complete URL is returned. Likewise add optional +*require_scheme* argument to :func:`~urllib.request.url2pathname`; when set +to true, a complete URL is accepted. + +.. + +.. date: 2025-04-10-13-06-42 +.. gh-issue: 132308 +.. nonce: 1js5SI +.. section: Library + +A :class:`traceback.TracebackException` now correctly renders the +``__context__`` and ``__cause__`` attributes from :ref:`falsey <truth>` +:class:`Exception`, and the ``exceptions`` attribute from falsey +:class:`ExceptionGroup`. + +.. + +.. date: 2025-04-09-19-07-22 +.. gh-issue: 130645 +.. nonce: cVfE1X +.. section: Library + +Add colour to :mod:`argparse` help output. Patch by Hugo van Kemenade. + +.. + +.. date: 2025-04-08-14-50-39 +.. gh-issue: 127495 +.. nonce: Q0V0bS +.. section: Library + +In PyREPL, append a new entry to the ``PYTHON_HISTORY`` file *after* every +statement. This should preserve command-line history after interpreter is +terminated. Patch by Sergey B Kirpichev. + +.. + +.. date: 2025-04-08-10-45-22 +.. gh-issue: 129463 +.. nonce: b1qEP3 +.. section: Library + +Comparison of :class:`annotationlib.ForwardRef` objects no longer uses the +internal ``__code__`` and ``__ast_node__`` attributes, which are used as +caches. + +.. + +.. date: 2025-04-08-01-55-11 +.. gh-issue: 132250 +.. nonce: APBFCw +.. section: Library + +Fixed the :exc:`SystemError` in :mod:`cProfile` when locating the actual C +function of a method raises an exception. + +.. + +.. date: 2025-04-06-21-17-14 +.. gh-issue: 132064 +.. nonce: ktPwDM +.. section: Library + +:func:`annotationlib.get_annotations` now uses the ``__annotate__`` +attribute if it is present, even if ``__annotations__`` is not present. +Additionally, the function now raises a :py:exc:`TypeError` if it is passed +an object that does not have any annotatins. + +.. + +.. date: 2025-04-06-14-34-29 +.. gh-issue: 130664 +.. nonce: JF2r-U +.. section: Library + +Support the ``'_'`` digit separator in formatting of the integral part of +:class:`~decimal.Decimal`'s. Patch by Sergey B Kirpichev. + +.. + +.. date: 2025-04-05-16-05-34 +.. gh-issue: 131952 +.. nonce: HX6gCX +.. section: Library + +Add color output to the :program:`json` CLI. Patch by Tomas Roun. + +.. + +.. date: 2025-04-05-15-05-09 +.. gh-issue: 132063 +.. nonce: KHnslU +.. section: Library + +Prevent exceptions that evaluate as falsey (namely, when their ``__bool__`` +method returns ``False`` or their ``__len__`` method returns 0) from being +ignored by :class:`concurrent.futures.ProcessPoolExecutor` and +:class:`concurrent.futures.ThreadPoolExecutor`. + +.. + +.. date: 2025-04-05-02-22-49 +.. gh-issue: 132106 +.. nonce: XMjhQJ +.. section: Library + +:class:`logging.handlers.QueueListener` now implements the context manager +protocol, allowing it to be used in a :keyword:`with` statement. + +.. + +.. date: 2025-04-03-20-28-54 +.. gh-issue: 132054 +.. nonce: c1nlOx +.. section: Library + +The ``application/yaml`` mime type (:rfc:`9512`) is now supported by +:mod:`mimetypes`. Patch by Sasha "Nelie" Chernykh and Hugo van Kemenade. + +.. + +.. date: 2025-04-03-17-19-42 +.. gh-issue: 119605 +.. nonce: c7QXAA +.. section: Library + +Respect ``follow_wrapped`` for :meth:`!__init__` and :meth:`!__new__` +methods when getting the class signature for a class with +:func:`inspect.signature`. Preserve class signature after wrapping with +:func:`warnings.deprecated`. Patch by Xuehai Pan. + +.. + +.. date: 2025-04-03-00-56-48 +.. gh-issue: 118761 +.. nonce: Vb0S1B +.. section: Library + +Improve import times by up to 33x for the :mod:`shlex` module, and improve +the performance of :func:`shlex.quote` by up to 12x. Patch by Adam Turner. + +.. + +.. date: 2025-04-01-18-24-58 +.. gh-issue: 85302 +.. nonce: 7knfUf +.. section: Library + +Add support for :data:`~socket.BTPROTO_SCO` in sockets on FreeBSD. + +.. + +.. date: 2025-03-26-10-56-22 +.. gh-issue: 131757 +.. nonce: pFRdmN +.. section: Library + +Make :func:`functools.lru_cache` call the cached function unlocked to allow +concurrency. + +.. + +.. date: 2025-03-23-11-33-09 +.. gh-issue: 131423 +.. nonce: bQlcEb +.. section: Library + +:mod:`ssl` can show descriptions for errors added in OpenSSL 3.4.1. Patch by +Bénédikt Tran. + +.. + +.. date: 2025-03-21-21-24-36 +.. gh-issue: 131434 +.. nonce: BPkyyh +.. section: Library + +Improve error reporting for incorrect format in :func:`time.strptime`. + +.. + +.. date: 2025-03-21-17-34-27 +.. gh-issue: 131524 +.. nonce: Vj1pO_ +.. section: Library + +Add help message to :mod:`platform` command-line interface. Contributed by +Harry Lees. + +.. + +.. date: 2025-03-17-23-07-57 +.. gh-issue: 100926 +.. nonce: B8gcbz +.. section: Library + +Move :func:`ctypes.POINTER` types cache from a global internal cache +(``_pointer_type_cache``) to the :attr:`ctypes._CData.__pointer_type__` +attribute of the corresponding :mod:`ctypes` types. This will stop the cache +from growing without limits in some situations. + +.. + +.. date: 2025-03-16-17-40-00 +.. gh-issue: 85702 +.. nonce: qudq12 +.. section: Library + +If ``zoneinfo._common.load_tzdata`` is given a package without a resource a +``ZoneInfoNotFoundError`` is raised rather than a :exc:`IsADirectoryError`. + +.. + +.. date: 2025-03-14-14-18-49 +.. gh-issue: 123471 +.. nonce: sduBKk +.. section: Library + +Make concurrent iterations over :class:`itertools.repeat` safe under +free-threading. + +.. + +.. date: 2025-03-11-21-08-46 +.. gh-issue: 131127 +.. nonce: whcVdY +.. section: Library + +Systems using LibreSSL now successfully build. + +.. + +.. date: 2025-03-09-10-37-00 +.. gh-issue: 89157 +.. nonce: qg3r138 +.. section: Library + +Make the pure Python implementation of :func:`datetime.date.fromisoformat`, +only accept ASCII strings for consistency with the C implementation. + +.. + +.. date: 2025-03-07-17-47-32 +.. gh-issue: 130941 +.. nonce: 7_GvhW +.. section: Library + +Fix :class:`configparser.ConfigParser` parsing empty interpolation with +``allow_no_value`` set to ``True``. + +.. + +.. date: 2025-03-01-15-00-00 +.. gh-issue: 110067 +.. nonce: 1ad3as +.. section: Library + +Make :mod:`heapq` max-heap functions :func:`heapq.heapify_max`, +:func:`heapq.heappush_max`, :func:`heapq.heappop_max`, and +:func:`heapq.heapreplace_max` public. Previous underscored naming is kept +for backwards compatibility. Additionally, the missing function +:func:`heapq.heappushpop_max` has been added to both the C and Python +implementations. + +.. + +.. date: 2025-03-01-12-37-08 +.. gh-issue: 129098 +.. nonce: eJ2-6L +.. section: Library + +Fix REPL traceback reporting when using :func:`compile` with an inexisting +file. Patch by Bénédikt Tran. + +.. + +.. date: 2025-02-27-14-25-01 +.. gh-issue: 130631 +.. nonce: dmZcZM +.. section: Library + +:func:`!http.cookiejar.join_header_words` is now more similar to the +original Perl version. It now quotes the same set of characters and always +quote values that end with ``"\n"``. + +.. + +.. date: 2025-02-24-12-22-51 +.. gh-issue: 130482 +.. nonce: p2DrrL +.. section: Library + +Add ability to specify name for :class:`!tkinter.OptionMenu` and +:class:`!tkinter.ttk.OptionMenu`. + +.. + +.. date: 2025-02-24-07-08-11 +.. gh-issue: 77065 +.. nonce: 8uW0Wf +.. section: Library + +Add keyword-only optional argument *echo_char* for :meth:`getpass.getpass` +for optional visual keyboard feedback support. Patch by Semyon Moroz. + +.. + +.. date: 2025-02-22-13-07-06 +.. gh-issue: 130317 +.. nonce: tnxd0I +.. section: Library + +Fix :c:func:`PyFloat_Pack2` and :c:func:`PyFloat_Unpack2` for NaN's with +payload. This corrects round-trip for :func:`struct.unpack` and +:func:`struct.pack` in case of the IEEE 754 binary16 "half precision" type. +Patch by Sergey B Kirpichev. + +.. + +.. date: 2025-02-21-15-46-43 +.. gh-issue: 130402 +.. nonce: Rwu_KK +.. section: Library + +Joining running daemon threads during interpreter shutdown now raises +:exc:`PythonFinalizationError`. + +.. + +.. date: 2025-02-16-06-25-01 +.. gh-issue: 130167 +.. nonce: kUg7Rc +.. section: Library + +Improve speed of :func:`difflib.IS_LINE_JUNK`. Patch by Semyon Moroz. + +.. + +.. date: 2025-02-12-16-37-34 +.. gh-issue: 101410 +.. nonce: 0GInct +.. section: Library + +Added more detailed messages for domain errors in the :mod:`math` module. + +.. + +.. date: 2025-02-11-10-22-11 +.. gh-issue: 128384 +.. nonce: jyWEkA +.. section: Library + +Make :class:`warnings.catch_warnings` use a context variable for holding the +warning filtering state if the :data:`sys.flags.context_aware_warnings` flag +is set to true. This makes using the context manager thread-safe in +multi-threaded programs. The flag is true by default in free-threaded +builds and is otherwise false. The value of the flag can be overridden by +the the :option:`-X context_aware_warnings <-X>` command-line option or by +the :envvar:`PYTHON_CONTEXT_AWARE_WARNINGS` environment variable. + +.. + +.. date: 2025-02-06-11-23-51 +.. gh-issue: 129719 +.. nonce: Of6rvb +.. section: Library + +Fix missing :data:`!socket.CAN_RAW_ERR_FILTER` constant in the socket module +on Linux systems. It was missing since Python 3.11. + +.. + +.. date: 2025-01-21-11-48-19 +.. gh-issue: 129027 +.. nonce: w0vxzZ +.. section: Library + +Raise :exc:`DeprecationWarning` for :func:`sys._clear_type_cache`. This +function was deprecated in Python 3.13 but it didn't raise a runtime +warning. + +.. + +.. date: 2024-12-28-11-01-36 +.. gh-issue: 128307 +.. nonce: BRCYTA +.. section: Library + +Add ``eager_start`` keyword argument to :meth:`asyncio.loop.create_task` + +.. + +.. date: 2024-12-21-13-31-55 +.. gh-issue: 127604 +.. nonce: etL5mf +.. section: Library + +Add support for printing the C stack trace on systems that support it via +:func:`faulthandler.dump_c_stack` or via the *c_stack* argument in +:func:`faulthandler.enable`. + +.. + +.. date: 2024-11-29-13-06-52 +.. gh-issue: 127385 +.. nonce: PErcyB +.. section: Library + +Add the ``F_DUPFD_QUERY`` constant to the :mod:`fcntl` module. + +.. + +.. date: 2024-11-14-21-17-48 +.. gh-issue: 126838 +.. nonce: Yr5vKF +.. section: Library + +Add *resolve_host* keyword-only parameter to +:func:`urllib.request.url2pathname`, and fix handling of file URLs with +authorities. + +.. + +.. date: 2024-09-18-09-15-40 +.. gh-issue: 82129 +.. nonce: GQwt3u +.. section: Library + +Fix :exc:`NameError` when calling :func:`typing.get_type_hints` on a +:func:`dataclasses.dataclass` created by :func:`dataclasses.make_dataclass` +with un-annotated fields. + +.. + +.. date: 2024-08-02-20-01-36 +.. gh-issue: 122559 +.. nonce: 2JlJr3 +.. section: Library + +Remove :meth:`!__reduce__` and :meth:`!__reduce_ex__` methods that always +raise :exc:`TypeError` in the C implementation of :class:`io.FileIO`, +:class:`io.BufferedReader`, :class:`io.BufferedWriter` and +:class:`io.BufferedRandom` and replace them with default +:meth:`!__getstate__` methods that raise :exc:`!TypeError`. This restores +fine details of behavior of Python 3.11 and older versions. + +.. + +.. date: 2024-07-23-17-08-41 +.. gh-issue: 122179 +.. nonce: 0jZm9h +.. section: Library + +:func:`hashlib.file_digest` now raises :exc:`BlockingIOError` when no data +is available during non-blocking I/O. Before, it added spurious null bytes +to the digest. + +.. + +.. date: 2024-07-19-07-16-50 +.. gh-issue: 53032 +.. nonce: paXN3p +.. section: Library + +Expose :func:`decimal.IEEEContext` to support creation of contexts +corresponding to the IEEE 754 (2008) decimal interchange formats. Patch by +Sergey B Kirpichev. + +.. + +.. date: 2024-06-07-15-03-54 +.. gh-issue: 120220 +.. nonce: NNxrr_ +.. section: Library + +Deprecate the :class:`!tkinter.Variable` methods :meth:`!trace_variable`, +:meth:`!trace_vdelete` and :meth:`!trace_vinfo`. Methods :meth:`!trace_add`, +:meth:`!trace_remove` and :meth:`!trace_info` can be used instead. + +.. + +.. date: 2023-12-29-09-44-41 +.. gh-issue: 113539 +.. nonce: YDkv9O +.. section: Library + +:mod:`webbrowser`: Names in the :envvar:`BROWSER` environment variable can +now refer to already registered web browsers, instead of always generating a +new browser command. + +This makes it possible to set :envvar:`BROWSER` to the value of one of the +supported browsers on macOS. + +.. + +.. bpo: 44172 +.. date: 2021-05-18-19-12-58 +.. nonce: rJ_-CI +.. section: Library + +Keep a reference to original :mod:`curses` windows in subwindows so that the +original window does not get deleted before subwindows. + +.. + +.. date: 2019-09-10-09-28-52 +.. gh-issue: 75223 +.. nonce: VyAJS9 +.. section: Library + +Deprecate undotted extensions in :meth:`mimetypes.MimeTypes.add_type`. Patch +by Hugo van Kemenade. + +.. + +.. date: 2024-11-08-18-07-13 +.. gh-issue: 112936 +.. nonce: 1Q2RcP +.. section: IDLE + +fix IDLE: no Shell menu item in single-process mode. + +.. + +.. date: 2025-03-28-18-25-43 +.. gh-issue: 107006 +.. nonce: BxFijD +.. section: Documentation + +Move documentation and example code for :class:`threading.local` from its +docstring to the official docs. + +.. + +.. date: 2024-10-08-10-44-14 +.. gh-issue: 125142 +.. nonce: HVlHrs +.. section: Documentation + +As part of the builtin help intro text, show the keyboard shortcuts for the +new, non-basic REPL (F1, F2, and F3). + +.. + +.. date: 2025-05-05-15-33-35 +.. gh-issue: 133336 +.. nonce: miffFi +.. section: Core and Builtins + +:option:`!-J` is no longer reserved for use by Jython. Patch by Adam Turner. + +.. + +.. date: 2025-05-05-12-03-46 +.. gh-issue: 133261 +.. nonce: bL1gqz +.. section: Core and Builtins + +Fix bug where the cycle GC could untrack objects in the trashcan because +they looked like they were immortal. When objects are added to the trashcan, +we take care to ensure they keep a mortal reference count. + +.. + +.. date: 2025-05-04-19-46-14 +.. gh-issue: 133346 +.. nonce: nRXi4f +.. section: Core and Builtins + +Added experimental color theming support to the ``_colorize`` module. + +.. + +.. date: 2025-05-04-14-47-26 +.. gh-issue: 132917 +.. nonce: DrEU1y +.. section: Core and Builtins + +For the free-threaded build, check the process memory usage increase before +triggering a full automatic garbage collection. If the memory used has not +increased 10% since the last collection then defer it. + +.. + +.. date: 2025-05-03-19-04-03 +.. gh-issue: 91048 +.. nonce: S8QWSw +.. section: Core and Builtins + +Add a new ``python -m asyncio ps PID`` command-line interface to inspect +asyncio tasks in a running Python process. Displays a flat table of await +relationships. A variant showing a tree view is also available as ``python +-m asyncio pstree PID``. Both are useful for debugging async code. Patch by +Pablo Galindo, Łukasz Langa, Yury Selivanov, and Marta Gomez Macias. + +.. + +.. date: 2025-05-03-07-41-21 +.. gh-issue: 133304 +.. nonce: YMuSne +.. section: Core and Builtins + +Workaround NaN's "canonicalization" in :c:func:`PyFloat_Pack4` and +:c:func:`PyFloat_Unpack4` on RISC-V. + +.. + +.. date: 2025-05-01-11-06-29 +.. gh-issue: 133197 +.. nonce: BHjfh4 +.. section: Core and Builtins + +Improve :exc:`SyntaxError` error messages for incompatible string / bytes +prefixes. + +.. + +.. date: 2025-04-30-19-07-11 +.. gh-issue: 133231 +.. nonce: H9T8g_ +.. section: Core and Builtins + +Add new utilities of observing JIT compilation: +:func:`sys._jit.is_available`, :func:`sys._jit.is_enabled`, and +:func:`sys._jit.is_active`. + +.. + +.. date: 2025-04-30-13-09-20 +.. gh-issue: 133194 +.. nonce: 25_G5c +.. section: Core and Builtins + +:func:`ast.parse` will no longer parse new :pep:`758` syntax with older +*feature_version* passed. + +.. + +.. date: 2025-04-30-00-21-54 +.. gh-issue: 131798 +.. nonce: D6T5_u +.. section: Core and Builtins + +Split ``CALL_LEN`` into several uops allowing the JIT to remove them when +optimizing. Patch by Diego Russo. + +.. + +.. date: 2025-04-26-18-43-31 +.. gh-issue: 131798 +.. nonce: FsIypo +.. section: Core and Builtins + +Use ``sym_new_type`` instead of ``sym_new_not_null`` for _BUILD_STRING, +_BUILD_SET + +.. + +.. date: 2025-04-26-17-50-47 +.. gh-issue: 132942 +.. nonce: aEEZvZ +.. section: Core and Builtins + +Fix two races in the type lookup cache. This affected the free-threaded +build and could cause crashes (apparently quite difficult to trigger). + +.. + +.. date: 2025-04-26-13-57-13 +.. gh-issue: 131798 +.. nonce: Gt8CGE +.. section: Core and Builtins + +Propagate the return type of ``_BINARY_OP_SUBSCR_TUPLE_INT`` in JIT. Patch +by Tomas Roun + +.. + +.. date: 2025-04-26-08-49-05 +.. gh-issue: 132952 +.. nonce: ifvP10 +.. section: Core and Builtins + +Speed up startup with the ``-S`` argument by importing the private ``_io`` +module instead of :mod:`io`. This fixes a performance regression introduced +earlier in Python 3.14 development and restores performance to the level of +Python 3.13. + +.. + +.. date: 2025-04-25-14-56-45 +.. gh-issue: 131798 +.. nonce: NpcKub +.. section: Core and Builtins + +Allow the JIT to remove int guards after ``_CALL_LEN`` by setting the return +type to int. Patch by Diego Russo + +.. + +.. date: 2025-04-23-20-54-17 +.. gh-issue: 131798 +.. nonce: XYlp09 +.. section: Core and Builtins + +Split ``CALL_TUPLE_1`` into several uops allowing the JIT to remove some of +them. Patch by Tomas Roun + +.. + +.. date: 2025-04-23-20-42-55 +.. gh-issue: 131798 +.. nonce: wVQ1Gt +.. section: Core and Builtins + +Split ``CALL_STR_1`` into several uops allowing the JIT to remove some of +them. Patch by Tomas Roun + +.. + +.. date: 2025-04-23-11-34-39 +.. gh-issue: 132825 +.. nonce: _yv0uL +.. section: Core and Builtins + +Enhance unhashable key/element error messages for :class:`dict` and +:class:`set`. Patch by Victor Stinner. + +.. + +.. date: 2025-04-22-19-00-03 +.. gh-issue: 131591 +.. nonce: CdEqBr +.. section: Core and Builtins + +Reset any :pep:`768` remote debugging pending call in children after +:func:`os.fork` calls. + +.. + +.. date: 2025-04-22-16-38-43 +.. gh-issue: 132713 +.. nonce: mBWTSZ +.. section: Core and Builtins + +Fix ``repr(list)`` race condition: hold a strong reference to the item while +calling ``repr(item)``. Patch by Victor Stinner. + +.. + +.. date: 2025-04-22-15-37-05 +.. gh-issue: 132661 +.. nonce: XE_A42 +.. section: Core and Builtins + +Implement :pep:`750` (Template Strings). Add new syntax for t-strings and +implement new internal :class:`!string.templatelib.Template` and +:class:`!string.templatelib.Interpolation` types. + +.. + +.. date: 2025-04-21-09-22-15 +.. gh-issue: 132479 +.. nonce: CCe2sE +.. section: Core and Builtins + +Fix compiler crash in certain circumstances where multiple module-level +annotations include comprehensions and other nested scopes. + +.. + +.. date: 2025-04-21-07-39-59 +.. gh-issue: 132747 +.. nonce: L-cnej +.. section: Core and Builtins + +Fix a crash when calling :meth:`~object.__get__` of a :term:`method` with a +:const:`None` second argument. + +.. + +.. date: 2025-04-20-10-37-39 +.. gh-issue: 132744 +.. nonce: ArrCp8 +.. section: Core and Builtins + +Certain calls now check for runaway recursion and respect the system +recursion limit. + +.. + +.. date: 2025-04-19-22-59-24 +.. gh-issue: 132449 +.. nonce: xjdw4p +.. section: Core and Builtins + +Syntax errors that look like misspellings of Python keywords now provide a +helpful fix suggestion for the typo. Contributed by Pablo Galindo Salgado. + +.. + +.. date: 2025-04-19-18-07-34 +.. gh-issue: 132737 +.. nonce: 9mW1il +.. section: Core and Builtins + +Support profiling code that requires ``__main__``, such as :mod:`pickle`. + +.. + +.. date: 2025-04-17-16-20-03 +.. gh-issue: 132639 +.. nonce: zRVYU3 +.. section: Core and Builtins + +Added :c:func:`PyLong_AsNativeBytes`, :c:func:`PyLong_FromNativeBytes` and +:c:func:`PyLong_FromUnsignedNativeBytes` to the limited C API. + +.. + +.. date: 2025-04-17-11-40-13 +.. gh-issue: 100239 +.. nonce: 9RxIxY +.. section: Core and Builtins + +Add specialisation for ``BINARY_OP/SUBSCR`` on list and slice. + +.. + +.. date: 2025-04-15-10-09-49 +.. gh-issue: 132508 +.. nonce: zVe3iI +.. section: Core and Builtins + +Uses tagged integers on the evaluation stack to represent the instruction +offsets when reraising an exception. This avoids the need to box the integer +which could fail in low memory conditions. + +.. + +.. date: 2025-04-13-17-18-01 +.. gh-issue: 124476 +.. nonce: fvGfQ7 +.. section: Core and Builtins + +Fix decoding from the locale encoding in the C.UTF-8 locale. + +.. + +.. date: 2025-04-13-10-34-27 +.. gh-issue: 131927 +.. nonce: otp80n +.. section: Core and Builtins + +Compiler warnings originating from the same module and line number are now +only emitted once, matching the behaviour of warnings emitted from user +code. This can also be configured with :mod:`warnings` filters. + +.. + +.. date: 2025-04-13-01-50-40 +.. gh-issue: 132457 +.. nonce: 1q-1xz +.. section: Core and Builtins + +Make :func:`staticmethod` and :func:`classmethod` generic. + +.. + +.. date: 2025-04-12-19-41-16 +.. gh-issue: 131798 +.. nonce: JkSocg +.. section: Core and Builtins + +Use ``sym_new_type`` instead of ``sym_new_not_null`` for _BUILD_LIST, +_BUILD_SET, _BUILD_MAP + +.. + +.. date: 2025-04-11-22-01-07 +.. gh-issue: 131798 +.. nonce: TTu_xH +.. section: Core and Builtins + +Split ``CALL_TYPE_1`` into several uops allowing the JIT to remove some of +them. + +.. + +.. date: 2025-04-11-18-46-37 +.. gh-issue: 132386 +.. nonce: pMBFTe +.. section: Core and Builtins + +Fix crash when passing a dict subclass as the ``globals`` parameter to +:func:`exec`. + +.. + +.. date: 2025-04-10-10-29-45 +.. gh-issue: 127682 +.. nonce: X0HoGz +.. section: Core and Builtins + +No longer call ``__iter__`` twice when creating and executing a generator +expression. Creating a generator expression from a non-interable will raise +only when the generator expression is executed. This brings the behavior of +generator expressions in line with other generators. + +.. + +.. date: 2025-04-09-21-51-37 +.. gh-issue: 132261 +.. nonce: gL8thm +.. section: Core and Builtins + +The internal storage for annotations and annotate functions on classes now +uses different keys in the class dictionary. This eliminates various edge +cases where access to the ``__annotate__`` and ``__annotations__`` +attributes would behave unpredictably. + +.. + +.. date: 2025-04-09-20-49-04 +.. gh-issue: 132284 +.. nonce: TxTNka +.. section: Core and Builtins + +Don't wrap base ``PyCFunction`` slots on class creation if not overridden. + +.. + +.. date: 2025-04-09-14-05-54 +.. gh-issue: 130415 +.. nonce: llQtUq +.. section: Core and Builtins + +Improve the JIT's ability to remove unused constant and local variable +loads, and fix an issue where deallocating unused values could cause JIT +code to crash or behave incorrectly. + +.. + +.. date: 2025-04-09-13-47-33 +.. gh-issue: 126703 +.. nonce: kXiQHj +.. section: Core and Builtins + +Fix possible use after free in cases where a method's definition has the +same lifetime as its ``self``. + +.. + +.. date: 2025-04-09-12-37-31 +.. gh-issue: 132286 +.. nonce: 1ZdsOa +.. section: Core and Builtins + +Fix that :attr:`type.__annotate__` was not deleted, when +:attr:`type.__annotations__` was deleted. + +.. + +.. date: 2025-04-08-21-20-12 +.. gh-issue: 131798 +.. nonce: Ft9tIF +.. section: Core and Builtins + +Allow the JIT to remove an extra ``_TO_BOOL_BOOL`` instruction after +``_CONTAINS_OP_DICT`` by setting the return type to bool. + +.. + +.. date: 2025-04-08-17-48-11 +.. gh-issue: 124715 +.. nonce: xxzQoD +.. section: Core and Builtins + +Prevents against stack overflows when calling :c:func:`Py_DECREF`. +Third-party extension objects no longer need to use the "trashcan" +mechanism, as protection is now built into the :c:func:`Py_DECREF` macro. + +.. + +.. date: 2025-04-08-09-20-18 +.. gh-issue: 131798 +.. nonce: Xp1mvN +.. section: Core and Builtins + +Allow the JIT compiler to remove some type checks for operations on lists, +tuples, dictionaries, and sets. + +.. + +.. date: 2025-04-07-13-46-57 +.. gh-issue: 128398 +.. nonce: gJ2zIF +.. section: Core and Builtins + +Improve error message when an object supporting the synchronous (resp. +asynchronous) context manager protocol is entered using :keyword:`async +with` (resp. :keyword:`with`) instead of :keyword:`with` (resp. +:keyword:`async with`). Patch by Bénédikt Tran. + +.. + +.. date: 2025-04-06-13-17-10 +.. gh-issue: 131798 +.. nonce: uMrfha +.. section: Core and Builtins + +Allow the JIT to remove unicode guards after ``_BINARY_OP_SUBSCR_STR_INT`` +by setting the return type to string. + +.. + +.. date: 2025-03-30-19-58-14 +.. gh-issue: 131878 +.. nonce: uxM26H +.. section: Core and Builtins + +Handle uncaught exceptions in the main input loop for the new REPL. + +.. + +.. date: 2025-03-30-19-49-00 +.. gh-issue: 131878 +.. nonce: J8_cHB +.. section: Core and Builtins + +Fix support of unicode characters with two or more codepoints on Windows in +the new REPL. + +.. + +.. date: 2025-03-28-15-06-55 +.. gh-issue: 126835 +.. nonce: IpcMTn +.. section: Core and Builtins + +Move constant folding to the peephole optimizer. Rename AST optimization +related files (Python/ast_opt.c -> Python/ast_preprocess.c), structs +(_PyASTOptimizeState -> _PyASTPreprocessState) and functions +(_PyAST_Optimize -> _PyAST_Preprocess, _PyCompile_AstOptimize -> +_PyCompile_AstPreprocess). + +.. + +.. date: 2025-03-26-04-55-25 +.. gh-issue: 114809 +.. nonce: 8rNyT7 +.. section: Core and Builtins + +Add support for macOS multi-arch builds with the JIT enabled + +.. + +.. date: 2025-03-21-19-03-42 +.. gh-issue: 131507 +.. nonce: q9fvyM +.. section: Core and Builtins + +PyREPL now supports syntax highlighing. Contributed by Łukasz Langa. + +.. + +.. date: 2025-03-21-08-47-36 +.. gh-issue: 130907 +.. nonce: rGg-ge +.. section: Core and Builtins + +If the ``__annotations__`` of a module object are accessed while the module +is executing, return the annotations that have been defined so far, without +caching them. + +.. + +.. date: 2025-02-18-11-42-58 +.. gh-issue: 130104 +.. nonce: BOicVZ +.. section: Core and Builtins + +Three-argument :func:`pow` now try calling :meth:`~object.__rpow__` if +necessary. Previously it was only called in two-argument :func:`!pow` and +the binary power operator. + +.. + +.. date: 2025-02-13-05-09-31 +.. gh-issue: 130070 +.. nonce: C8c9gK +.. section: Core and Builtins + +Fixed an assertion error for :func:`exec` passed a string ``source`` and a +non-``None`` ``closure``. Patch by Bartosz Sławecki. + +.. + +.. date: 2025-02-13-00-14-24 +.. gh-issue: 129958 +.. nonce: Uj7lyY +.. section: Core and Builtins + +Fix a bug that was allowing newlines inconsitently in format specifiers for +single-quoted f-strings. Patch by Pablo Galindo. + +.. + +.. date: 2025-02-12-01-36-13 +.. gh-issue: 129858 +.. nonce: M-f7Gb +.. section: Core and Builtins + +``elif`` statements that follow an ``else`` block now have a specific error +message. + +.. + +.. date: 2025-01-26-23-46-43 +.. gh-issue: 69605 +.. nonce: _2Qc1w +.. section: Core and Builtins + +Add module autocomplete to PyREPL. + +.. + +.. date: 2025-01-06-10-55-41 +.. gh-issue: 128555 +.. nonce: tAK_AY +.. section: Core and Builtins + +Add the :data:`sys.flags.thread_inherit_context` flag. + +* This flag is set to true by default on the free-threaded build + and false otherwise. If the flag is true, starting a new thread using + :class:`threading.Thread` will, by default, use a copy of the + :class:`contextvars.Context` from the caller of + :meth:`threading.Thread.start` rather than using an empty context. + +* Add the :option:`-X thread_inherit_context <-X>` command-line option and + :envvar:`PYTHON_THREAD_INHERIT_CONTEXT` environment variable, which set the + :data:`~sys.flags.thread_inherit_context` flag. + +* Add the ``context`` keyword parameter to :class:`~threading.Thread`. It can + be used to explicitly pass a context value to be used by a new thread. + +* Make the ``_contextvars`` module built-in. + +.. + +.. date: 2024-09-03-15-15-51 +.. gh-issue: 123539 +.. nonce: RKQS0S +.. section: Core and Builtins + +Improve :exc:`SyntaxError` message for using ``import ... as`` and ``from +... import ... as`` with not a name. + +.. + +.. date: 2024-07-11-12-31-29 +.. gh-issue: 102567 +.. nonce: weRqDn +.. section: Core and Builtins + +:option:`-X importtime <-X>` now accepts value ``2``, which indicates that +an ``importtime`` entry should also be printed if an imported module has +already been loaded. Patch by Noah Kim and Adam Turner. + +.. + +.. date: 2024-03-06-22-33-33 +.. gh-issue: 116436 +.. nonce: y8Thkt +.. section: Core and Builtins + +Improve error message when :exc:`TypeError` occurs during +:meth:`dict.update` + +.. + +.. date: 2023-04-29-23-15-38 +.. gh-issue: 103997 +.. nonce: BS3uVt +.. section: Core and Builtins + +String arguments passed to "-c" are now automatically dedented as if by +:func:`textwrap.dedent`. This allows "python -c" invocations to be indented +in shell scripts without causing indentation errors. (Patch by Jon Crall and +Steven Sun) + +.. + +.. date: 2022-12-29-19-10-36 +.. gh-issue: 89562 +.. nonce: g8m8RC +.. section: Core and Builtins + +Remove ``hostflags`` member from ``PySSLContext`` struct. + +.. + +.. date: 2025-05-01-01-02-11 +.. gh-issue: 133166 +.. nonce: Ly9Ae2 +.. section: C API + +Fix regression where :c:func:`PyType_GetModuleByDef` returns NULL without +setting :exc:`TypeError` when a static type is passed. + +.. + +.. date: 2025-04-29-19-39-16 +.. gh-issue: 133164 +.. nonce: W-XTU7 +.. section: C API + +Add :c:func:`PyUnstable_Object_IsUniqueReferencedTemporary` function for +determining if an object exists as a unique temporary variable on the +interpreter's stack. This is a replacement for some cases where checking +that :c:func:`Py_REFCNT` is one is no longer sufficient to determine if it's +safe to modify a Python object in-place with no visible side effects. + +.. + +.. date: 2025-04-29-06-27-46 +.. gh-issue: 133140 +.. nonce: IPGGc3 +.. section: C API + +Add :c:func:`PyUnstable_Object_IsUniquelyReferenced` as a replacement for +``Py_REFNCT(op) == 1`` on :term:`free threaded <free threading>` builds of +Python. + +.. + +.. date: 2025-04-28-18-26-37 +.. gh-issue: 131747 +.. nonce: 2AiQ9n +.. section: C API + +On non-Windows platforms, deprecate using :attr:`ctypes.Structure._pack_` to +use a Windows-compatible layout on non-Windows platforms. The layout should +be specified explicitly by setting :attr:`ctypes.Structure._layout_` to +``'ms'``. + +.. + +.. date: 2025-04-28-15-36-01 +.. gh-issue: 128972 +.. nonce: 8bZMIm +.. section: C API + +For non-free-threaded builds, the memory layout of :c:struct:`PyASCIIObject` +is reverted to match Python 3.13. (Note that the structure is not part of +stable ABI and so its memory layout is *guaranteed* to remain stable.) + +.. + +.. date: 2025-04-28-13-27-48 +.. gh-issue: 133079 +.. nonce: DJL2sK +.. section: C API + +The undocumented APIs :c:macro:`!Py_C_RECURSION_LIMIT` and +:c:member:`!PyThreadState.c_recursion_remaining`, added in 3.13, are removed +without a deprecation period. + +.. + +.. date: 2025-04-26-12-00-52 +.. gh-issue: 132987 +.. nonce: vykZGN +.. section: C API + +The ``k`` and ``K`` formats in :c:func:`PyArg_Parse` now support the +:meth:`~object.__index__` special method, like all other integer formats. + +.. + +.. date: 2025-04-25-11-39-24 +.. gh-issue: 132909 +.. nonce: JC3n_l +.. section: C API + +Fix an overflow when handling the :ref:`K <capi-py-buildvalue-format-K>` +format in :c:func:`Py_BuildValue`. Patch by Bénédikt Tran. + +.. + +.. date: 2025-04-22-13-59-30 +.. gh-issue: 132798 +.. nonce: asfafhs +.. section: C API + +Deprecated and undocumented functions :c:func:`!PyUnicode_AsEncodedObject`, +:c:func:`!PyUnicode_AsDecodedObject`, :c:func:`!PyUnicode_AsEncodedUnicode` +and :c:func:`!PyUnicode_AsDecodedUnicode` are scheduled for removal in 3.15. + +.. + +.. date: 2025-04-13-20-52-39 +.. gh-issue: 132470 +.. nonce: UqBQjN +.. section: C API + +Creating a :class:`ctypes.CField` with a *byte_size* that does not match the +actual type size now raises a :exc:`ValueError` instead of crashing the +interpreter. + +.. + +.. date: 2025-01-08-18-55-57 +.. gh-issue: 112068 +.. nonce: ofI5Fl +.. section: C API + +Add support of nullable arguments in :c:func:`PyArg_Parse` and similar +functions. Adding ``?`` after any format unit makes ``None`` be accepted as +a value. + +.. + +.. date: 2024-12-31-15-28-14 +.. gh-issue: 50333 +.. nonce: KxQUXa +.. section: C API + +Non-tuple sequences are deprecated as argument for the ``(items)`` format +unit in :c:func:`PyArg_ParseTuple` and other :ref:`argument parsing +<arg-parsing>` functions if *items* contains format units which store a +:ref:`borrowed buffer <c-arg-borrowed-buffer>` or a :term:`borrowed +reference`. + +.. + +.. date: 2025-05-01-17-27-06 +.. gh-issue: 113464 +.. nonce: vjE5X4 +.. section: Build + +Use the cpython-bin-deps "externals" repository for Windows LLVM dependency +management. Installing LLVM manually is no longer necessary for Windows JIT +builds. + +.. + +.. date: 2025-04-30-11-07-53 +.. gh-issue: 133183 +.. nonce: zCKUeQ +.. section: Build + +iOS compiler shims now include ``IPHONEOS_DEPLOYMENT_TARGET`` in target +triples, ensuring that SDK version minimums are honored. + +.. + +.. date: 2025-04-30-10-23-18 +.. gh-issue: 133167 +.. nonce: E0jrYJ +.. section: Build + +Fix compilation process with ``--enable-optimizations`` and +``--without-docstrings``. + +.. + +.. date: 2025-04-29-15-29-11 +.. gh-issue: 133171 +.. nonce: YbwbwP +.. section: Build + +Since free-threaded builds do not support the experimental JIT compiler, +prevent these configurations from being combined. + +.. + +.. date: 2025-04-20-20-07-44 +.. gh-issue: 132758 +.. nonce: N2a3wp +.. section: Build + +Fix building with tail call interpreter and pystats. + +.. + +.. date: 2025-04-17-19-10-15 +.. gh-issue: 132649 +.. nonce: DZqGoq +.. section: Build + +The :file:`PC\layout` script now allows passing ``--include-tcltk`` on +Windows ARM64. + +.. + +.. date: 2025-04-08-09-11-32 +.. gh-issue: 132257 +.. nonce: oZWBV- +.. section: Build + +Change the default LTO flags on GCC to not pass ``-flto-partition=none``, +and allow parallelization of LTO. For newer GNU makes and GCC, this has a +multiple factor speedup for LTO build times, with no noticeable loss in +performance. + +.. + +.. date: 2025-04-02-21-08-36 +.. gh-issue: 132026 +.. nonce: ptnR7T +.. section: Build + +Fix use of undefined identifiers in platform triplet detection on MIPS Linux +platforms. diff --git a/Misc/NEWS.d/3.9.0a1.rst b/Misc/NEWS.d/3.9.0a1.rst index d75132b0aac..cc24bae5881 100644 --- a/Misc/NEWS.d/3.9.0a1.rst +++ b/Misc/NEWS.d/3.9.0a1.rst @@ -5536,8 +5536,8 @@ Tyler Kieft. .. section: C API :c:func:`!Py_SetPath` now sets :data:`sys.executable` to the program full -path (:c:func:`Py_GetProgramFullPath`) rather than to the program name -(:c:func:`Py_GetProgramName`). +path (:c:func:`!Py_GetProgramFullPath`) rather than to the program name +(:c:func:`!Py_GetProgramName`). .. diff --git a/Misc/NEWS.d/next/Build/2024-12-04-10-00-35.gh-issue-127545.t0THjE.rst b/Misc/NEWS.d/next/Build/2024-12-04-10-00-35.gh-issue-127545.t0THjE.rst new file mode 100644 index 00000000000..3667e2778b7 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2024-12-04-10-00-35.gh-issue-127545.t0THjE.rst @@ -0,0 +1 @@ +Fix crash when building on Linux/m68k. diff --git a/Misc/NEWS.d/next/Build/2025-04-02-21-08-36.gh-issue-132026.ptnR7T.rst b/Misc/NEWS.d/next/Build/2025-04-02-21-08-36.gh-issue-132026.ptnR7T.rst deleted file mode 100644 index 5490b98f25b..00000000000 --- a/Misc/NEWS.d/next/Build/2025-04-02-21-08-36.gh-issue-132026.ptnR7T.rst +++ /dev/null @@ -1 +0,0 @@ -Fix use of undefined identifiers in platform triplet detection on MIPS Linux platforms. diff --git a/Misc/NEWS.d/next/Build/2025-04-08-09-11-32.gh-issue-132257.oZWBV-.rst b/Misc/NEWS.d/next/Build/2025-04-08-09-11-32.gh-issue-132257.oZWBV-.rst deleted file mode 100644 index 5bf20d2f1d0..00000000000 --- a/Misc/NEWS.d/next/Build/2025-04-08-09-11-32.gh-issue-132257.oZWBV-.rst +++ /dev/null @@ -1 +0,0 @@ -Change the default LTO flags on GCC to not pass ``-flto-partition=none``, and allow parallelization of LTO. For newer GNU makes and GCC, this has a multiple factor speedup for LTO build times, with no noticeable loss in performance. diff --git a/Misc/NEWS.d/next/Build/2025-04-16-09-38-48.gh-issue-117088.EFt_5c.rst b/Misc/NEWS.d/next/Build/2025-04-16-09-38-48.gh-issue-117088.EFt_5c.rst new file mode 100644 index 00000000000..0845b055139 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-04-16-09-38-48.gh-issue-117088.EFt_5c.rst @@ -0,0 +1 @@ +AIX linker don't support -h option, so avoid it through platform check diff --git a/Misc/NEWS.d/next/Build/2025-04-17-19-10-15.gh-issue-132649.DZqGoq.rst b/Misc/NEWS.d/next/Build/2025-04-17-19-10-15.gh-issue-132649.DZqGoq.rst deleted file mode 100644 index 358d4b0f476..00000000000 --- a/Misc/NEWS.d/next/Build/2025-04-17-19-10-15.gh-issue-132649.DZqGoq.rst +++ /dev/null @@ -1,2 +0,0 @@ -The :file:`PC\layout` script now allows passing ``--include-tcltk`` on -Windows ARM64. diff --git a/Misc/NEWS.d/next/Build/2025-04-20-20-07-44.gh-issue-132758.N2a3wp.rst b/Misc/NEWS.d/next/Build/2025-04-20-20-07-44.gh-issue-132758.N2a3wp.rst deleted file mode 100644 index 0645c35c18c..00000000000 --- a/Misc/NEWS.d/next/Build/2025-04-20-20-07-44.gh-issue-132758.N2a3wp.rst +++ /dev/null @@ -1 +0,0 @@ -Fix building with tail call interpreter and pystats. diff --git a/Misc/NEWS.d/next/Build/2025-04-29-15-29-11.gh-issue-133171.YbwbwP.rst b/Misc/NEWS.d/next/Build/2025-04-29-15-29-11.gh-issue-133171.YbwbwP.rst deleted file mode 100644 index 6207ffa851d..00000000000 --- a/Misc/NEWS.d/next/Build/2025-04-29-15-29-11.gh-issue-133171.YbwbwP.rst +++ /dev/null @@ -1,2 +0,0 @@ -Since free-threaded builds do not support the experimental JIT compiler, -prevent these configurations from being combined. diff --git a/Misc/NEWS.d/next/Build/2025-04-30-10-23-18.gh-issue-133167.E0jrYJ.rst b/Misc/NEWS.d/next/Build/2025-04-30-10-23-18.gh-issue-133167.E0jrYJ.rst deleted file mode 100644 index ee6d5a3b879..00000000000 --- a/Misc/NEWS.d/next/Build/2025-04-30-10-23-18.gh-issue-133167.E0jrYJ.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix compilation process with ``--enable-optimizations`` and -``--without-docstrings``. diff --git a/Misc/NEWS.d/next/Build/2025-04-30-11-07-53.gh-issue-133183.zCKUeQ.rst b/Misc/NEWS.d/next/Build/2025-04-30-11-07-53.gh-issue-133183.zCKUeQ.rst deleted file mode 100644 index e359f9ef473..00000000000 --- a/Misc/NEWS.d/next/Build/2025-04-30-11-07-53.gh-issue-133183.zCKUeQ.rst +++ /dev/null @@ -1,2 +0,0 @@ -iOS compiler shims now include ``IPHONEOS_DEPLOYMENT_TARGET`` in target -triples, ensuring that SDK version minimums are honored. diff --git a/Misc/NEWS.d/next/Build/2025-05-01-17-27-06.gh-issue-113464.vjE5X4.rst b/Misc/NEWS.d/next/Build/2025-05-01-17-27-06.gh-issue-113464.vjE5X4.rst deleted file mode 100644 index d150b19d5f1..00000000000 --- a/Misc/NEWS.d/next/Build/2025-05-01-17-27-06.gh-issue-113464.vjE5X4.rst +++ /dev/null @@ -1,3 +0,0 @@ -Use the cpython-bin-deps "externals" repository for Windows LLVM dependency -management. Installing LLVM manually is no longer necessary for Windows JIT -builds. diff --git a/Misc/NEWS.d/next/Build/2025-05-14-09-43-48.gh-issue-131769.H0oy5x.rst b/Misc/NEWS.d/next/Build/2025-05-14-09-43-48.gh-issue-131769.H0oy5x.rst new file mode 100644 index 00000000000..834b0d9f7e1 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-05-14-09-43-48.gh-issue-131769.H0oy5x.rst @@ -0,0 +1 @@ +Fix detecting when the build Python in a cross-build is a pydebug build. diff --git a/Misc/NEWS.d/next/Build/2025-05-16-07-46-06.gh-issue-115119.ALBgS_.rst b/Misc/NEWS.d/next/Build/2025-05-16-07-46-06.gh-issue-115119.ALBgS_.rst new file mode 100644 index 00000000000..8c2d15a3228 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-05-16-07-46-06.gh-issue-115119.ALBgS_.rst @@ -0,0 +1,4 @@ +Removed implicit fallback to the bundled copy of the ``libmpdec`` library. +Now this should be explicitly enabled via :option:`--with-system-libmpdec` +set to ``no`` or :option:`!--without-system-libmpdec`. Patch by Sergey +B Kirpichev. diff --git a/Misc/NEWS.d/next/Build/2025-05-19-18-09-20.gh-issue-134273.ZAliyy.rst b/Misc/NEWS.d/next/Build/2025-05-19-18-09-20.gh-issue-134273.ZAliyy.rst new file mode 100644 index 00000000000..3eb13cefbe6 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-05-19-18-09-20.gh-issue-134273.ZAliyy.rst @@ -0,0 +1 @@ +Add support for configuring compiler flags for the JIT with ``CFLAGS_JIT`` diff --git a/Misc/NEWS.d/next/Build/2025-05-21-19-46-28.gh-issue-134455.vdwlrq.rst b/Misc/NEWS.d/next/Build/2025-05-21-19-46-28.gh-issue-134455.vdwlrq.rst new file mode 100644 index 00000000000..08833b3344f --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-05-21-19-46-28.gh-issue-134455.vdwlrq.rst @@ -0,0 +1,2 @@ +Fixed ``build-details.json`` generation to use the correct ``c_api.headers`` +as defined in :pep:`739`, instead of ``c_api.include``. diff --git a/Misc/NEWS.d/next/Build/2025-05-21-22-13-30.gh-issue-134486.yvdL6f.rst b/Misc/NEWS.d/next/Build/2025-05-21-22-13-30.gh-issue-134486.yvdL6f.rst new file mode 100644 index 00000000000..2754e61f018 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-05-21-22-13-30.gh-issue-134486.yvdL6f.rst @@ -0,0 +1,3 @@ +The :mod:`ctypes` module now performs a more portable test for the +definition of :manpage:`alloca(3)`, fixing a compilation failure on +NetBSD. diff --git a/Misc/NEWS.d/next/Build/2025-05-24-16-59-20.gh-issue-134632.i0W2hc.rst b/Misc/NEWS.d/next/Build/2025-05-24-16-59-20.gh-issue-134632.i0W2hc.rst new file mode 100644 index 00000000000..f41c8744b8a --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-05-24-16-59-20.gh-issue-134632.i0W2hc.rst @@ -0,0 +1,3 @@ +Fixed ``build-details.json`` generation to use ``INCLUDEPY``, in order to +reference the ``pythonX.Y`` subdirectory of the include directory, as +required in :pep:`739`, instead of the top-level include directory. diff --git a/Misc/NEWS.d/next/Build/2025-05-30-11-02-30.gh-issue-134923.gBkRg4.rst b/Misc/NEWS.d/next/Build/2025-05-30-11-02-30.gh-issue-134923.gBkRg4.rst new file mode 100644 index 00000000000..a742a6add8a --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-05-30-11-02-30.gh-issue-134923.gBkRg4.rst @@ -0,0 +1,3 @@ +Windows builds with profile-guided optimization enabled now use +``/GENPROFILE`` and ``/USEPROFILE`` instead of deprecated ``/LTCG:`` +options. diff --git a/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst b/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst new file mode 100644 index 00000000000..c84663b1466 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst @@ -0,0 +1 @@ +Fix the detection of ``MAXLOGNAME`` in the ``configure.ac`` script. diff --git a/Misc/NEWS.d/next/Build/2025-06-16-07-20-28.gh-issue-119132.fcI8s7.rst b/Misc/NEWS.d/next/Build/2025-06-16-07-20-28.gh-issue-119132.fcI8s7.rst new file mode 100644 index 00000000000..3eb0805b9ce --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-06-16-07-20-28.gh-issue-119132.fcI8s7.rst @@ -0,0 +1 @@ +Remove "experimental" tag from the CPython free-threading build. diff --git a/Misc/NEWS.d/next/Build/2025-06-25-13-27-14.gh-issue-135927.iCNPQc.rst b/Misc/NEWS.d/next/Build/2025-06-25-13-27-14.gh-issue-135927.iCNPQc.rst new file mode 100644 index 00000000000..21a2c87d344 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-06-25-13-27-14.gh-issue-135927.iCNPQc.rst @@ -0,0 +1 @@ +Fix building with MSVC when passing option ``/std:clatest``. diff --git a/Misc/NEWS.d/next/C_API/2023-10-18-14-36-35.gh-issue-108512.fMZLfr.rst b/Misc/NEWS.d/next/C_API/2023-10-18-14-36-35.gh-issue-108512.fMZLfr.rst new file mode 100644 index 00000000000..279e588f3ad --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2023-10-18-14-36-35.gh-issue-108512.fMZLfr.rst @@ -0,0 +1,2 @@ +Add functions :c:func:`PySys_GetAttr`, :c:func:`PySys_GetAttrString`, +:c:func:`PySys_GetOptionalAttr` and :c:func:`PySys_GetOptionalAttrString`. diff --git a/Misc/NEWS.d/next/C_API/2024-12-31-15-28-14.gh-issue-50333.KxQUXa.rst b/Misc/NEWS.d/next/C_API/2024-12-31-15-28-14.gh-issue-50333.KxQUXa.rst deleted file mode 100644 index 5b761d1d1cf..00000000000 --- a/Misc/NEWS.d/next/C_API/2024-12-31-15-28-14.gh-issue-50333.KxQUXa.rst +++ /dev/null @@ -1,5 +0,0 @@ -Non-tuple sequences are deprecated as argument for the ``(items)`` format -unit in :c:func:`PyArg_ParseTuple` and other :ref:`argument parsing -<arg-parsing>` functions if *items* contains format units which store -a :ref:`borrowed buffer <c-arg-borrowed-buffer>` or -a :term:`borrowed reference`. diff --git a/Misc/NEWS.d/next/C_API/2025-01-08-18-55-57.gh-issue-112068.ofI5Fl.rst b/Misc/NEWS.d/next/C_API/2025-01-08-18-55-57.gh-issue-112068.ofI5Fl.rst deleted file mode 100644 index d49b1735825..00000000000 --- a/Misc/NEWS.d/next/C_API/2025-01-08-18-55-57.gh-issue-112068.ofI5Fl.rst +++ /dev/null @@ -1,3 +0,0 @@ -Add support of nullable arguments in :c:func:`PyArg_Parse` and similar -functions. Adding ``?`` after any format unit makes ``None`` be accepted as -a value. diff --git a/Misc/NEWS.d/next/C_API/2025-04-13-20-52-39.gh-issue-132470.UqBQjN.rst b/Misc/NEWS.d/next/C_API/2025-04-13-20-52-39.gh-issue-132470.UqBQjN.rst deleted file mode 100644 index 5a03908fb91..00000000000 --- a/Misc/NEWS.d/next/C_API/2025-04-13-20-52-39.gh-issue-132470.UqBQjN.rst +++ /dev/null @@ -1,2 +0,0 @@ -Creating a :class:`ctypes.CField` with a *byte_size* that does not match the actual -type size now raises a :exc:`ValueError` instead of crashing the interpreter. diff --git a/Misc/NEWS.d/next/C_API/2025-04-14-07-41-28.gh-issue-131185.ZCjMHD.rst b/Misc/NEWS.d/next/C_API/2025-04-14-07-41-28.gh-issue-131185.ZCjMHD.rst new file mode 100644 index 00000000000..aa0e8bca93b --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-04-14-07-41-28.gh-issue-131185.ZCjMHD.rst @@ -0,0 +1,2 @@ +:c:func:`PyGILState_Ensure` no longer crashes when called after interpreter +finalization. diff --git a/Misc/NEWS.d/next/C_API/2025-04-22-13-59-30.gh-issue-132798.asfafhs.rst b/Misc/NEWS.d/next/C_API/2025-04-22-13-59-30.gh-issue-132798.asfafhs.rst deleted file mode 100644 index d779d5a37e7..00000000000 --- a/Misc/NEWS.d/next/C_API/2025-04-22-13-59-30.gh-issue-132798.asfafhs.rst +++ /dev/null @@ -1,3 +0,0 @@ -Deprecated and undocumented functions :c:func:`!PyUnicode_AsEncodedObject`, -:c:func:`!PyUnicode_AsDecodedObject`, :c:func:`!PyUnicode_AsEncodedUnicode` -and :c:func:`!PyUnicode_AsDecodedUnicode` are scheduled for removal in 3.15. diff --git a/Misc/NEWS.d/next/C_API/2025-04-25-11-39-24.gh-issue-132909.JC3n_l.rst b/Misc/NEWS.d/next/C_API/2025-04-25-11-39-24.gh-issue-132909.JC3n_l.rst deleted file mode 100644 index 81a37d0595e..00000000000 --- a/Misc/NEWS.d/next/C_API/2025-04-25-11-39-24.gh-issue-132909.JC3n_l.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix an overflow when handling the :ref:`K <capi-py-buildvalue-format-K>` format -in :c:func:`Py_BuildValue`. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/C_API/2025-04-26-12-00-52.gh-issue-132987.vykZGN.rst b/Misc/NEWS.d/next/C_API/2025-04-26-12-00-52.gh-issue-132987.vykZGN.rst deleted file mode 100644 index e4a33e61319..00000000000 --- a/Misc/NEWS.d/next/C_API/2025-04-26-12-00-52.gh-issue-132987.vykZGN.rst +++ /dev/null @@ -1,2 +0,0 @@ -The ``k`` and ``K`` formats in :c:func:`PyArg_Parse` now support the -:meth:`~object.__index__` special method, like all other integer formats. diff --git a/Misc/NEWS.d/next/C_API/2025-04-28-13-27-48.gh-issue-133079.DJL2sK.rst b/Misc/NEWS.d/next/C_API/2025-04-28-13-27-48.gh-issue-133079.DJL2sK.rst deleted file mode 100644 index 43632452861..00000000000 --- a/Misc/NEWS.d/next/C_API/2025-04-28-13-27-48.gh-issue-133079.DJL2sK.rst +++ /dev/null @@ -1,3 +0,0 @@ -The undocumented APIs :c:macro:`!Py_C_RECURSION_LIMIT` and -:c:member:`!PyThreadState.c_recursion_remaining`, added in 3.13, are removed -without a deprecation period. diff --git a/Misc/NEWS.d/next/C_API/2025-04-28-15-36-01.gh-issue-128972.8bZMIm.rst b/Misc/NEWS.d/next/C_API/2025-04-28-15-36-01.gh-issue-128972.8bZMIm.rst deleted file mode 100644 index 4b6a6e3606f..00000000000 --- a/Misc/NEWS.d/next/C_API/2025-04-28-15-36-01.gh-issue-128972.8bZMIm.rst +++ /dev/null @@ -1,3 +0,0 @@ -For non-free-threaded builds, the memory layout of :c:struct:`PyASCIIObject` -is reverted to match Python 3.13. (Note that the structure is not part of -stable ABI and so its memory layout is *guaranteed* to remain stable.) diff --git a/Misc/NEWS.d/next/C_API/2025-04-29-19-39-16.gh-issue-133164.W-XTU7.rst b/Misc/NEWS.d/next/C_API/2025-04-29-19-39-16.gh-issue-133164.W-XTU7.rst deleted file mode 100644 index dec7c76dd95..00000000000 --- a/Misc/NEWS.d/next/C_API/2025-04-29-19-39-16.gh-issue-133164.W-XTU7.rst +++ /dev/null @@ -1,5 +0,0 @@ -Add :c:func:`PyUnstable_Object_IsUniqueReferencedTemporary` function for -determining if an object exists as a unique temporary variable on the -interpreter's stack. This is a replacement for some cases where checking -that :c:func:`Py_REFCNT` is one is no longer sufficient to determine if it's -safe to modify a Python object in-place with no visible side effects. diff --git a/Misc/NEWS.d/next/C_API/2025-05-01-01-02-11.gh-issue-133166.Ly9Ae2.rst b/Misc/NEWS.d/next/C_API/2025-05-01-01-02-11.gh-issue-133166.Ly9Ae2.rst deleted file mode 100644 index 976b823b441..00000000000 --- a/Misc/NEWS.d/next/C_API/2025-05-01-01-02-11.gh-issue-133166.Ly9Ae2.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix regression where :c:func:`PyType_GetModuleByDef` returns NULL without -setting :exc:`TypeError` when a static type is passed. diff --git a/Misc/NEWS.d/next/C_API/2025-05-07-21-18-00.gh-issue-133610.asdfjs.rst b/Misc/NEWS.d/next/C_API/2025-05-07-21-18-00.gh-issue-133610.asdfjs.rst new file mode 100644 index 00000000000..bdc53331f6a --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-05-07-21-18-00.gh-issue-133610.asdfjs.rst @@ -0,0 +1,3 @@ +Remove deprecated functions :c:func:`!PyUnicode_AsDecodedObject`, +:c:func:`!PyUnicode_AsDecodedUnicode`, :c:func:`!PyUnicode_AsEncodedObject`, +and :c:func:`!PyUnicode_AsEncodedUnicode`. diff --git a/Misc/NEWS.d/next/C_API/2025-05-08-12-25-47.gh-issue-133644.Yb86Rm.rst b/Misc/NEWS.d/next/C_API/2025-05-08-12-25-47.gh-issue-133644.Yb86Rm.rst new file mode 100644 index 00000000000..9569456eb76 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-05-08-12-25-47.gh-issue-133644.Yb86Rm.rst @@ -0,0 +1,2 @@ +Remove deprecated alias :c:func:`!PyImport_ImportModuleNoBlock` of +:c:func:`PyImport_ImportModule`. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/C_API/2025-05-08-13-14-45.gh-issue-133644.J8_KZ2.rst b/Misc/NEWS.d/next/C_API/2025-05-08-13-14-45.gh-issue-133644.J8_KZ2.rst new file mode 100644 index 00000000000..a9275e81112 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-05-08-13-14-45.gh-issue-133644.J8_KZ2.rst @@ -0,0 +1,2 @@ +Remove deprecated Python initialization getter functions ``Py_Get*``. +Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/C_API/2025-05-13-16-06-46.gh-issue-133968.6alWst.rst b/Misc/NEWS.d/next/C_API/2025-05-13-16-06-46.gh-issue-133968.6alWst.rst new file mode 100644 index 00000000000..47d5a3bda39 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-05-13-16-06-46.gh-issue-133968.6alWst.rst @@ -0,0 +1,4 @@ +Add :c:func:`PyUnicodeWriter_WriteASCII` function to write an ASCII string +into a :c:type:`PyUnicodeWriter`. The function is faster than +:c:func:`PyUnicodeWriter_WriteUTF8`, but has an undefined behavior if the +input string contains non-ASCII characters. Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/C_API/2025-05-17-14-41-21.gh-issue-134144.xVpZik.rst b/Misc/NEWS.d/next/C_API/2025-05-17-14-41-21.gh-issue-134144.xVpZik.rst new file mode 100644 index 00000000000..11c7bd59a4d --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-05-17-14-41-21.gh-issue-134144.xVpZik.rst @@ -0,0 +1 @@ +Fix crash when calling :c:func:`Py_EndInterpreter` with a :term:`thread state` that isn't the initial thread for the interpreter. diff --git a/Misc/NEWS.d/next/C_API/2025-05-20-17-13-51.gh-issue-134009.CpCmry.rst b/Misc/NEWS.d/next/C_API/2025-05-20-17-13-51.gh-issue-134009.CpCmry.rst new file mode 100644 index 00000000000..f060f09de19 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-05-20-17-13-51.gh-issue-134009.CpCmry.rst @@ -0,0 +1 @@ +Expose :c:func:`PyMutex_IsLocked` as part of the public C API. diff --git a/Misc/NEWS.d/next/C_API/2025-05-29-16-56-23.gh-issue-134891.7eKO8U.rst b/Misc/NEWS.d/next/C_API/2025-05-29-16-56-23.gh-issue-134891.7eKO8U.rst new file mode 100644 index 00000000000..db30d5e9a94 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-05-29-16-56-23.gh-issue-134891.7eKO8U.rst @@ -0,0 +1,2 @@ +Add :c:type:`PyUnstable_Unicode_GET_CACHED_HASH` to get the cached hash of a +string. diff --git a/Misc/NEWS.d/next/C_API/2025-05-30-11-33-17.gh-issue-134745.GN-zk2.rst b/Misc/NEWS.d/next/C_API/2025-05-30-11-33-17.gh-issue-134745.GN-zk2.rst new file mode 100644 index 00000000000..a85d2e90576 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-05-30-11-33-17.gh-issue-134745.GN-zk2.rst @@ -0,0 +1,3 @@ +Change :c:func:`!PyThread_allocate_lock` implementation to ``PyMutex``. +On Windows, :c:func:`!PyThread_acquire_lock_timed` now supports the *intr_flag* +parameter: it can be interrupted. Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/C_API/2025-06-02-13-19-22.gh-issue-134989.sDDyBN.rst b/Misc/NEWS.d/next/C_API/2025-06-02-13-19-22.gh-issue-134989.sDDyBN.rst new file mode 100644 index 00000000000..e49f7651065 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-06-02-13-19-22.gh-issue-134989.sDDyBN.rst @@ -0,0 +1,2 @@ +Implement :c:func:`PyObject_DelAttr` and :c:func:`PyObject_DelAttrString` as +macros in the limited C API 3.12 and older. Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/C_API/2025-06-05-11-06-07.gh-issue-134989.74p4ud.rst b/Misc/NEWS.d/next/C_API/2025-06-05-11-06-07.gh-issue-134989.74p4ud.rst new file mode 100644 index 00000000000..844e9a66664 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-06-05-11-06-07.gh-issue-134989.74p4ud.rst @@ -0,0 +1,3 @@ +Fix ``Py_RETURN_NONE``, ``Py_RETURN_TRUE`` and ``Py_RETURN_FALSE`` macros in +the limited C API 3.11 and older: don't treat ``Py_None``, ``Py_True`` and +``Py_False`` as immortal. Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/C_API/2025-06-19-12-47-18.gh-issue-133157.1WA85f.rst b/Misc/NEWS.d/next/C_API/2025-06-19-12-47-18.gh-issue-133157.1WA85f.rst new file mode 100644 index 00000000000..1b37d884e57 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-06-19-12-47-18.gh-issue-133157.1WA85f.rst @@ -0,0 +1 @@ +Remove the private, undocumented macro :c:macro:`!_Py_NO_SANITIZE_UNDEFINED`. diff --git a/Misc/NEWS.d/next/C_API/2025-07-01-16-22-39.gh-issue-135075.angu3J.rst b/Misc/NEWS.d/next/C_API/2025-07-01-16-22-39.gh-issue-135075.angu3J.rst new file mode 100644 index 00000000000..88e0fa65f45 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-07-01-16-22-39.gh-issue-135075.angu3J.rst @@ -0,0 +1,2 @@ +Make :c:func:`PyObject_SetAttr` and :c:func:`PyObject_SetAttrString` fail if +called with ``NULL`` value and an exception set. Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2022-12-29-19-10-36.gh-issue-89562.g8m8RC.rst b/Misc/NEWS.d/next/Core_and_Builtins/2022-12-29-19-10-36.gh-issue-89562.g8m8RC.rst deleted file mode 100644 index 41e87c0e348..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2022-12-29-19-10-36.gh-issue-89562.g8m8RC.rst +++ /dev/null @@ -1 +0,0 @@ -Remove ``hostflags`` member from ``PySSLContext`` struct. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2023-04-29-23-15-38.gh-issue-103997.BS3uVt.rst b/Misc/NEWS.d/next/Core_and_Builtins/2023-04-29-23-15-38.gh-issue-103997.BS3uVt.rst deleted file mode 100644 index 511ca8fa732..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2023-04-29-23-15-38.gh-issue-103997.BS3uVt.rst +++ /dev/null @@ -1,4 +0,0 @@ -String arguments passed to "-c" are now automatically dedented as if by -:func:`textwrap.dedent`. This allows "python -c" invocations to be indented -in shell scripts without causing indentation errors. (Patch by Jon Crall and -Steven Sun) diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2024-03-06-22-33-33.gh-issue-116436.y8Thkt.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-03-06-22-33-33.gh-issue-116436.y8Thkt.rst deleted file mode 100644 index f9c3ab1f0a5..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2024-03-06-22-33-33.gh-issue-116436.y8Thkt.rst +++ /dev/null @@ -1 +0,0 @@ -Improve error message when :exc:`TypeError` occurs during :meth:`dict.update` diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2024-09-03-15-15-51.gh-issue-123539.RKQS0S.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-09-03-15-15-51.gh-issue-123539.RKQS0S.rst deleted file mode 100644 index 602cb9a0841..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2024-09-03-15-15-51.gh-issue-123539.RKQS0S.rst +++ /dev/null @@ -1,2 +0,0 @@ -Improve :exc:`SyntaxError` message for using ``import ... as`` -and ``from ... import ... as`` with not a name. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-01-06-10-55-41.gh-issue-128555.tAK_AY.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-01-06-10-55-41.gh-issue-128555.tAK_AY.rst deleted file mode 100644 index e0b468e76a0..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-01-06-10-55-41.gh-issue-128555.tAK_AY.rst +++ /dev/null @@ -1,16 +0,0 @@ -Add the :data:`sys.flags.thread_inherit_context` flag. - -* This flag is set to true by default on the free-threaded build - and false otherwise. If the flag is true, starting a new thread using - :class:`threading.Thread` will, by default, use a copy of the - :class:`contextvars.Context` from the caller of - :meth:`threading.Thread.start` rather than using an empty context. - -* Add the :option:`-X thread_inherit_context <-X>` command-line option and - :envvar:`PYTHON_THREAD_INHERIT_CONTEXT` environment variable, which set the - :data:`~sys.flags.thread_inherit_context` flag. - -* Add the ``context`` keyword parameter to :class:`~threading.Thread`. It can - be used to explicitly pass a context value to be used by a new thread. - -* Make the ``_contextvars`` module built-in. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-01-26-23-46-43.gh-issue-69605._2Qc1w.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-01-26-23-46-43.gh-issue-69605._2Qc1w.rst deleted file mode 100644 index 1f85be8bc61..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-01-26-23-46-43.gh-issue-69605._2Qc1w.rst +++ /dev/null @@ -1 +0,0 @@ -Add module autocomplete to PyREPL. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-02-12-01-36-13.gh-issue-129858.M-f7Gb.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-02-12-01-36-13.gh-issue-129858.M-f7Gb.rst deleted file mode 100644 index 2d2c88ba48d..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-02-12-01-36-13.gh-issue-129858.M-f7Gb.rst +++ /dev/null @@ -1 +0,0 @@ -``elif`` statements that follow an ``else`` block now have a specific error message. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-02-13-00-14-24.gh-issue-129958.Uj7lyY.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-02-13-00-14-24.gh-issue-129958.Uj7lyY.rst deleted file mode 100644 index c0fa76c89e4..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-02-13-00-14-24.gh-issue-129958.Uj7lyY.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix a bug that was allowing newlines inconsitently in format specifiers for -single-quoted f-strings. Patch by Pablo Galindo. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-02-13-05-09-31.gh-issue-130070.C8c9gK.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-02-13-05-09-31.gh-issue-130070.C8c9gK.rst deleted file mode 100644 index f9e135f1902..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-02-13-05-09-31.gh-issue-130070.C8c9gK.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed an assertion error for :func:`exec` passed a string ``source`` and a non-``None`` ``closure``. Patch by Bartosz Sławecki. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-02-18-11-42-58.gh-issue-130104.BOicVZ.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-02-18-11-42-58.gh-issue-130104.BOicVZ.rst deleted file mode 100644 index 9539ad3d79d..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-02-18-11-42-58.gh-issue-130104.BOicVZ.rst +++ /dev/null @@ -1,4 +0,0 @@ -Three-argument :func:`pow` now try calling :meth:`~object.__rpow__` if -necessary. -Previously it was only called in two-argument :func:`!pow` and the binary -power operator. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-03-14-13-08-20.gh-issue-127266._tyfBp.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-03-14-13-08-20.gh-issue-127266._tyfBp.rst new file mode 100644 index 00000000000..b26977628de --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-03-14-13-08-20.gh-issue-127266._tyfBp.rst @@ -0,0 +1,6 @@ +In the free-threaded build, avoid data races caused by updating type slots +or type flags after the type was initially created. For those (typically +rare) cases, use the stop-the-world mechanism. Remove the use of atomics +when reading or writing type flags. The use of atomics is not sufficient to +avoid races (since flags are sometimes read without a lock and without +atomics) and are no longer required. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-03-21-08-47-36.gh-issue-130907.rGg-ge.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-03-21-08-47-36.gh-issue-130907.rGg-ge.rst deleted file mode 100644 index 587627e979a..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-03-21-08-47-36.gh-issue-130907.rGg-ge.rst +++ /dev/null @@ -1,3 +0,0 @@ -If the ``__annotations__`` of a module object are accessed while the -module is executing, return the annotations that have been defined so far, -without caching them. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-03-21-19-03-42.gh-issue-131507.q9fvyM.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-03-21-19-03-42.gh-issue-131507.q9fvyM.rst deleted file mode 100644 index 354a116c533..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-03-21-19-03-42.gh-issue-131507.q9fvyM.rst +++ /dev/null @@ -1 +0,0 @@ -PyREPL now supports syntax highlighing. Contributed by Łukasz Langa. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-03-26-04-55-25.gh-issue-114809.8rNyT7.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-03-26-04-55-25.gh-issue-114809.8rNyT7.rst deleted file mode 100644 index 19d92c33bc6..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-03-26-04-55-25.gh-issue-114809.8rNyT7.rst +++ /dev/null @@ -1 +0,0 @@ -Add support for macOS multi-arch builds with the JIT enabled diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-04-16-41-00.gh-issue-133379.asdjhjdf.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-04-16-41-00.gh-issue-133379.asdjhjdf.rst new file mode 100644 index 00000000000..cf2e1e4eaff --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-04-16-41-00.gh-issue-133379.asdjhjdf.rst @@ -0,0 +1 @@ +Correct usage of *arguments* in error messages. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-06-13-17-10.gh-issue-131798.uMrfha.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-06-13-17-10.gh-issue-131798.uMrfha.rst deleted file mode 100644 index 5ea5fcecc33..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-06-13-17-10.gh-issue-131798.uMrfha.rst +++ /dev/null @@ -1,2 +0,0 @@ -Allow the JIT to remove unicode guards after ``_BINARY_OP_SUBSCR_STR_INT`` -by setting the return type to string. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-07-13-46-57.gh-issue-128398.gJ2zIF.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-07-13-46-57.gh-issue-128398.gJ2zIF.rst deleted file mode 100644 index 792332db6ef..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-07-13-46-57.gh-issue-128398.gJ2zIF.rst +++ /dev/null @@ -1,4 +0,0 @@ -Improve error message when an object supporting the synchronous (resp. -asynchronous) context manager protocol is entered using :keyword:`async -with` (resp. :keyword:`with`) instead of :keyword:`with` (resp. -:keyword:`async with`). Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-08-09-20-18.gh-issue-131798.Xp1mvN.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-08-09-20-18.gh-issue-131798.Xp1mvN.rst deleted file mode 100644 index 91b7a661972..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-08-09-20-18.gh-issue-131798.Xp1mvN.rst +++ /dev/null @@ -1,2 +0,0 @@ -Allow the JIT compiler to remove some type checks for operations on lists, -tuples, dictionaries, and sets. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-08-17-48-11.gh-issue-124715.xxzQoD.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-08-17-48-11.gh-issue-124715.xxzQoD.rst deleted file mode 100644 index f0e33185609..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-08-17-48-11.gh-issue-124715.xxzQoD.rst +++ /dev/null @@ -1,3 +0,0 @@ -Prevents against stack overflows when calling :c:func:`Py_DECREF`. Third-party -extension objects no longer need to use the "trashcan" mechanism, as -protection is now built into the :c:func:`Py_DECREF` macro. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-08-21-20-12.gh-issue-131798.Ft9tIF.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-08-21-20-12.gh-issue-131798.Ft9tIF.rst deleted file mode 100644 index 90c0fb35f94..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-08-21-20-12.gh-issue-131798.Ft9tIF.rst +++ /dev/null @@ -1,2 +0,0 @@ -Allow the JIT to remove an extra ``_TO_BOOL_BOOL`` instruction after -``_CONTAINS_OP_DICT`` by setting the return type to bool. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-12-37-31.gh-issue-132286.1ZdsOa.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-12-37-31.gh-issue-132286.1ZdsOa.rst deleted file mode 100644 index 82dcbd3bc10..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-12-37-31.gh-issue-132286.1ZdsOa.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix that :attr:`type.__annotate__` was not deleted, when -:attr:`type.__annotations__` was deleted. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-13-47-33.gh-issue-126703.kXiQHj.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-13-47-33.gh-issue-126703.kXiQHj.rst deleted file mode 100644 index d0461e17d0f..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-13-47-33.gh-issue-126703.kXiQHj.rst +++ /dev/null @@ -1 +0,0 @@ -Fix possible use after free in cases where a method's definition has the same lifetime as its ``self``. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-14-05-54.gh-issue-130415.llQtUq.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-14-05-54.gh-issue-130415.llQtUq.rst deleted file mode 100644 index 03523de79b6..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-14-05-54.gh-issue-130415.llQtUq.rst +++ /dev/null @@ -1,3 +0,0 @@ -Improve the JIT's ability to remove unused constant and local variable -loads, and fix an issue where deallocating unused values could cause JIT -code to crash or behave incorrectly. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-20-49-04.gh-issue-132284.TxTNka.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-20-49-04.gh-issue-132284.TxTNka.rst deleted file mode 100644 index b63a75f1e7e..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-20-49-04.gh-issue-132284.TxTNka.rst +++ /dev/null @@ -1 +0,0 @@ -Don't wrap base ``PyCFunction`` slots on class creation if not overridden. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-21-51-37.gh-issue-132261.gL8thm.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-21-51-37.gh-issue-132261.gL8thm.rst deleted file mode 100644 index 0e58cf7f957..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-09-21-51-37.gh-issue-132261.gL8thm.rst +++ /dev/null @@ -1,4 +0,0 @@ -The internal storage for annotations and annotate functions on classes now -uses different keys in the class dictionary. This eliminates various edge -cases where access to the ``__annotate__`` and ``__annotations__`` -attributes would behave unpredictably. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-10-10-29-45.gh-issue-127682.X0HoGz.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-10-10-29-45.gh-issue-127682.X0HoGz.rst deleted file mode 100644 index b87750eb516..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-10-10-29-45.gh-issue-127682.X0HoGz.rst +++ /dev/null @@ -1,4 +0,0 @@ -No longer call ``__iter__`` twice when creating and executing a generator expression. -Creating a generator expression from a non-interable will raise only when the -generator expression is executed. -This brings the behavior of generator expressions in line with other generators. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-11-18-46-37.gh-issue-132386.pMBFTe.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-11-18-46-37.gh-issue-132386.pMBFTe.rst deleted file mode 100644 index 65ba7fc182b..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-11-18-46-37.gh-issue-132386.pMBFTe.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix crash when passing a dict subclass as the ``globals`` parameter to -:func:`exec`. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-11-22-01-07.gh-issue-131798.TTu_xH.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-11-22-01-07.gh-issue-131798.TTu_xH.rst deleted file mode 100644 index 4b23034fc3e..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-11-22-01-07.gh-issue-131798.TTu_xH.rst +++ /dev/null @@ -1,2 +0,0 @@ -Split ``CALL_TYPE_1`` into several uops allowing the JIT to remove some of -them. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-12-19-41-16.gh-issue-131798.JkSocg.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-12-19-41-16.gh-issue-131798.JkSocg.rst deleted file mode 100644 index 5a9c0cde35f..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-12-19-41-16.gh-issue-131798.JkSocg.rst +++ /dev/null @@ -1,2 +0,0 @@ -Use ``sym_new_type`` instead of ``sym_new_not_null`` for _BUILD_LIST, -_BUILD_SET, _BUILD_MAP diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-13-10-34-27.gh-issue-131927.otp80n.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-13-10-34-27.gh-issue-131927.otp80n.rst deleted file mode 100644 index 9aa940a10da..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-13-10-34-27.gh-issue-131927.otp80n.rst +++ /dev/null @@ -1,3 +0,0 @@ -Compiler warnings originating from the same module and line number are now -only emitted once, matching the behaviour of warnings emitted from user -code. This can also be configured with :mod:`warnings` filters. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-13-17-18-01.gh-issue-124476.fvGfQ7.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-13-17-18-01.gh-issue-124476.fvGfQ7.rst deleted file mode 100644 index be0ecee95de..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-13-17-18-01.gh-issue-124476.fvGfQ7.rst +++ /dev/null @@ -1 +0,0 @@ -Fix decoding from the locale encoding in the C.UTF-8 locale. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-15-10-09-49.gh-issue-132508.zVe3iI.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-15-10-09-49.gh-issue-132508.zVe3iI.rst deleted file mode 100644 index 1f4fe1d5f4e..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-15-10-09-49.gh-issue-132508.zVe3iI.rst +++ /dev/null @@ -1,3 +0,0 @@ -Uses tagged integers on the evaluation stack to represent the instruction -offsets when reraising an exception. This avoids the need to box the integer -which could fail in low memory conditions. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-17-11-40-13.gh-issue-100239.9RxIxY.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-17-11-40-13.gh-issue-100239.9RxIxY.rst deleted file mode 100644 index 87ff6836b82..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-17-11-40-13.gh-issue-100239.9RxIxY.rst +++ /dev/null @@ -1 +0,0 @@ -Add specialisation for ``BINARY_OP/SUBSCR`` on list and slice. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-17-16-20-03.gh-issue-132639.zRVYU3.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-17-16-20-03.gh-issue-132639.zRVYU3.rst deleted file mode 100644 index 8d5446c8f9a..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-17-16-20-03.gh-issue-132639.zRVYU3.rst +++ /dev/null @@ -1,2 +0,0 @@ -Added :c:func:`PyLong_AsNativeBytes`, :c:func:`PyLong_FromNativeBytes` and -:c:func:`PyLong_FromUnsignedNativeBytes` to the limited C API. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-16-22-47.gh-issue-132732.jgqhlF.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-16-22-47.gh-issue-132732.jgqhlF.rst new file mode 100644 index 00000000000..aadaf2169fd --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-16-22-47.gh-issue-132732.jgqhlF.rst @@ -0,0 +1 @@ +Automatically constant evaluate bytecode operations marked as pure in the JIT optimizer. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-17-16-46.gh-issue-132542.7T_TY_.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-17-16-46.gh-issue-132542.7T_TY_.rst new file mode 100644 index 00000000000..c69ce5efded --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-17-16-46.gh-issue-132542.7T_TY_.rst @@ -0,0 +1,2 @@ +Update :attr:`Thread.native_id <threading.Thread.native_id>` after +:manpage:`fork(2)` to ensure accuracy. Patch by Noam Cohen. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-18-07-34.gh-issue-132737.9mW1il.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-18-07-34.gh-issue-132737.9mW1il.rst deleted file mode 100644 index 0f010917825..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-18-07-34.gh-issue-132737.9mW1il.rst +++ /dev/null @@ -1 +0,0 @@ -Support profiling code that requires ``__main__``, such as :mod:`pickle`. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-22-59-24.gh-issue-132449.xjdw4p.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-22-59-24.gh-issue-132449.xjdw4p.rst deleted file mode 100644 index 05603abe64d..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-19-22-59-24.gh-issue-132449.xjdw4p.rst +++ /dev/null @@ -1,2 +0,0 @@ -Syntax errors that look like misspellings of Python keywords now provide a -helpful fix suggestion for the typo. Contributed by Pablo Galindo Salgado. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-20-10-37-39.gh-issue-132744.ArrCp8.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-20-10-37-39.gh-issue-132744.ArrCp8.rst deleted file mode 100644 index bcd72568c52..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-20-10-37-39.gh-issue-132744.ArrCp8.rst +++ /dev/null @@ -1 +0,0 @@ -Certain calls now check for runaway recursion and respect the system recursion limit. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-21-07-39-59.gh-issue-132747.L-cnej.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-21-07-39-59.gh-issue-132747.L-cnej.rst deleted file mode 100644 index c6d45b09f64..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-21-07-39-59.gh-issue-132747.L-cnej.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix a crash when calling :meth:`~object.__get__` of a :term:`method` with a -:const:`None` second argument. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-21-09-22-15.gh-issue-132479.CCe2sE.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-21-09-22-15.gh-issue-132479.CCe2sE.rst deleted file mode 100644 index 851bb4fb70e..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-21-09-22-15.gh-issue-132479.CCe2sE.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix compiler crash in certain circumstances where multiple module-level -annotations include comprehensions and other nested scopes. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-22-15-37-05.gh-issue-132661.XE_A42.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-22-15-37-05.gh-issue-132661.XE_A42.rst deleted file mode 100644 index 666e8de943b..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-22-15-37-05.gh-issue-132661.XE_A42.rst +++ /dev/null @@ -1,3 +0,0 @@ -Implement :pep:`750` (Template Strings). Add new syntax for t-strings and -implement new internal :class:`!string.templatelib.Template` and -:class:`!string.templatelib.Interpolation` types. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-22-16-38-43.gh-issue-132713.mBWTSZ.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-22-16-38-43.gh-issue-132713.mBWTSZ.rst deleted file mode 100644 index 877b42374a3..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-22-16-38-43.gh-issue-132713.mBWTSZ.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix ``repr(list)`` race condition: hold a strong reference to the item while -calling ``repr(item)``. Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-22-19-00-03.gh-issue-131591.CdEqBr.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-22-19-00-03.gh-issue-131591.CdEqBr.rst deleted file mode 100644 index e237649e592..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-22-19-00-03.gh-issue-131591.CdEqBr.rst +++ /dev/null @@ -1 +0,0 @@ -Reset any :pep:`768` remote debugging pending call in children after :func:`os.fork` calls. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-23-11-34-39.gh-issue-132825._yv0uL.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-23-11-34-39.gh-issue-132825._yv0uL.rst deleted file mode 100644 index d751837c44a..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-23-11-34-39.gh-issue-132825._yv0uL.rst +++ /dev/null @@ -1,2 +0,0 @@ -Enhance unhashable key/element error messages for :class:`dict` and -:class:`set`. Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-23-20-42-55.gh-issue-131798.wVQ1Gt.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-23-20-42-55.gh-issue-131798.wVQ1Gt.rst deleted file mode 100644 index 71d081f7062..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-23-20-42-55.gh-issue-131798.wVQ1Gt.rst +++ /dev/null @@ -1,2 +0,0 @@ -Split ``CALL_STR_1`` into several uops allowing the JIT to remove some of -them. Patch by Tomas Roun diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-23-20-54-17.gh-issue-131798.XYlp09.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-23-20-54-17.gh-issue-131798.XYlp09.rst deleted file mode 100644 index d7db951433e..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-23-20-54-17.gh-issue-131798.XYlp09.rst +++ /dev/null @@ -1,2 +0,0 @@ -Split ``CALL_TUPLE_1`` into several uops allowing the JIT to remove some of -them. Patch by Tomas Roun diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-25-14-56-45.gh-issue-131798.NpcKub.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-25-14-56-45.gh-issue-131798.NpcKub.rst deleted file mode 100644 index 8214870284e..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-25-14-56-45.gh-issue-131798.NpcKub.rst +++ /dev/null @@ -1 +0,0 @@ -Allow the JIT to remove int guards after ``_CALL_LEN`` by setting the return type to int. Patch by Diego Russo diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-08-49-05.gh-issue-132952.ifvP10.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-08-49-05.gh-issue-132952.ifvP10.rst deleted file mode 100644 index 2792ce35c15..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-08-49-05.gh-issue-132952.ifvP10.rst +++ /dev/null @@ -1,4 +0,0 @@ -Speed up startup with the ``-S`` argument by importing the -private ``_io`` module instead of :mod:`io`. This fixes a performance -regression introduced earlier in Python 3.14 development and restores performance -to the level of Python 3.13. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-13-57-13.gh-issue-131798.Gt8CGE.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-13-57-13.gh-issue-131798.Gt8CGE.rst deleted file mode 100644 index f4049240f7d..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-13-57-13.gh-issue-131798.Gt8CGE.rst +++ /dev/null @@ -1,2 +0,0 @@ -Propagate the return type of ``_BINARY_OP_SUBSCR_TUPLE_INT`` in JIT. Patch -by Tomas Roun diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-17-50-01.gh-issue-131798.XiOgw5.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-17-50-01.gh-issue-131798.XiOgw5.rst new file mode 100644 index 00000000000..45ab1bea6b1 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-17-50-01.gh-issue-131798.XiOgw5.rst @@ -0,0 +1,2 @@ +Narrow the return type and constant-evaluate ``CALL_ISINSTANCE`` for a +subset of known values in the JIT. Patch by Tomas Roun diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-17-50-47.gh-issue-132942.aEEZvZ.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-17-50-47.gh-issue-132942.aEEZvZ.rst deleted file mode 100644 index 9b7cf551618..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-17-50-47.gh-issue-132942.aEEZvZ.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix two races in the type lookup cache. This affected the free-threaded -build and could cause crashes (apparently quite difficult to trigger). diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-18-43-31.gh-issue-131798.FsIypo.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-18-43-31.gh-issue-131798.FsIypo.rst deleted file mode 100644 index a252d2b69fc..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-26-18-43-31.gh-issue-131798.FsIypo.rst +++ /dev/null @@ -1,2 +0,0 @@ -Use ``sym_new_type`` instead of ``sym_new_not_null`` for _BUILD_STRING, -_BUILD_SET diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-30-13-09-20.gh-issue-133194.25_G5c.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-30-13-09-20.gh-issue-133194.25_G5c.rst deleted file mode 100644 index fa597db114c..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-30-13-09-20.gh-issue-133194.25_G5c.rst +++ /dev/null @@ -1,2 +0,0 @@ -:func:`ast.parse` will no longer parse new :pep:`758` syntax with older -*feature_version* passed. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-30-14-13-01.gh-issue-132554.GqQaUp.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-30-14-13-01.gh-issue-132554.GqQaUp.rst new file mode 100644 index 00000000000..bfe2d633309 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-30-14-13-01.gh-issue-132554.GqQaUp.rst @@ -0,0 +1,4 @@ +Change iteration to use "virtual iterators" for sequences. Instead of +creating an iterator, a tagged integer representing the next index is pushed +to the stack above the iterable. For non-sequence iterators, ``NULL`` is +pushed. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-01-11-06-29.gh-issue-133197.BHjfh4.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-01-11-06-29.gh-issue-133197.BHjfh4.rst deleted file mode 100644 index 009bc376053..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-01-11-06-29.gh-issue-133197.BHjfh4.rst +++ /dev/null @@ -1,2 +0,0 @@ -Improve :exc:`SyntaxError` error messages for incompatible string / bytes -prefixes. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-13-36-01.gh-issue-131798.U4_QEJ.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-13-36-01.gh-issue-131798.U4_QEJ.rst new file mode 100644 index 00000000000..ca8eb999ae5 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-13-36-01.gh-issue-131798.U4_QEJ.rst @@ -0,0 +1,2 @@ +Split ``CALL_ISINSTANCE`` into several uops, allowing the JIT to remove some +of them. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-22-31-53.gh-issue-131798.fQ0ato.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-22-31-53.gh-issue-131798.fQ0ato.rst new file mode 100644 index 00000000000..f322d43b30a --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-22-31-53.gh-issue-131798.fQ0ato.rst @@ -0,0 +1,2 @@ +Allow the JIT to remove int guards after ``_GET_LEN`` by setting the return +type to int. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-06-15-01-41.gh-issue-133516.RqWVf2.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-06-15-01-41.gh-issue-133516.RqWVf2.rst new file mode 100644 index 00000000000..b93ba11f932 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-06-15-01-41.gh-issue-133516.RqWVf2.rst @@ -0,0 +1,2 @@ +Raise :exc:`ValueError` when constants ``True``, ``False`` or ``None`` are +used as an identifier after NFKC normalization. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-07-23-26-53.gh-issue-133541.bHIC55.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-07-23-26-53.gh-issue-133541.bHIC55.rst new file mode 100644 index 00000000000..4f4cd847fa5 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-07-23-26-53.gh-issue-133541.bHIC55.rst @@ -0,0 +1,2 @@ +Inconsistent indentation in user input crashed the new REPL when syntax +highlighting was active. This is now fixed. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-08-13-48-02.gh-issue-132762.tKbygC.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-08-13-48-02.gh-issue-132762.tKbygC.rst new file mode 100644 index 00000000000..80b830ebd78 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-08-13-48-02.gh-issue-132762.tKbygC.rst @@ -0,0 +1 @@ +:meth:`~dict.fromkeys` no longer loops forever when adding a small set of keys to a large base dict. Patch by Angela Liss. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-09-18-11-21.gh-issue-133778.pWEV3t.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-09-18-11-21.gh-issue-133778.pWEV3t.rst new file mode 100644 index 00000000000..6eb6881213c --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-09-18-11-21.gh-issue-133778.pWEV3t.rst @@ -0,0 +1,2 @@ +Fix bug where assigning to the :attr:`~type.__annotations__` attributes of +classes defined under ``from __future__ import annotations`` had no effect. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-10-17-12-27.gh-issue-133703.bVM-re.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-10-17-12-27.gh-issue-133703.bVM-re.rst new file mode 100644 index 00000000000..05bf6103314 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-10-17-12-27.gh-issue-133703.bVM-re.rst @@ -0,0 +1 @@ +Fix hashtable in dict can be bigger than intended in some situations. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-11-13-40-42.gh-issue-133886.ryBAyo.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-11-13-40-42.gh-issue-133886.ryBAyo.rst new file mode 100644 index 00000000000..fd1020f05d6 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-11-13-40-42.gh-issue-133886.ryBAyo.rst @@ -0,0 +1,2 @@ +Fix :func:`sys.remote_exec` for non-ASCII paths in non-UTF-8 locales and +non-UTF-8 paths in UTF-8 locales. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-15-11-38-16.gh-issue-133999.uBZ8uS.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-15-11-38-16.gh-issue-133999.uBZ8uS.rst new file mode 100644 index 00000000000..7d9c49688c3 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-15-11-38-16.gh-issue-133999.uBZ8uS.rst @@ -0,0 +1,2 @@ +Fix :exc:`SyntaxError` regression in :keyword:`except` parsing after +:gh:`123440`. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-16-09-06-38.gh-issue-134036.st2e-B.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-16-09-06-38.gh-issue-134036.st2e-B.rst new file mode 100644 index 00000000000..176aab1c93a --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-16-09-06-38.gh-issue-134036.st2e-B.rst @@ -0,0 +1,2 @@ +Improve :exc:`SyntaxError` message when using invalid :keyword:`raise` +statements. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-16-17-25-52.gh-issue-134100.5-FbLK.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-16-17-25-52.gh-issue-134100.5-FbLK.rst new file mode 100644 index 00000000000..d672347f9ad --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-16-17-25-52.gh-issue-134100.5-FbLK.rst @@ -0,0 +1,2 @@ +Fix a use-after-free bug that occurs when an imported module isn't +in :data:`sys.modules` after its initial import. Patch by Nico-Posada. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-16-20-59-12.gh-issue-134119.w8expI.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-16-20-59-12.gh-issue-134119.w8expI.rst new file mode 100644 index 00000000000..754e8166285 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-16-20-59-12.gh-issue-134119.w8expI.rst @@ -0,0 +1,2 @@ +Fix crash when calling :func:`next` on an exhausted template string iterator. +Patch by Jelle Zijlstra. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-17-20-44-51.gh-issue-134158.ewLNLp.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-17-20-44-51.gh-issue-134158.ewLNLp.rst new file mode 100644 index 00000000000..7b8bab739c3 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-17-20-44-51.gh-issue-134158.ewLNLp.rst @@ -0,0 +1 @@ +Fix coloring of double braces in f-strings and t-strings in the :term:`REPL`. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-18-14-33-23.gh-issue-69605.ZMO49F.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-18-14-33-23.gh-issue-69605.ZMO49F.rst new file mode 100644 index 00000000000..7b7275fee69 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-18-14-33-23.gh-issue-69605.ZMO49F.rst @@ -0,0 +1,2 @@ +When auto-completing an import in the :term:`REPL`, finding no candidates +now issues no suggestion, rather than suggestions from the current namespace. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-19-15-15-58.gh-issue-131798.PCP71j.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-19-15-15-58.gh-issue-131798.PCP71j.rst new file mode 100644 index 00000000000..c816a0afad4 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-19-15-15-58.gh-issue-131798.PCP71j.rst @@ -0,0 +1 @@ +Split ``CALL_LIST_APPEND`` into several uops. Patch by Diego Russo. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-19-20-52-53.gh-issue-134268.HPKX1e.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-19-20-52-53.gh-issue-134268.HPKX1e.rst new file mode 100644 index 00000000000..98d770cf054 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-19-20-52-53.gh-issue-134268.HPKX1e.rst @@ -0,0 +1,2 @@ +Add ``_POP_CALL_TWO_LOAD_CONST_INLINE_BORROW`` and use it to further +optimize ``CALL_ISINSTANCE``. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-20-13-58-18.gh-issue-131798.hG8xBw.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-20-13-58-18.gh-issue-131798.hG8xBw.rst new file mode 100644 index 00000000000..c490ecf1560 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-20-13-58-18.gh-issue-131798.hG8xBw.rst @@ -0,0 +1 @@ +Improve the JIT's ability to narrow unknown classes to constant values. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-20-14-41-50.gh-issue-128066.qzzGfv.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-20-14-41-50.gh-issue-128066.qzzGfv.rst new file mode 100644 index 00000000000..f7819027685 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-20-14-41-50.gh-issue-128066.qzzGfv.rst @@ -0,0 +1,3 @@ +Fixes an edge case where PyREPL improperly threw an error when Python is +invoked on a read only filesystem while trying to write history file +entries. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-20-23-32-11.gh-issue-131798.G9ZQZw.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-20-23-32-11.gh-issue-131798.G9ZQZw.rst new file mode 100644 index 00000000000..8eb8782037a --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-20-23-32-11.gh-issue-131798.G9ZQZw.rst @@ -0,0 +1,2 @@ +Improve the JIT's ability to optimize away cached class attribute and method +loads. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-21-13-57-26.gh-issue-131798.QwS5Bb.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-21-13-57-26.gh-issue-131798.QwS5Bb.rst new file mode 100644 index 00000000000..f873bbfb4dc --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-21-13-57-26.gh-issue-131798.QwS5Bb.rst @@ -0,0 +1 @@ +JIT: replace ``_LOAD_SMALL_INT`` with ``_LOAD_CONST_INLINE_BORROW`` diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-21-15-14-32.gh-issue-130397.aG6EON.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-21-15-14-32.gh-issue-130397.aG6EON.rst new file mode 100644 index 00000000000..34a2f4d1278 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-21-15-14-32.gh-issue-130397.aG6EON.rst @@ -0,0 +1,3 @@ +Remove special-casing for C stack depth limits for WASI. Due to +WebAssembly's built-in stack protection this does not pose a security +concern. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-21-18-02-56.gh-issue-127960.W3J_2X.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-21-18-02-56.gh-issue-127960.W3J_2X.rst new file mode 100644 index 00000000000..730d8a5af51 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-21-18-02-56.gh-issue-127960.W3J_2X.rst @@ -0,0 +1,3 @@ +PyREPL interactive shell no longer starts with ``__package__`` and +``__file__`` global names set to ``_pyrepl`` package internals. Contributed +by Yuichiro Tachibana. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-22-14-48-19.gh-issue-134381.2BXhth.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-22-14-48-19.gh-issue-134381.2BXhth.rst new file mode 100644 index 00000000000..aa8900296ae --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-22-14-48-19.gh-issue-134381.2BXhth.rst @@ -0,0 +1 @@ +Fix :exc:`RuntimeError` when using a not-started :class:`threading.Thread` after calling :func:`os.fork` diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-22-17-49-39.gh-issue-131798.U6ZmFm.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-22-17-49-39.gh-issue-131798.U6ZmFm.rst new file mode 100644 index 00000000000..fdb6a2fe0b3 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-22-17-49-39.gh-issue-131798.U6ZmFm.rst @@ -0,0 +1 @@ +Optimize ``_POP_CALL_TWO_LOAD_CONST_INLINE_BORROW``. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-23-14-54-07.gh-issue-134584.y-WDjf.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-23-14-54-07.gh-issue-134584.y-WDjf.rst new file mode 100644 index 00000000000..5f9e1553ae7 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-23-14-54-07.gh-issue-134584.y-WDjf.rst @@ -0,0 +1 @@ +Add a reference count elimination pass to the JIT compiler. Patch by Ken Jin. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-25-19-32-15.gh-issue-131798.f5h8aI.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-25-19-32-15.gh-issue-131798.f5h8aI.rst new file mode 100644 index 00000000000..6ecbfb8d9cf --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-25-19-32-15.gh-issue-131798.f5h8aI.rst @@ -0,0 +1 @@ +Make the JIT optimizer understand that slicing a string/list/tuple returns the same type. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-26-15-55-50.gh-issue-133912.-xAguL.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-26-15-55-50.gh-issue-133912.-xAguL.rst new file mode 100644 index 00000000000..2118f3d0c35 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-26-15-55-50.gh-issue-133912.-xAguL.rst @@ -0,0 +1,2 @@ +Fix the C API function ``PyObject_GenericSetDict`` to handle extension +classes with inline values. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-27-18-59-54.gh-issue-134679.FWPBu6.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-27-18-59-54.gh-issue-134679.FWPBu6.rst new file mode 100644 index 00000000000..22f1282fea1 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-27-18-59-54.gh-issue-134679.FWPBu6.rst @@ -0,0 +1,2 @@ +Fix crash in the :term:`free threading` build's QSBR code that could occur +when changing an object's ``__dict__`` attribute. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-27-20-21-34.gh-issue-131798.b32zkl.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-27-20-21-34.gh-issue-131798.b32zkl.rst new file mode 100644 index 00000000000..ed4b31bd7be --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-27-20-21-34.gh-issue-131798.b32zkl.rst @@ -0,0 +1 @@ +Allow the JIT to remove unnecessary ``_ITER_CHECK_TUPLE`` ops. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-27-20-29-00.gh-issue-132617.EmUfQQ.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-27-20-29-00.gh-issue-132617.EmUfQQ.rst new file mode 100644 index 00000000000..53aef541e64 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-27-20-29-00.gh-issue-132617.EmUfQQ.rst @@ -0,0 +1,3 @@ +Fix :meth:`dict.update` modification check that could incorrectly raise a +"dict mutated during update" error when a different dictionary was modified +that happens to share the same underlying keys object. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-28-23-58-50.gh-issue-117852.BO9g7z.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-28-23-58-50.gh-issue-117852.BO9g7z.rst new file mode 100644 index 00000000000..fc71cd21a36 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-28-23-58-50.gh-issue-117852.BO9g7z.rst @@ -0,0 +1 @@ +Fix argument checking of :meth:`~agen.athrow`. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-30-15-56-19.gh-issue-134908.3a7PxM.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-30-15-56-19.gh-issue-134908.3a7PxM.rst new file mode 100644 index 00000000000..3178f0aaf88 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-30-15-56-19.gh-issue-134908.3a7PxM.rst @@ -0,0 +1 @@ +Fix crash when iterating over lines in a text file on the :term:`free threaded <free threading>` build. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-30-18-09-54.gh-issue-134889.Ic9UM-.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-30-18-09-54.gh-issue-134889.Ic9UM-.rst new file mode 100644 index 00000000000..3b86134bf16 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-30-18-09-54.gh-issue-134889.Ic9UM-.rst @@ -0,0 +1,2 @@ +Fix handling of a few opcodes that leave operands on the stack when +optimizing ``LOAD_FAST``. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-31-10-26-46.gh-issue-134876.8mBGJI.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-31-10-26-46.gh-issue-134876.8mBGJI.rst new file mode 100644 index 00000000000..1da76561469 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-31-10-26-46.gh-issue-134876.8mBGJI.rst @@ -0,0 +1,2 @@ +Add support to :pep:`768` remote debugging for Linux kernels which don't +have CONFIG_CROSS_MEMORY_ATTACH configured. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-31-19-24-54.gh-issue-134280.NDVbzY.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-31-19-24-54.gh-issue-134280.NDVbzY.rst new file mode 100644 index 00000000000..f8227216909 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-31-19-24-54.gh-issue-134280.NDVbzY.rst @@ -0,0 +1,2 @@ +Disable constant folding for ``~`` with a boolean argument. +This moves the deprecation warning from compile time to runtime. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-02-13-57-40.gh-issue-116738.ycJsL8.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-02-13-57-40.gh-issue-116738.ycJsL8.rst new file mode 100644 index 00000000000..506eefdb21a --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-02-13-57-40.gh-issue-116738.ycJsL8.rst @@ -0,0 +1 @@ +Make methods in :mod:`heapq` thread-safe on the :term:`free threaded <free threading>` build. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-02-20-13-37.gh-issue-131798.JQRFvR.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-02-20-13-37.gh-issue-131798.JQRFvR.rst new file mode 100644 index 00000000000..0e68c793e5e --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-02-20-13-37.gh-issue-131798.JQRFvR.rst @@ -0,0 +1 @@ +Optimize ``_CHECK_METHOD_VERSION`` into ``_CHECK_FUNCTION_VERSION_INLINE`` in JIT-compiled code. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-03-21-06-22.gh-issue-133136.Usnvri.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-03-21-06-22.gh-issue-133136.Usnvri.rst new file mode 100644 index 00000000000..a9501c13c95 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-03-21-06-22.gh-issue-133136.Usnvri.rst @@ -0,0 +1,2 @@ +Limit excess memory usage in the :term:`free threading` build when a +large dictionary or list is resized and accessed by multiple threads. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-05-21-58-30.gh-issue-131798.nt5Ab7.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-05-21-58-30.gh-issue-131798.nt5Ab7.rst new file mode 100644 index 00000000000..e4b5f610353 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-05-21-58-30.gh-issue-131798.nt5Ab7.rst @@ -0,0 +1,2 @@ +Optimize away ``_CALL_TYPE_1`` in the JIT when the return type is known. +Patch by Tomas Roun diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-06-01-09-44.gh-issue-131798.1SuxO9.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-06-01-09-44.gh-issue-131798.1SuxO9.rst new file mode 100644 index 00000000000..a3775262306 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-06-01-09-44.gh-issue-131798.1SuxO9.rst @@ -0,0 +1 @@ +Optimize ``_UNARY_INVERT`` in JIT-compiled code. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-06-19-17-22.gh-issue-131798.XoV8Eb.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-06-19-17-22.gh-issue-131798.XoV8Eb.rst new file mode 100644 index 00000000000..6a9d9c683f9 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-06-19-17-22.gh-issue-131798.XoV8Eb.rst @@ -0,0 +1 @@ +Optimize ``_UNARY_NEGATIVE`` in JIT-compiled code. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-08-14-24-29.gh-issue-131798.qfw91T.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-08-14-24-29.gh-issue-131798.qfw91T.rst new file mode 100644 index 00000000000..7965169d46e --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-08-14-24-29.gh-issue-131798.qfw91T.rst @@ -0,0 +1 @@ +Optimize _CALL_LEN in the JIT when the length is known. Patch by Tomas Roun diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-09-23-57-37.gh-issue-130077.MHknDB.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-09-23-57-37.gh-issue-130077.MHknDB.rst new file mode 100644 index 00000000000..a7d02426b6f --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-09-23-57-37.gh-issue-130077.MHknDB.rst @@ -0,0 +1,2 @@ +Properly raise custom syntax errors when incorrect syntax containing names +that are prefixes of soft keywords is encountered. Patch by Pablo Galindo. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-11-15-08-10.gh-issue-127319.OVGFSZ.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-11-15-08-10.gh-issue-127319.OVGFSZ.rst new file mode 100644 index 00000000000..d90153c9684 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-11-15-08-10.gh-issue-127319.OVGFSZ.rst @@ -0,0 +1,3 @@ +Set the ``allow_reuse_port`` class variable to ``False`` on the XMLRPC, +logging, and HTTP servers. This matches the behavior in prior Python +releases, which is to not allow port reuse. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-12-11-19-52.gh-issue-135422.F6yQi6.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-12-11-19-52.gh-issue-135422.F6yQi6.rst new file mode 100644 index 00000000000..bb0f178f91a --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-12-11-19-52.gh-issue-135422.F6yQi6.rst @@ -0,0 +1 @@ +Fix regression in :exc:`SyntaxError` messages after :gh:`134036`. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-12-18-12-42.gh-issue-135371.R_YUtR.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-12-18-12-42.gh-issue-135371.R_YUtR.rst new file mode 100644 index 00000000000..9f2e825e57b --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-12-18-12-42.gh-issue-135371.R_YUtR.rst @@ -0,0 +1,4 @@ +Fixed :mod:`asyncio` debugging tools to properly display internal coroutine +call stacks alongside external task dependencies. The ``python -m asyncio +ps`` and ``python -m asyncio pstree`` commands now show complete execution +context. Patch by Pablo Galindo. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-13-16-05-24.gh-issue-135474.67nOl3.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-13-16-05-24.gh-issue-135474.67nOl3.rst new file mode 100644 index 00000000000..716d9b78748 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-13-16-05-24.gh-issue-135474.67nOl3.rst @@ -0,0 +1 @@ +Specialize integer operations only on compact integers. This is a CPython internal change. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-14-01-01-14.gh-issue-135496.ER0Me3.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-14-01-01-14.gh-issue-135496.ER0Me3.rst new file mode 100644 index 00000000000..03b1f4590c5 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-14-01-01-14.gh-issue-135496.ER0Me3.rst @@ -0,0 +1 @@ +Fix typo in the f-string conversion type error ("exclamanation" -> "exclamation"). diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-16-02-31-42.gh-issue-135543.6b0HOF.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-16-02-31-42.gh-issue-135543.6b0HOF.rst new file mode 100644 index 00000000000..6efe2a47bac --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-16-02-31-42.gh-issue-135543.6b0HOF.rst @@ -0,0 +1,2 @@ +Emit ``sys.remote_exec`` audit event when :func:`sys.remote_exec` is called +and migrate ``remote_debugger_script`` to ``cpython.remote_debugger_script``. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-16-03-56-15.gh-issue-135551.hRTQO-.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-16-03-56-15.gh-issue-135551.hRTQO-.rst new file mode 100644 index 00000000000..22dda2a3e97 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-16-03-56-15.gh-issue-135551.hRTQO-.rst @@ -0,0 +1 @@ +Sorting randomly ordered lists will often run a bit faster, thanks to a new scheme for picking minimum run lengths from Stefan Pochmann, which arranges for the merge tree to be as evenly balanced as is possible. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-17-12-50-48.gh-issue-135608.PnHckD.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-17-12-50-48.gh-issue-135608.PnHckD.rst new file mode 100644 index 00000000000..a65a0c85fa6 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-17-12-50-48.gh-issue-135608.PnHckD.rst @@ -0,0 +1 @@ +Fix a crash in the JIT involving attributes of modules. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-17-22-34-58.gh-issue-135607.ucsLVu.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-17-22-34-58.gh-issue-135607.ucsLVu.rst new file mode 100644 index 00000000000..859259a9ace --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-17-22-34-58.gh-issue-135607.ucsLVu.rst @@ -0,0 +1,2 @@ +Fix potential :mod:`weakref` races in an object's destructor on the :term:`free threaded <free +threading>` build. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-18-12-19-13.gh-issue-135379.TCvGpj.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-18-12-19-13.gh-issue-135379.TCvGpj.rst new file mode 100644 index 00000000000..089d00c77da --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-18-12-19-13.gh-issue-135379.TCvGpj.rst @@ -0,0 +1,3 @@ +Changes specialization of ``BINARY_OP`` for ints to only specialize for +"compact" ints. This streamlines the fast path at the cost of fewer +specializations when very large integers are used. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-18-16-45-36.gh-issue-135106.cpl6Aq.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-18-16-45-36.gh-issue-135106.cpl6Aq.rst new file mode 100644 index 00000000000..b6e953a7719 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-18-16-45-36.gh-issue-135106.cpl6Aq.rst @@ -0,0 +1,2 @@ +Restrict the trashcan mechanism to GC'ed objects and untrack them while in +the trashcan to prevent the GC and trashcan mechanisms conflicting. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-20-14-50-44.gh-issue-134584.3CJdAI.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-20-14-50-44.gh-issue-134584.3CJdAI.rst new file mode 100644 index 00000000000..715ac7dc925 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-20-14-50-44.gh-issue-134584.3CJdAI.rst @@ -0,0 +1 @@ +Specialize :opcode:`POP_TOP` in the JIT compiler by specializing for reference lifetime and type. This will also enable easier top of stack caching in the JIT compiler. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-23-18-08-32.gh-issue-135871.50C528.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-23-18-08-32.gh-issue-135871.50C528.rst new file mode 100644 index 00000000000..ce29ddecefe --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-23-18-08-32.gh-issue-135871.50C528.rst @@ -0,0 +1,2 @@ +Non-blocking mutex lock attempts now return immediately when the lock is busy +instead of briefly spinning in the :term:`free threading` build. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-24-06-41-47.gh-issue-129958.EaJuS0.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-24-06-41-47.gh-issue-129958.EaJuS0.rst new file mode 100644 index 00000000000..70b3e99425d --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-24-06-41-47.gh-issue-129958.EaJuS0.rst @@ -0,0 +1,2 @@ +Differentiate between t-strings and f-strings in syntax error for newlines +in format specifiers of single-quoted interpolated strings. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-24-16-46-34.gh-issue-135904.78xfon.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-24-16-46-34.gh-issue-135904.78xfon.rst new file mode 100644 index 00000000000..ecbd8fda9a5 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-24-16-46-34.gh-issue-135904.78xfon.rst @@ -0,0 +1,2 @@ +Perform more aggressive control-flow optimizations on the machine code +templates emitted by the experimental JIT compiler. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-26-15-25-51.gh-issue-78465.MbDN8X.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-26-15-25-51.gh-issue-78465.MbDN8X.rst new file mode 100644 index 00000000000..99734d63c5d --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-26-15-25-51.gh-issue-78465.MbDN8X.rst @@ -0,0 +1,2 @@ +Fix error message for ``cls.__new__(cls, ...)`` where ``cls`` is not +instantiable builtin or extension type (with ``tp_new`` set to ``NULL``). diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-07-02-15-18-41.gh-issue-136203.Y934sC.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-07-02-15-18-41.gh-issue-136203.Y934sC.rst new file mode 100644 index 00000000000..5a622bab8b8 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-07-02-15-18-41.gh-issue-136203.Y934sC.rst @@ -0,0 +1,2 @@ +Improve :exc:`TypeError` error message, when richcomparing two +:class:`types.MappingProxyType` objects. diff --git a/Misc/NEWS.d/next/Documentation/2021-09-15-13-07-25.bpo-45210.RtGk7i.rst b/Misc/NEWS.d/next/Documentation/2021-09-15-13-07-25.bpo-45210.RtGk7i.rst new file mode 100644 index 00000000000..ce3eba154ba --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2021-09-15-13-07-25.bpo-45210.RtGk7i.rst @@ -0,0 +1,2 @@ +Document that error indicator may be set in tp_dealloc, and how to avoid +clobbering it. diff --git a/Misc/NEWS.d/next/Documentation/2024-10-08-10-44-14.gh-issue-125142.HVlHrs.rst b/Misc/NEWS.d/next/Documentation/2024-10-08-10-44-14.gh-issue-125142.HVlHrs.rst deleted file mode 100644 index 2340013f5de..00000000000 --- a/Misc/NEWS.d/next/Documentation/2024-10-08-10-44-14.gh-issue-125142.HVlHrs.rst +++ /dev/null @@ -1,2 +0,0 @@ -As part of the builtin help intro text, show the keyboard shortcuts for the -new, non-basic REPL (F1, F2, and F3). diff --git a/Misc/NEWS.d/next/Documentation/2025-06-10-17-02-06.gh-issue-135171.quHvts.rst b/Misc/NEWS.d/next/Documentation/2025-06-10-17-02-06.gh-issue-135171.quHvts.rst new file mode 100644 index 00000000000..129ff74189b --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2025-06-10-17-02-06.gh-issue-135171.quHvts.rst @@ -0,0 +1,2 @@ +Document that the :term:`iterator` for the leftmost :keyword:`!for` clause +in the generator expression is created immediately. diff --git a/Misc/NEWS.d/next/IDLE/2024-11-08-18-07-13.gh-issue-112936.1Q2RcP.rst b/Misc/NEWS.d/next/IDLE/2024-11-08-18-07-13.gh-issue-112936.1Q2RcP.rst deleted file mode 100644 index 8536e38b54a..00000000000 --- a/Misc/NEWS.d/next/IDLE/2024-11-08-18-07-13.gh-issue-112936.1Q2RcP.rst +++ /dev/null @@ -1 +0,0 @@ -fix IDLE: no Shell menu item in single-process mode. diff --git a/Misc/NEWS.d/next/Library/2017-12-30-18-21-00.bpo-28494.Dt_Wks.rst b/Misc/NEWS.d/next/Library/2017-12-30-18-21-00.bpo-28494.Dt_Wks.rst new file mode 100644 index 00000000000..0c518983770 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-12-30-18-21-00.bpo-28494.Dt_Wks.rst @@ -0,0 +1 @@ +Improve Zip file validation false positive rate in :func:`zipfile.is_zipfile`. diff --git a/Misc/NEWS.d/next/Library/2019-09-10-09-28-52.gh-issue-75223.VyAJS9.rst b/Misc/NEWS.d/next/Library/2019-09-10-09-28-52.gh-issue-75223.VyAJS9.rst deleted file mode 100644 index d3c8d1b747e..00000000000 --- a/Misc/NEWS.d/next/Library/2019-09-10-09-28-52.gh-issue-75223.VyAJS9.rst +++ /dev/null @@ -1,2 +0,0 @@ -Deprecate undotted extensions in :meth:`mimetypes.MimeTypes.add_type`. -Patch by Hugo van Kemenade. diff --git a/Misc/NEWS.d/next/Library/2021-12-18-12-46-20.bpo-45959.vPlr3P.rst b/Misc/NEWS.d/next/Library/2021-12-18-12-46-20.bpo-45959.vPlr3P.rst new file mode 100644 index 00000000000..bcafa64d263 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-12-18-12-46-20.bpo-45959.vPlr3P.rst @@ -0,0 +1 @@ +:mod:`pprint` can now pretty-print dict views. diff --git a/Misc/NEWS.d/next/Library/2022-07-24-20-56-32.gh-issue-69426.unccw7.rst b/Misc/NEWS.d/next/Library/2022-07-24-20-56-32.gh-issue-69426.unccw7.rst new file mode 100644 index 00000000000..d8c081390d0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-07-24-20-56-32.gh-issue-69426.unccw7.rst @@ -0,0 +1,3 @@ +Fix :class:`html.parser.HTMLParser` to not unescape character entities in +attribute values if they are followed by an ASCII alphanumeric or an equals +sign. diff --git a/Misc/NEWS.d/next/Library/2023-02-13-21-41-34.gh-issue-86155.ppIGSC.rst b/Misc/NEWS.d/next/Library/2023-02-13-21-41-34.gh-issue-86155.ppIGSC.rst new file mode 100644 index 00000000000..bb85481b229 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-02-13-21-41-34.gh-issue-86155.ppIGSC.rst @@ -0,0 +1,2 @@ +:meth:`html.parser.HTMLParser.close` no longer loses data when the +``<script>`` tag is not closed. Patch by Waylan Limberg. diff --git a/Misc/NEWS.d/next/Library/2023-02-13-21-56-38.gh-issue-62824.CBZzX3.rst b/Misc/NEWS.d/next/Library/2023-02-13-21-56-38.gh-issue-62824.CBZzX3.rst new file mode 100644 index 00000000000..1fe4e47c9ec --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-02-13-21-56-38.gh-issue-62824.CBZzX3.rst @@ -0,0 +1 @@ +Fix aliases for ``iso8859_8`` encoding. Patch by Dave Goncalves. diff --git a/Misc/NEWS.d/next/Library/2023-12-29-09-44-41.gh-issue-113539.YDkv9O.rst b/Misc/NEWS.d/next/Library/2023-12-29-09-44-41.gh-issue-113539.YDkv9O.rst deleted file mode 100644 index c2c3a2d17c1..00000000000 --- a/Misc/NEWS.d/next/Library/2023-12-29-09-44-41.gh-issue-113539.YDkv9O.rst +++ /dev/null @@ -1,6 +0,0 @@ -:mod:`webbrowser`: Names in the :envvar:`BROWSER` environment variable can now -refer to already registered web browsers, instead of always generating a new -browser command. - -This makes it possible to set :envvar:`BROWSER` to the value of one of the -supported browsers on macOS. diff --git a/Misc/NEWS.d/next/Library/2024-06-06-17-49-07.gh-issue-120170.DUxhmT.rst b/Misc/NEWS.d/next/Library/2024-06-06-17-49-07.gh-issue-120170.DUxhmT.rst new file mode 100644 index 00000000000..ce7d874aa20 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-06-06-17-49-07.gh-issue-120170.DUxhmT.rst @@ -0,0 +1,3 @@ +Fix an issue in the :mod:`!_pickle` extension module in which importing +:mod:`multiprocessing` could change how pickle identifies which module an +object belongs to, potentially breaking the unpickling of those objects. diff --git a/Misc/NEWS.d/next/Library/2024-06-07-15-03-54.gh-issue-120220.NNxrr_.rst b/Misc/NEWS.d/next/Library/2024-06-07-15-03-54.gh-issue-120220.NNxrr_.rst deleted file mode 100644 index b60b9430728..00000000000 --- a/Misc/NEWS.d/next/Library/2024-06-07-15-03-54.gh-issue-120220.NNxrr_.rst +++ /dev/null @@ -1,3 +0,0 @@ -Deprecate the :class:`!tkinter.Variable` methods :meth:`!trace_variable`, -:meth:`!trace_vdelete` and :meth:`!trace_vinfo`. Methods :meth:`!trace_add`, -:meth:`!trace_remove` and :meth:`!trace_info` can be used instead. diff --git a/Misc/NEWS.d/next/Library/2024-07-19-07-16-50.gh-issue-53032.paXN3p.rst b/Misc/NEWS.d/next/Library/2024-07-19-07-16-50.gh-issue-53032.paXN3p.rst deleted file mode 100644 index 86c19bf660d..00000000000 --- a/Misc/NEWS.d/next/Library/2024-07-19-07-16-50.gh-issue-53032.paXN3p.rst +++ /dev/null @@ -1,3 +0,0 @@ -Expose :func:`decimal.IEEEContext` to support creation of contexts -corresponding to the IEEE 754 (2008) decimal interchange formats. -Patch by Sergey B Kirpichev. diff --git a/Misc/NEWS.d/next/Library/2024-07-23-17-08-41.gh-issue-122179.0jZm9h.rst b/Misc/NEWS.d/next/Library/2024-07-23-17-08-41.gh-issue-122179.0jZm9h.rst deleted file mode 100644 index 2b0678f31e8..00000000000 --- a/Misc/NEWS.d/next/Library/2024-07-23-17-08-41.gh-issue-122179.0jZm9h.rst +++ /dev/null @@ -1,3 +0,0 @@ -:func:`hashlib.file_digest` now raises :exc:`BlockingIOError` when no data -is available during non-blocking I/O. Before, it added spurious null bytes -to the digest. diff --git a/Misc/NEWS.d/next/Library/2024-10-22-16-21-55.gh-issue-125843.2ttzYo.rst b/Misc/NEWS.d/next/Library/2024-10-22-16-21-55.gh-issue-125843.2ttzYo.rst new file mode 100644 index 00000000000..ec8f3a75006 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-10-22-16-21-55.gh-issue-125843.2ttzYo.rst @@ -0,0 +1,2 @@ +If possible, indicate which :mod:`curses` C function or macro is responsible +for raising a :exc:`curses.error` exception. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2024-10-28-06-54-22.gh-issue-125028.GEY8Ws.rst b/Misc/NEWS.d/next/Library/2024-10-28-06-54-22.gh-issue-125028.GEY8Ws.rst new file mode 100644 index 00000000000..09ebee4d41b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-10-28-06-54-22.gh-issue-125028.GEY8Ws.rst @@ -0,0 +1 @@ +:data:`functools.Placeholder` cannot be passed to :func:`functools.partial` as a keyword argument. diff --git a/Misc/NEWS.d/next/Library/2024-11-14-21-17-48.gh-issue-126838.Yr5vKF.rst b/Misc/NEWS.d/next/Library/2024-11-14-21-17-48.gh-issue-126838.Yr5vKF.rst deleted file mode 100644 index 857cc359229..00000000000 --- a/Misc/NEWS.d/next/Library/2024-11-14-21-17-48.gh-issue-126838.Yr5vKF.rst +++ /dev/null @@ -1,5 +0,0 @@ -Fix issue where :func:`urllib.request.url2pathname` mishandled file URLs with -authorities. If an authority is present and resolves to ``localhost``, it is -now discarded. If an authority is present but *doesn't* resolve to -``localhost``, then on Windows a UNC path is returned (as before), and on -other platforms a :exc:`urllib.error.URLError` is now raised. diff --git a/Misc/NEWS.d/next/Library/2024-11-25-10-22-08.gh-issue-126883.MAEF7g.rst b/Misc/NEWS.d/next/Library/2024-11-25-10-22-08.gh-issue-126883.MAEF7g.rst new file mode 100644 index 00000000000..5e3fa39acf1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-11-25-10-22-08.gh-issue-126883.MAEF7g.rst @@ -0,0 +1,3 @@ +Add check that timezone fields are in range for +:meth:`datetime.datetime.fromisoformat` and +:meth:`datetime.time.fromisoformat`. Patch by Semyon Moroz. diff --git a/Misc/NEWS.d/next/Library/2024-11-29-13-06-52.gh-issue-127385.PErcyB.rst b/Misc/NEWS.d/next/Library/2024-11-29-13-06-52.gh-issue-127385.PErcyB.rst deleted file mode 100644 index 3770d586ba4..00000000000 --- a/Misc/NEWS.d/next/Library/2024-11-29-13-06-52.gh-issue-127385.PErcyB.rst +++ /dev/null @@ -1 +0,0 @@ -Add the ``F_DUPFD_QUERY`` constant to the :mod:`fcntl` module. diff --git a/Misc/NEWS.d/next/Library/2024-12-21-13-31-55.gh-issue-127604.etL5mf.rst b/Misc/NEWS.d/next/Library/2024-12-21-13-31-55.gh-issue-127604.etL5mf.rst deleted file mode 100644 index c4d2938a500..00000000000 --- a/Misc/NEWS.d/next/Library/2024-12-21-13-31-55.gh-issue-127604.etL5mf.rst +++ /dev/null @@ -1,3 +0,0 @@ -Add support for printing the C stack trace on systems that support it via -:func:`faulthandler.dump_c_stack` or via the *c_stack* argument in -:func:`faulthandler.enable`. diff --git a/Misc/NEWS.d/next/Library/2025-01-21-11-48-19.gh-issue-129027.w0vxzZ.rst b/Misc/NEWS.d/next/Library/2025-01-21-11-48-19.gh-issue-129027.w0vxzZ.rst deleted file mode 100644 index d2abf53bc0f..00000000000 --- a/Misc/NEWS.d/next/Library/2025-01-21-11-48-19.gh-issue-129027.w0vxzZ.rst +++ /dev/null @@ -1,2 +0,0 @@ -Raise :exc:`DeprecationWarning` for :func:`sys._clear_type_cache`. This function was deprecated in Python 3.13 -but it didn't raise a runtime warning. diff --git a/Misc/NEWS.d/next/Library/2025-02-06-11-23-51.gh-issue-129719.Of6rvb.rst b/Misc/NEWS.d/next/Library/2025-02-06-11-23-51.gh-issue-129719.Of6rvb.rst deleted file mode 100644 index 5e7a3e2f589..00000000000 --- a/Misc/NEWS.d/next/Library/2025-02-06-11-23-51.gh-issue-129719.Of6rvb.rst +++ /dev/null @@ -1 +0,0 @@ -Fix missing :data:`!socket.CAN_RAW_ERR_FILTER` constant in the socket module on Linux systems. It was missing since Python 3.11. diff --git a/Misc/NEWS.d/next/Library/2025-02-11-10-22-11.gh-issue-128384.jyWEkA.rst b/Misc/NEWS.d/next/Library/2025-02-11-10-22-11.gh-issue-128384.jyWEkA.rst deleted file mode 100644 index 011e25d8926..00000000000 --- a/Misc/NEWS.d/next/Library/2025-02-11-10-22-11.gh-issue-128384.jyWEkA.rst +++ /dev/null @@ -1,7 +0,0 @@ -Make :class:`warnings.catch_warnings` use a context variable for holding -the warning filtering state if the :data:`sys.flags.context_aware_warnings` -flag is set to true. This makes using the context manager thread-safe in -multi-threaded programs. The flag is true by default in free-threaded builds -and is otherwise false. The value of the flag can be overridden by the -the :option:`-X context_aware_warnings <-X>` command-line option or by the -:envvar:`PYTHON_CONTEXT_AWARE_WARNINGS` environment variable. diff --git a/Misc/NEWS.d/next/Library/2025-02-12-16-37-34.gh-issue-101410.0GInct.rst b/Misc/NEWS.d/next/Library/2025-02-12-16-37-34.gh-issue-101410.0GInct.rst deleted file mode 100644 index d91731c3dd9..00000000000 --- a/Misc/NEWS.d/next/Library/2025-02-12-16-37-34.gh-issue-101410.0GInct.rst +++ /dev/null @@ -1 +0,0 @@ -Added more detailed messages for domain errors in the :mod:`math` module. diff --git a/Misc/NEWS.d/next/Library/2025-02-16-06-25-01.gh-issue-130167.kUg7Rc.rst b/Misc/NEWS.d/next/Library/2025-02-16-06-25-01.gh-issue-130167.kUg7Rc.rst deleted file mode 100644 index 3d397084fc1..00000000000 --- a/Misc/NEWS.d/next/Library/2025-02-16-06-25-01.gh-issue-130167.kUg7Rc.rst +++ /dev/null @@ -1 +0,0 @@ -Improve speed of :func:`difflib.IS_LINE_JUNK`. Patch by Semyon Moroz. diff --git a/Misc/NEWS.d/next/Library/2025-02-21-15-46-43.gh-issue-130402.Rwu_KK.rst b/Misc/NEWS.d/next/Library/2025-02-21-15-46-43.gh-issue-130402.Rwu_KK.rst deleted file mode 100644 index b91d429f3f7..00000000000 --- a/Misc/NEWS.d/next/Library/2025-02-21-15-46-43.gh-issue-130402.Rwu_KK.rst +++ /dev/null @@ -1,2 +0,0 @@ -Joining running daemon threads during interpreter shutdown -now raises :exc:`PythonFinalizationError`. diff --git a/Misc/NEWS.d/next/Library/2025-02-22-13-07-06.gh-issue-130317.tnxd0I.rst b/Misc/NEWS.d/next/Library/2025-02-22-13-07-06.gh-issue-130317.tnxd0I.rst deleted file mode 100644 index ab69f8806bf..00000000000 --- a/Misc/NEWS.d/next/Library/2025-02-22-13-07-06.gh-issue-130317.tnxd0I.rst +++ /dev/null @@ -1,4 +0,0 @@ -Fix :c:func:`PyFloat_Pack2` and :c:func:`PyFloat_Unpack2` for NaN's with -payload. This corrects round-trip for :func:`struct.unpack` and -:func:`struct.pack` in case of the IEEE 754 binary16 "half precision" type. -Patch by Sergey B Kirpichev. diff --git a/Misc/NEWS.d/next/Library/2025-02-24-12-22-51.gh-issue-130482.p2DrrL.rst b/Misc/NEWS.d/next/Library/2025-02-24-12-22-51.gh-issue-130482.p2DrrL.rst deleted file mode 100644 index 38a1e81770f..00000000000 --- a/Misc/NEWS.d/next/Library/2025-02-24-12-22-51.gh-issue-130482.p2DrrL.rst +++ /dev/null @@ -1,2 +0,0 @@ -Add ability to specify name for :class:`!tkinter.OptionMenu` and
-:class:`!tkinter.ttk.OptionMenu`. diff --git a/Misc/NEWS.d/next/Library/2025-02-27-14-25-01.gh-issue-130631.dmZcZM.rst b/Misc/NEWS.d/next/Library/2025-02-27-14-25-01.gh-issue-130631.dmZcZM.rst deleted file mode 100644 index c9dc9ba8787..00000000000 --- a/Misc/NEWS.d/next/Library/2025-02-27-14-25-01.gh-issue-130631.dmZcZM.rst +++ /dev/null @@ -1,3 +0,0 @@ -:func:`!http.cookiejar.join_header_words` is now more similar to the original -Perl version. It now quotes the same set of characters and always quote -values that end with ``"\n"``. diff --git a/Misc/NEWS.d/next/Library/2025-03-01-12-37-08.gh-issue-129098.eJ2-6L.rst b/Misc/NEWS.d/next/Library/2025-03-01-12-37-08.gh-issue-129098.eJ2-6L.rst deleted file mode 100644 index 8ac9082a7b4..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-01-12-37-08.gh-issue-129098.eJ2-6L.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix REPL traceback reporting when using :func:`compile` with an inexisting -file. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-03-07-17-47-32.gh-issue-130941.7_GvhW.rst b/Misc/NEWS.d/next/Library/2025-03-07-17-47-32.gh-issue-130941.7_GvhW.rst deleted file mode 100644 index 4f0cda8d03e..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-07-17-47-32.gh-issue-130941.7_GvhW.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix :class:`configparser.ConfigParser` parsing empty interpolation with -``allow_no_value`` set to ``True``. diff --git a/Misc/NEWS.d/next/Library/2025-03-09-01-09-12.gh-issue-114713.lkq9vZ.rst b/Misc/NEWS.d/next/Library/2025-03-09-01-09-12.gh-issue-114713.lkq9vZ.rst deleted file mode 100644 index d30975a8a51..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-09-01-09-12.gh-issue-114713.lkq9vZ.rst +++ /dev/null @@ -1 +0,0 @@ -Handle case of an empty string passed to :class:`zoneinfo.ZoneInfo`. diff --git a/Misc/NEWS.d/next/Library/2025-03-09-03-13-41.gh-issue-130999.tBRBVB.rst b/Misc/NEWS.d/next/Library/2025-03-09-03-13-41.gh-issue-130999.tBRBVB.rst new file mode 100644 index 00000000000..157522f9aab --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-03-09-03-13-41.gh-issue-130999.tBRBVB.rst @@ -0,0 +1,2 @@ +Avoid exiting the new REPL and offer suggestions even if there are non-string +candidates when errors occur. diff --git a/Misc/NEWS.d/next/Library/2025-03-09-10-37-00.gh-issue-89157.qg3r138.rst b/Misc/NEWS.d/next/Library/2025-03-09-10-37-00.gh-issue-89157.qg3r138.rst deleted file mode 100644 index 0031721f89b..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-09-10-37-00.gh-issue-89157.qg3r138.rst +++ /dev/null @@ -1,2 +0,0 @@ -Make the pure Python implementation of :func:`datetime.date.fromisoformat`, -only accept ASCII strings for consistency with the C implementation. diff --git a/Misc/NEWS.d/next/Library/2025-03-11-05-24-14.gh-issue-130664.g0yNMm.rst b/Misc/NEWS.d/next/Library/2025-03-11-05-24-14.gh-issue-130664.g0yNMm.rst new file mode 100644 index 00000000000..dbe783a2a99 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-03-11-05-24-14.gh-issue-130664.g0yNMm.rst @@ -0,0 +1,4 @@ +Handle corner-case for :class:`~fractions.Fraction`'s formatting: treat +zero-padding (preceding the width field by a zero (``'0'``) character) as an +equivalent to a fill character of ``'0'`` with an alignment type of ``'='``, +just as in case of :class:`float`'s. diff --git a/Misc/NEWS.d/next/Library/2025-03-11-21-08-46.gh-issue-131127.whcVdY.rst b/Misc/NEWS.d/next/Library/2025-03-11-21-08-46.gh-issue-131127.whcVdY.rst deleted file mode 100644 index e8dfbf5f423..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-11-21-08-46.gh-issue-131127.whcVdY.rst +++ /dev/null @@ -1 +0,0 @@ -Systems using LibreSSL now successfully build. diff --git a/Misc/NEWS.d/next/Library/2025-03-13-20-48-58.gh-issue-123471.cM4w4f.rst b/Misc/NEWS.d/next/Library/2025-03-13-20-48-58.gh-issue-123471.cM4w4f.rst new file mode 100644 index 00000000000..cfc783900de --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-03-13-20-48-58.gh-issue-123471.cM4w4f.rst @@ -0,0 +1 @@ +Make concurrent iterations over :class:`itertools.cycle` safe under free-threading. diff --git a/Misc/NEWS.d/next/Library/2025-03-14-14-18-49.gh-issue-123471.sduBKk.rst b/Misc/NEWS.d/next/Library/2025-03-14-14-18-49.gh-issue-123471.sduBKk.rst deleted file mode 100644 index b3829c72e5c..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-14-14-18-49.gh-issue-123471.sduBKk.rst +++ /dev/null @@ -1 +0,0 @@ -Make concurrent iterations over :class:`itertools.repeat` safe under free-threading. diff --git a/Misc/NEWS.d/next/Library/2025-03-16-17-40-00.gh-issue-85702.qudq12.rst b/Misc/NEWS.d/next/Library/2025-03-16-17-40-00.gh-issue-85702.qudq12.rst deleted file mode 100644 index 25b549d5f08..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-16-17-40-00.gh-issue-85702.qudq12.rst +++ /dev/null @@ -1,2 +0,0 @@ -If ``zoneinfo._common.load_tzdata`` is given a package without a resource a -``ZoneInfoNotFoundError`` is raised rather than a :exc:`IsADirectoryError`. diff --git a/Misc/NEWS.d/next/Library/2025-03-17-23-07-57.gh-issue-100926.B8gcbz.rst b/Misc/NEWS.d/next/Library/2025-03-17-23-07-57.gh-issue-100926.B8gcbz.rst deleted file mode 100644 index 6a71415fbd8..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-17-23-07-57.gh-issue-100926.B8gcbz.rst +++ /dev/null @@ -1,4 +0,0 @@ -Move :func:`ctypes.POINTER` types cache from a global internal cache -(``_pointer_type_cache``) to the :attr:`ctypes._CData.__pointer_type__` -attribute of the corresponding :mod:`ctypes` types. -This will stop the cache from growing without limits in some situations. diff --git a/Misc/NEWS.d/next/Library/2025-03-21-21-24-36.gh-issue-131434.BPkyyh.rst b/Misc/NEWS.d/next/Library/2025-03-21-21-24-36.gh-issue-131434.BPkyyh.rst deleted file mode 100644 index a7b086131cf..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-21-21-24-36.gh-issue-131434.BPkyyh.rst +++ /dev/null @@ -1 +0,0 @@ -Improve error reporting for incorrect format in :func:`time.strptime`. diff --git a/Misc/NEWS.d/next/Library/2025-03-23-11-33-09.gh-issue-131423.bQlcEb.rst b/Misc/NEWS.d/next/Library/2025-03-23-11-33-09.gh-issue-131423.bQlcEb.rst deleted file mode 100644 index 20ff9ee2834..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-23-11-33-09.gh-issue-131423.bQlcEb.rst +++ /dev/null @@ -1,2 +0,0 @@ -:mod:`ssl` can show descriptions for errors added in OpenSSL 3.4.1. -Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-03-26-10-56-22.gh-issue-131757.pFRdmN.rst b/Misc/NEWS.d/next/Library/2025-03-26-10-56-22.gh-issue-131757.pFRdmN.rst deleted file mode 100644 index 89f71ca113a..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-26-10-56-22.gh-issue-131757.pFRdmN.rst +++ /dev/null @@ -1 +0,0 @@ -Make :func:`functools.lru_cache` call the cached function unlocked to allow concurrency. diff --git a/Misc/NEWS.d/next/Library/2025-04-01-18-24-58.gh-issue-85302.7knfUf.rst b/Misc/NEWS.d/next/Library/2025-04-01-18-24-58.gh-issue-85302.7knfUf.rst deleted file mode 100644 index aa5c4dfdc72..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-01-18-24-58.gh-issue-85302.7knfUf.rst +++ /dev/null @@ -1 +0,0 @@ -Add support for :data:`~socket.BTPROTO_SCO` in sockets on FreeBSD. diff --git a/Misc/NEWS.d/next/Library/2025-04-03-00-56-48.gh-issue-118761.Vb0S1B.rst b/Misc/NEWS.d/next/Library/2025-04-03-00-56-48.gh-issue-118761.Vb0S1B.rst deleted file mode 100644 index 6b4b3ed7526..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-03-00-56-48.gh-issue-118761.Vb0S1B.rst +++ /dev/null @@ -1,3 +0,0 @@ -Improve import times by up to 33x for the :mod:`shlex` module, -and improve the performance of :func:`shlex.quote` by up to 12x. -Patch by Adam Turner. diff --git a/Misc/NEWS.d/next/Library/2025-04-03-17-19-42.gh-issue-119605.c7QXAA.rst b/Misc/NEWS.d/next/Library/2025-04-03-17-19-42.gh-issue-119605.c7QXAA.rst deleted file mode 100644 index cf8065afc2e..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-03-17-19-42.gh-issue-119605.c7QXAA.rst +++ /dev/null @@ -1,4 +0,0 @@ -Respect ``follow_wrapped`` for :meth:`!__init__` and :meth:`!__new__` methods -when getting the class signature for a class with :func:`inspect.signature`. -Preserve class signature after wrapping with :func:`warnings.deprecated`. -Patch by Xuehai Pan. diff --git a/Misc/NEWS.d/next/Library/2025-04-03-20-28-54.gh-issue-132054.c1nlOx.rst b/Misc/NEWS.d/next/Library/2025-04-03-20-28-54.gh-issue-132054.c1nlOx.rst deleted file mode 100644 index b9602c0b2ca..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-03-20-28-54.gh-issue-132054.c1nlOx.rst +++ /dev/null @@ -1,2 +0,0 @@ -The ``application/yaml`` mime type (:rfc:`9512`) is now supported
-by :mod:`mimetypes`. Patch by Sasha "Nelie" Chernykh and Hugo van Kemenade.
diff --git a/Misc/NEWS.d/next/Library/2025-04-05-02-22-49.gh-issue-132106.XMjhQJ.rst b/Misc/NEWS.d/next/Library/2025-04-05-02-22-49.gh-issue-132106.XMjhQJ.rst deleted file mode 100644 index 376f986adca..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-05-02-22-49.gh-issue-132106.XMjhQJ.rst +++ /dev/null @@ -1,2 +0,0 @@ -:class:`logging.handlers.QueueListener` now implements the context
-manager protocol, allowing it to be used in a :keyword:`with` statement. diff --git a/Misc/NEWS.d/next/Library/2025-04-05-15-05-09.gh-issue-132063.KHnslU.rst b/Misc/NEWS.d/next/Library/2025-04-05-15-05-09.gh-issue-132063.KHnslU.rst deleted file mode 100644 index d3761759772..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-05-15-05-09.gh-issue-132063.KHnslU.rst +++ /dev/null @@ -1,2 +0,0 @@ -Prevent exceptions that evaluate as falsey (namely, when their ``__bool__`` method returns ``False`` or their ``__len__`` method returns 0) -from being ignored by :class:`concurrent.futures.ProcessPoolExecutor` and :class:`concurrent.futures.ThreadPoolExecutor`. diff --git a/Misc/NEWS.d/next/Library/2025-04-05-16-05-34.gh-issue-131952.HX6gCX.rst b/Misc/NEWS.d/next/Library/2025-04-05-16-05-34.gh-issue-131952.HX6gCX.rst deleted file mode 100644 index 4679abf105d..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-05-16-05-34.gh-issue-131952.HX6gCX.rst +++ /dev/null @@ -1 +0,0 @@ -Add color output to the :program:`json` CLI. Patch by Tomas Roun. diff --git a/Misc/NEWS.d/next/Library/2025-04-06-14-34-29.gh-issue-130664.JF2r-U.rst b/Misc/NEWS.d/next/Library/2025-04-06-14-34-29.gh-issue-130664.JF2r-U.rst deleted file mode 100644 index 294a7e031b2..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-06-14-34-29.gh-issue-130664.JF2r-U.rst +++ /dev/null @@ -1,2 +0,0 @@ -Support the ``'_'`` digit separator in formatting of the integral part of -:class:`~decimal.Decimal`'s. Patch by Sergey B Kirpichev. diff --git a/Misc/NEWS.d/next/Library/2025-04-06-21-17-14.gh-issue-132064.ktPwDM.rst b/Misc/NEWS.d/next/Library/2025-04-06-21-17-14.gh-issue-132064.ktPwDM.rst deleted file mode 100644 index 2559b711a41..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-06-21-17-14.gh-issue-132064.ktPwDM.rst +++ /dev/null @@ -1,4 +0,0 @@ -:func:`annotationlib.get_annotations` now uses the ``__annotate__`` -attribute if it is present, even if ``__annotations__`` is not present. -Additionally, the function now raises a :py:exc:`TypeError` if it is passed -an object that does not have any annotatins. diff --git a/Misc/NEWS.d/next/Library/2025-04-07-06-41-54.gh-issue-131884.ym9BJN.rst b/Misc/NEWS.d/next/Library/2025-04-07-06-41-54.gh-issue-131884.ym9BJN.rst new file mode 100644 index 00000000000..d9e2eae02dc --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-07-06-41-54.gh-issue-131884.ym9BJN.rst @@ -0,0 +1 @@ +Fix formatting issues in :func:`json.dump` when both *indent* and *skipkeys* are used. diff --git a/Misc/NEWS.d/next/Library/2025-04-08-01-55-11.gh-issue-132250.APBFCw.rst b/Misc/NEWS.d/next/Library/2025-04-08-01-55-11.gh-issue-132250.APBFCw.rst deleted file mode 100644 index b49528867c2..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-08-01-55-11.gh-issue-132250.APBFCw.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed the :exc:`SystemError` in :mod:`cProfile` when locating the actual C function of a method raises an exception. diff --git a/Misc/NEWS.d/next/Library/2025-04-08-10-45-22.gh-issue-129463.b1qEP3.rst b/Misc/NEWS.d/next/Library/2025-04-08-10-45-22.gh-issue-129463.b1qEP3.rst deleted file mode 100644 index 9c5796f11e2..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-08-10-45-22.gh-issue-129463.b1qEP3.rst +++ /dev/null @@ -1,3 +0,0 @@ -Comparison of :class:`annotationlib.ForwardRef` objects no longer uses the -internal ``__code__`` and ``__ast_node__`` attributes, which are used as -caches. diff --git a/Misc/NEWS.d/next/Library/2025-04-08-14-50-39.gh-issue-127495.Q0V0bS.rst b/Misc/NEWS.d/next/Library/2025-04-08-14-50-39.gh-issue-127495.Q0V0bS.rst deleted file mode 100644 index 135d0f65117..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-08-14-50-39.gh-issue-127495.Q0V0bS.rst +++ /dev/null @@ -1,3 +0,0 @@ -In PyREPL, append a new entry to the ``PYTHON_HISTORY`` file *after* every -statement. This should preserve command-line history after interpreter is -terminated. Patch by Sergey B Kirpichev. diff --git a/Misc/NEWS.d/next/Library/2025-04-09-19-07-22.gh-issue-130645.cVfE1X.rst b/Misc/NEWS.d/next/Library/2025-04-09-19-07-22.gh-issue-130645.cVfE1X.rst deleted file mode 100644 index 8c1b366da37..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-09-19-07-22.gh-issue-130645.cVfE1X.rst +++ /dev/null @@ -1 +0,0 @@ -Add colour to :mod:`argparse` help output. Patch by Hugo van Kemenade. diff --git a/Misc/NEWS.d/next/Library/2025-04-10-13-06-42.gh-issue-132308.1js5SI.rst b/Misc/NEWS.d/next/Library/2025-04-10-13-06-42.gh-issue-132308.1js5SI.rst deleted file mode 100644 index 8e8b99c2be3..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-10-13-06-42.gh-issue-132308.1js5SI.rst +++ /dev/null @@ -1,3 +0,0 @@ -A :class:`traceback.TracebackException` now correctly renders the ``__context__`` -and ``__cause__`` attributes from :ref:`falsey <truth>` :class:`Exception`, -and the ``exceptions`` attribute from falsey :class:`ExceptionGroup`. diff --git a/Misc/NEWS.d/next/Library/2025-04-10-21-43-04.gh-issue-125866.EZ9X8D.rst b/Misc/NEWS.d/next/Library/2025-04-10-21-43-04.gh-issue-125866.EZ9X8D.rst deleted file mode 100644 index 0d60a16a177..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-10-21-43-04.gh-issue-125866.EZ9X8D.rst +++ /dev/null @@ -1,4 +0,0 @@ -Add optional *add_scheme* argument to :func:`urllib.request.pathname2url`; when -set to true, a complete URL is returned. Likewise add optional *require_scheme* -argument to :func:`~urllib.request.url2pathname`; when set to true, a complete -URL is accepted. diff --git a/Misc/NEWS.d/next/Library/2025-04-11-12-41-47.gh-issue-132385.86HoA7.rst b/Misc/NEWS.d/next/Library/2025-04-11-12-41-47.gh-issue-132385.86HoA7.rst deleted file mode 100644 index 9aa2da452d2..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-11-12-41-47.gh-issue-132385.86HoA7.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix instance error suggestions trigger potential exceptions -in :meth:`object.__getattr__` in :mod:`traceback`. diff --git a/Misc/NEWS.d/next/Library/2025-04-11-21-48-49.gh-issue-132417.uILGdS.rst b/Misc/NEWS.d/next/Library/2025-04-11-21-48-49.gh-issue-132417.uILGdS.rst deleted file mode 100644 index 878651c8a0a..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-11-21-48-49.gh-issue-132417.uILGdS.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fix a ``NULL`` pointer dereference when a C function called using -:mod:`ctypes` with ``restype`` :class:`~ctypes.py_object` returns -``NULL``. diff --git a/Misc/NEWS.d/next/Library/2025-04-12-09-30-24.gh-issue-132106.OxUds3.rst b/Misc/NEWS.d/next/Library/2025-04-12-09-30-24.gh-issue-132106.OxUds3.rst deleted file mode 100644 index b6d58a29f9b..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-12-09-30-24.gh-issue-132106.OxUds3.rst +++ /dev/null @@ -1,2 +0,0 @@ -:meth:`QueueListener.start <logging.handlers.QueueListener.start>` now
-raises a :exc:`RuntimeError` if the listener is already started.
diff --git a/Misc/NEWS.d/next/Library/2025-04-12-12-59-51.gh-issue-132429.OEIdlW.rst b/Misc/NEWS.d/next/Library/2025-04-12-12-59-51.gh-issue-132429.OEIdlW.rst deleted file mode 100644 index 95be9ec922b..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-12-12-59-51.gh-issue-132429.OEIdlW.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fix support of Bluetooth sockets on NetBSD and DragonFly BSD. Add support -for *cid* and *bdaddr_type* in the BTPROTO_L2CAP address on FreeBSD. Return -*cid* in ``getsockname()`` for BTPROTO_L2CAP if it is not zero. diff --git a/Misc/NEWS.d/next/Library/2025-04-12-19-42-51.gh-issue-131913.twOx7K.rst b/Misc/NEWS.d/next/Library/2025-04-12-19-42-51.gh-issue-131913.twOx7K.rst deleted file mode 100644 index be036524bc3..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-12-19-42-51.gh-issue-131913.twOx7K.rst +++ /dev/null @@ -1 +0,0 @@ -Add a shortcut function :func:`multiprocessing.Process.interrupt` alongside the existing :func:`multiprocessing.Process.terminate` and :func:`multiprocessing.Process.kill` for an improved control over child process termination. diff --git a/Misc/NEWS.d/next/Library/2025-04-13-21-22-37.gh-issue-132491.jJfT4e.rst b/Misc/NEWS.d/next/Library/2025-04-13-21-22-37.gh-issue-132491.jJfT4e.rst deleted file mode 100644 index d29fc9b79b7..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-13-21-22-37.gh-issue-132491.jJfT4e.rst +++ /dev/null @@ -1,3 +0,0 @@ -Rename ``annotationlib.value_to_string`` to -:func:`annotationlib.type_repr` and provide better handling for function -objects. diff --git a/Misc/NEWS.d/next/Library/2025-04-13-21-35-50.gh-issue-132493.5SAQJn.rst b/Misc/NEWS.d/next/Library/2025-04-13-21-35-50.gh-issue-132493.5SAQJn.rst deleted file mode 100644 index bda09e2356d..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-13-21-35-50.gh-issue-132493.5SAQJn.rst +++ /dev/null @@ -1,2 +0,0 @@ -Support creation of :class:`typing.Protocol` classes with annotations that -cannot be resolved at class creation time. diff --git a/Misc/NEWS.d/next/Library/2025-04-14-20-38-43.gh-issue-132099.0l0LlK.rst b/Misc/NEWS.d/next/Library/2025-04-14-20-38-43.gh-issue-132099.0l0LlK.rst deleted file mode 100644 index de69873605f..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-14-20-38-43.gh-issue-132099.0l0LlK.rst +++ /dev/null @@ -1,3 +0,0 @@ -The Bluetooth socket with the :data:`~socket.BTPROTO_HCI` protocol on Linux -now accepts an address in the format of an integer ``device_id``, not only a -tuple ``(device_id,)``. diff --git a/Misc/NEWS.d/next/Library/2025-04-14-23-00-00.gh-issue-132527.kTi8T7.rst b/Misc/NEWS.d/next/Library/2025-04-14-23-00-00.gh-issue-132527.kTi8T7.rst deleted file mode 100644 index 997cc2b784f..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-14-23-00-00.gh-issue-132527.kTi8T7.rst +++ /dev/null @@ -1 +0,0 @@ -Include the valid typecode 'w' in the error message when an invalid typecode is passed to :class:`array.array`. diff --git a/Misc/NEWS.d/next/Library/2025-04-15-03-20-00.gh-issue-132536.i5Pvof.rst b/Misc/NEWS.d/next/Library/2025-04-15-03-20-00.gh-issue-132536.i5Pvof.rst deleted file mode 100644 index 72f63547306..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-15-03-20-00.gh-issue-132536.i5Pvof.rst +++ /dev/null @@ -1 +0,0 @@ -Do not disable :monitoring-event:`PY_THROW` event in :mod:`bdb` because it can't be disabled. diff --git a/Misc/NEWS.d/next/Library/2025-04-15-08-39-14.gh-issue-132493.V0gLkU.rst b/Misc/NEWS.d/next/Library/2025-04-15-08-39-14.gh-issue-132493.V0gLkU.rst deleted file mode 100644 index a7f76270364..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-15-08-39-14.gh-issue-132493.V0gLkU.rst +++ /dev/null @@ -1,4 +0,0 @@ -:class:`typing.Protocol` now uses :func:`annotationlib.get_annotations` when -checking whether or not an instance implements the protocol with -:func:`isinstance`. This enables support for ``isinstance`` checks against -classes with deferred annotations. diff --git a/Misc/NEWS.d/next/Library/2025-04-16-01-41-34.gh-issue-121468.rxgE1z.rst b/Misc/NEWS.d/next/Library/2025-04-16-01-41-34.gh-issue-121468.rxgE1z.rst deleted file mode 100644 index a46db6b73b7..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-16-01-41-34.gh-issue-121468.rxgE1z.rst +++ /dev/null @@ -1 +0,0 @@ -Add :func:`pdb.set_trace_async` function to support :keyword:`await` statements in :mod:`pdb`. diff --git a/Misc/NEWS.d/next/Library/2025-04-16-11-44-56.gh-issue-132561.ekkDPE.rst b/Misc/NEWS.d/next/Library/2025-04-16-11-44-56.gh-issue-132561.ekkDPE.rst deleted file mode 100644 index 862db02b819..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-16-11-44-56.gh-issue-132561.ekkDPE.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix the public ``locked`` method of ``multiprocessing.SemLock`` class.
-Also adding 2 tests for the derivated :class:`multiprocessing.Lock` and :class:`multiprocessing.RLock` classes.
diff --git a/Misc/NEWS.d/next/Library/2025-04-16-21-02-57.gh-issue-132551.Psa7pL.rst b/Misc/NEWS.d/next/Library/2025-04-16-21-02-57.gh-issue-132551.Psa7pL.rst new file mode 100644 index 00000000000..c8743d49ca0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-16-21-02-57.gh-issue-132551.Psa7pL.rst @@ -0,0 +1 @@ +Make :class:`io.BytesIO` safe in :term:`free-threaded <free threading>` build. diff --git a/Misc/NEWS.d/next/Library/2025-04-18-10-00-09.gh-issue-132578.ruNvF-.rst b/Misc/NEWS.d/next/Library/2025-04-18-10-00-09.gh-issue-132578.ruNvF-.rst deleted file mode 100644 index 56faa5d1235..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-18-10-00-09.gh-issue-132578.ruNvF-.rst +++ /dev/null @@ -1,2 +0,0 @@ -Rename the ``threading.Thread._handle`` field to avoid shadowing methods -defined on subclasses of ``threading.Thread``. diff --git a/Misc/NEWS.d/next/Library/2025-04-18-14-34-43.gh-issue-132673.0sliCv.rst b/Misc/NEWS.d/next/Library/2025-04-18-14-34-43.gh-issue-132673.0sliCv.rst deleted file mode 100644 index 4d5a26caf0e..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-18-14-34-43.gh-issue-132673.0sliCv.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix :exc:`AssertionError` raised on :class:`ctypes.Structure` with -``_align_ = 0`` and ``_fields_ = []``. diff --git a/Misc/NEWS.d/next/Library/2025-04-19-19-58-27.gh-issue-132734.S6F9Cs.rst b/Misc/NEWS.d/next/Library/2025-04-19-19-58-27.gh-issue-132734.S6F9Cs.rst deleted file mode 100644 index e0825227d6e..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-19-19-58-27.gh-issue-132734.S6F9Cs.rst +++ /dev/null @@ -1 +0,0 @@ -Add new constants for Bluetooth :mod:`sockets <socket>`. diff --git a/Misc/NEWS.d/next/Library/2025-04-21-00-58-04.gh-issue-127081.3DCl92.rst b/Misc/NEWS.d/next/Library/2025-04-21-00-58-04.gh-issue-127081.3DCl92.rst new file mode 100644 index 00000000000..a99669a1bc0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-21-00-58-04.gh-issue-127081.3DCl92.rst @@ -0,0 +1,2 @@ +Fix libc thread safety issues with :mod:`pwd` by locking access to +``getpwall``. diff --git a/Misc/NEWS.d/next/Library/2025-04-21-01-03-15.gh-issue-127081.WXRliX.rst b/Misc/NEWS.d/next/Library/2025-04-21-01-03-15.gh-issue-127081.WXRliX.rst new file mode 100644 index 00000000000..63fed60ced0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-21-01-03-15.gh-issue-127081.WXRliX.rst @@ -0,0 +1,2 @@ +Fix libc thread safety issues with :mod:`os` by replacing ``getlogin`` with +``getlogin_r`` re-entrant version. diff --git a/Misc/NEWS.d/next/Library/2025-04-21-01-05-14.gh-issue-127081.Egrpq7.rst b/Misc/NEWS.d/next/Library/2025-04-21-01-05-14.gh-issue-127081.Egrpq7.rst new file mode 100644 index 00000000000..30643673bf9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-21-01-05-14.gh-issue-127081.Egrpq7.rst @@ -0,0 +1,2 @@ +Fix libc thread safety issues with :mod:`dbm` by performing stateful +operations in critical sections. diff --git a/Misc/NEWS.d/next/Library/2025-04-22-19-45-46.gh-issue-132451.eIzMvE.rst b/Misc/NEWS.d/next/Library/2025-04-22-19-45-46.gh-issue-132451.eIzMvE.rst deleted file mode 100644 index 01ca6486853..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-22-19-45-46.gh-issue-132451.eIzMvE.rst +++ /dev/null @@ -1,3 +0,0 @@ -The CLI for the PDB debugger now accepts a ``-p PID`` argument to allow -attaching to a running process. The process must be running the same version -of Python as the one running PDB. diff --git a/Misc/NEWS.d/next/Library/2025-04-22-21-00-23.gh-issue-123471.asOLA2.rst b/Misc/NEWS.d/next/Library/2025-04-22-21-00-23.gh-issue-123471.asOLA2.rst new file mode 100644 index 00000000000..a4b4b6d2c23 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-22-21-00-23.gh-issue-123471.asOLA2.rst @@ -0,0 +1 @@ +Make concurrent iterations over :class:`itertools.combinations` and :class:`itertools.product` safe under free-threading. diff --git a/Misc/NEWS.d/next/Library/2025-04-23-14-50-45.gh-issue-132742.PB6B7F.rst b/Misc/NEWS.d/next/Library/2025-04-23-14-50-45.gh-issue-132742.PB6B7F.rst deleted file mode 100644 index db2905bb3bc..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-23-14-50-45.gh-issue-132742.PB6B7F.rst +++ /dev/null @@ -1,4 +0,0 @@ -:func:`fcntl.fcntl` now supports arbitrary :term:`bytes-like objects -<bytes-like object>`, not only :class:`bytes`. :func:`fcntl.ioctl` now -automatically retries system calls failing with EINTR and releases the GIL -during a system call even for large bytes-like object. diff --git a/Misc/NEWS.d/next/Library/2025-04-23-18-35-09.gh-issue-129965.nj7Fx2.rst b/Misc/NEWS.d/next/Library/2025-04-23-18-35-09.gh-issue-129965.nj7Fx2.rst deleted file mode 100644 index e693a2c0ffd..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-23-18-35-09.gh-issue-129965.nj7Fx2.rst +++ /dev/null @@ -1,3 +0,0 @@ -Add MIME types for ``.7z``, ``.apk``, ``.deb``, ``.glb``, ``.gltf``, -``.gz``, ``.m4v``, ``.php``, ``.rar``, ``.rpm``, ``.stl`` and ``.wmv``. -Patch by Hugo van Kemenade. diff --git a/Misc/NEWS.d/next/Library/2025-04-24-01-03-40.gh-issue-93696.kM-MBp.rst b/Misc/NEWS.d/next/Library/2025-04-24-01-03-40.gh-issue-93696.kM-MBp.rst deleted file mode 100644 index 61448a85a3d..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-24-01-03-40.gh-issue-93696.kM-MBp.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed the breakpoint display error for frozen modules in :mod:`pdb`. diff --git a/Misc/NEWS.d/next/Library/2025-04-24-09-10-04.gh-issue-132882.6zoyp5.rst b/Misc/NEWS.d/next/Library/2025-04-24-09-10-04.gh-issue-132882.6zoyp5.rst deleted file mode 100644 index a93469fdcf9..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-24-09-10-04.gh-issue-132882.6zoyp5.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix copying of :class:`typing.Union` objects containing objects that do not -support the ``|`` operator. diff --git a/Misc/NEWS.d/next/Library/2025-04-24-18-07-49.gh-issue-130328.z7CN8z.rst b/Misc/NEWS.d/next/Library/2025-04-24-18-07-49.gh-issue-130328.z7CN8z.rst deleted file mode 100644 index f53b2bd3512..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-24-18-07-49.gh-issue-130328.z7CN8z.rst +++ /dev/null @@ -1 +0,0 @@ -Speedup pasting in ``PyREPL`` on Windows. Fix by Chris Eibl. diff --git a/Misc/NEWS.d/next/Library/2025-04-24-21-22-46.gh-issue-132893.KFuxZ2.rst b/Misc/NEWS.d/next/Library/2025-04-24-21-22-46.gh-issue-132893.KFuxZ2.rst deleted file mode 100644 index 1f5a4898263..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-24-21-22-46.gh-issue-132893.KFuxZ2.rst +++ /dev/null @@ -1 +0,0 @@ -Improved :meth:`statistics.NormalDist.cdf` accuracy for inputs smaller than the mean. diff --git a/Misc/NEWS.d/next/Library/2025-04-25-11-48-00.gh-issue-122781.ajsdns.rst b/Misc/NEWS.d/next/Library/2025-04-25-11-48-00.gh-issue-122781.ajsdns.rst new file mode 100644 index 00000000000..5a9a0cdf798 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-25-11-48-00.gh-issue-122781.ajsdns.rst @@ -0,0 +1,2 @@ +Fix ``%z`` directive in :func:`datetime.datetime.strptime` to allow for no provided +offset as was documented. diff --git a/Misc/NEWS.d/next/Library/2025-04-25-11-53-37.gh-issue-95380.7dvPe-.rst b/Misc/NEWS.d/next/Library/2025-04-25-11-53-37.gh-issue-95380.7dvPe-.rst new file mode 100644 index 00000000000..8dcc6190cfd --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-25-11-53-37.gh-issue-95380.7dvPe-.rst @@ -0,0 +1,2 @@ +:func:`fcntl.fcntl` and :func:`fcntl.ioctl`: Remove the 1024 bytes limit +on the size of not mutated bytes-like argument. diff --git a/Misc/NEWS.d/next/Library/2025-04-25-12-55-06.gh-issue-132915.XuKCXn.rst b/Misc/NEWS.d/next/Library/2025-04-25-12-55-06.gh-issue-132915.XuKCXn.rst deleted file mode 100644 index 95a7d9e9159..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-25-12-55-06.gh-issue-132915.XuKCXn.rst +++ /dev/null @@ -1,3 +0,0 @@ -:func:`fcntl.fcntl` and :func:`fcntl.ioctl` can now detect a buffer overflow -and raise :exc:`SystemError`. The stack and memory can be corrupted in such -case, so treat this error as fatal. diff --git a/Misc/NEWS.d/next/Library/2025-04-25-16-06-53.gh-issue-132908.wV5rja.rst b/Misc/NEWS.d/next/Library/2025-04-25-16-06-53.gh-issue-132908.wV5rja.rst new file mode 100644 index 00000000000..e33b061bb9b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-25-16-06-53.gh-issue-132908.wV5rja.rst @@ -0,0 +1,2 @@ +Add :func:`math.isnormal` and :func:`math.issubnormal` functions. Patch by +Sergey B Kirpichev. diff --git a/Misc/NEWS.d/next/Library/2025-04-25-16-20-49.gh-issue-121249.uue2nK.rst b/Misc/NEWS.d/next/Library/2025-04-25-16-20-49.gh-issue-121249.uue2nK.rst deleted file mode 100644 index 28140ab3054..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-25-16-20-49.gh-issue-121249.uue2nK.rst +++ /dev/null @@ -1,2 +0,0 @@ -Always support the :c:expr:`float complex` and :c:expr:`double complex` C types in -the :mod:`struct` module. Patch by Sergey B Kirpichev. diff --git a/Misc/NEWS.d/next/Library/2025-04-25-21-41-45.gh-issue-132933.yO3ySJ.rst b/Misc/NEWS.d/next/Library/2025-04-25-21-41-45.gh-issue-132933.yO3ySJ.rst deleted file mode 100644 index 7d5eb3b0897..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-25-21-41-45.gh-issue-132933.yO3ySJ.rst +++ /dev/null @@ -1 +0,0 @@ -The zipapp module now applies the filter when creating the list of files to add, rather than waiting until the file is being added to the archive. diff --git a/Misc/NEWS.d/next/Library/2025-04-26-10-54-38.gh-issue-132995.JuDF9p.rst b/Misc/NEWS.d/next/Library/2025-04-26-10-54-38.gh-issue-132995.JuDF9p.rst deleted file mode 100644 index 266661babef..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-26-10-54-38.gh-issue-132995.JuDF9p.rst +++ /dev/null @@ -1 +0,0 @@ -Bump the version of pip bundled in ensurepip to version 25.1.1 diff --git a/Misc/NEWS.d/next/Library/2025-04-26-10-57-15.gh-issue-132991.ekkqdt.rst b/Misc/NEWS.d/next/Library/2025-04-26-10-57-15.gh-issue-132991.ekkqdt.rst deleted file mode 100644 index f462dac34ce..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-26-10-57-15.gh-issue-132991.ekkqdt.rst +++ /dev/null @@ -1 +0,0 @@ -Add :data:`!socket.IP_FREEBIND` constant on Linux 2.4 and later. diff --git a/Misc/NEWS.d/next/Library/2025-04-26-12-25-42.gh-issue-115032.jnM2Co.rst b/Misc/NEWS.d/next/Library/2025-04-26-12-25-42.gh-issue-115032.jnM2Co.rst deleted file mode 100644 index 80c10aef069..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-26-12-25-42.gh-issue-115032.jnM2Co.rst +++ /dev/null @@ -1,3 +0,0 @@ -Support for custom logging handlers with the *strm* argument is deprecated -and scheduled for removal in Python 3.16. Define handlers with the *stream* -argument instead. Patch by Mariusz Felisiak. diff --git a/Misc/NEWS.d/next/Library/2025-04-26-14-44-21.gh-issue-133005.y4SRfk.rst b/Misc/NEWS.d/next/Library/2025-04-26-14-44-21.gh-issue-133005.y4SRfk.rst deleted file mode 100644 index cb3ad489706..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-26-14-44-21.gh-issue-133005.y4SRfk.rst +++ /dev/null @@ -1,2 +0,0 @@ -Support passing ``preset`` option to :func:`tarfile.open` when using ``'w|xz'`` -mode. diff --git a/Misc/NEWS.d/next/Library/2025-04-26-15-43-23.gh-issue-124703.jc5auS.rst b/Misc/NEWS.d/next/Library/2025-04-26-15-43-23.gh-issue-124703.jc5auS.rst deleted file mode 100644 index 54603dda39e..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-26-15-43-23.gh-issue-124703.jc5auS.rst +++ /dev/null @@ -1 +0,0 @@ -Set return code to ``1`` when aborting process from :mod:`pdb`. diff --git a/Misc/NEWS.d/next/Library/2025-04-26-15-50-12.gh-issue-133009.etBuz5.rst b/Misc/NEWS.d/next/Library/2025-04-26-15-50-12.gh-issue-133009.etBuz5.rst new file mode 100644 index 00000000000..1f7155c6a40 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-26-15-50-12.gh-issue-133009.etBuz5.rst @@ -0,0 +1,3 @@ +:mod:`xml.etree.ElementTree`: Fix a crash in :meth:`Element.__deepcopy__ +<object.__deepcopy__>` when the element is concurrently mutated. +Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-04-26-17-41-20.gh-issue-132987.xxBCqg.rst b/Misc/NEWS.d/next/Library/2025-04-26-17-41-20.gh-issue-132987.xxBCqg.rst deleted file mode 100644 index 7b75da382a0..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-26-17-41-20.gh-issue-132987.xxBCqg.rst +++ /dev/null @@ -1,2 +0,0 @@ -Many builtin and extension functions which accept an unsigned integer -argument, now use :meth:`~object.__index__` if available. diff --git a/Misc/NEWS.d/next/Library/2025-04-27-15-21-05.gh-issue-133036.HCNYA7.rst b/Misc/NEWS.d/next/Library/2025-04-27-15-21-05.gh-issue-133036.HCNYA7.rst deleted file mode 100644 index 46b1f5575d0..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-27-15-21-05.gh-issue-133036.HCNYA7.rst +++ /dev/null @@ -1,2 +0,0 @@ -:func:`codecs.open` is now deprecated. Use :func:`open` instead. Contributed -by Inada Naoki. diff --git a/Misc/NEWS.d/next/Library/2025-04-29-11-48-46.gh-issue-132876.lyTQGZ.rst b/Misc/NEWS.d/next/Library/2025-04-29-11-48-46.gh-issue-132876.lyTQGZ.rst new file mode 100644 index 00000000000..cb3ca3321e3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-29-11-48-46.gh-issue-132876.lyTQGZ.rst @@ -0,0 +1,4 @@ +``ldexp()`` on Windows doesn't round subnormal results before Windows 11, +but should. Python's :func:`math.ldexp` wrapper now does round them, so +results may change slightly, in rare cases of very small results, on +Windows versions before 11. diff --git a/Misc/NEWS.d/next/Library/2025-04-29-23-20-52.gh-issue-133153.M-w9yC.rst b/Misc/NEWS.d/next/Library/2025-04-29-23-20-52.gh-issue-133153.M-w9yC.rst deleted file mode 100644 index c609fa698dc..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-29-23-20-52.gh-issue-133153.M-w9yC.rst +++ /dev/null @@ -1 +0,0 @@ -Do not complete :mod:`pdb` commands in ``interact`` mode of :mod:`pdb`. diff --git a/Misc/NEWS.d/next/Library/2025-04-30-19-32-18.gh-issue-132969.EagQ3G.rst b/Misc/NEWS.d/next/Library/2025-04-30-19-32-18.gh-issue-132969.EagQ3G.rst new file mode 100644 index 00000000000..7364c425941 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-30-19-32-18.gh-issue-132969.EagQ3G.rst @@ -0,0 +1,7 @@ +Prevent the :class:`~concurrent.futures.ProcessPoolExecutor` executor thread, +which remains running when :meth:`shutdown(wait=False) +<concurrent.futures.Executor.shutdown>`, from +attempting to adjust the pool's worker processes after the object state has already been reset during shutdown. +A combination of conditions, including a worker process having terminated abormally, +resulted in an exception and a potential hang when the still-running executor thread +attempted to replace dead workers within the pool. diff --git a/Misc/NEWS.d/next/Library/2025-05-01-10-56-44.gh-issue-132813.rKurvp.rst b/Misc/NEWS.d/next/Library/2025-05-01-10-56-44.gh-issue-132813.rKurvp.rst new file mode 100644 index 00000000000..55608528a45 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-01-10-56-44.gh-issue-132813.rKurvp.rst @@ -0,0 +1,2 @@ +Improve error messages for incorrect types and values of :class:`csv.Dialect` +attributes. diff --git a/Misc/NEWS.d/next/Library/2025-05-01-16-03-11.gh-issue-133017.k7RLQp.rst b/Misc/NEWS.d/next/Library/2025-05-01-16-03-11.gh-issue-133017.k7RLQp.rst new file mode 100644 index 00000000000..1b5bf74fb47 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-01-16-03-11.gh-issue-133017.k7RLQp.rst @@ -0,0 +1,4 @@ +Improve the error message of :func:`multiprocessing.sharedctypes.Array`, +:func:`multiprocessing.sharedctypes.RawArray`, :func:`multiprocessing.sharedctypes.Value` and +:func:`multiprocessing.sharedctypes.RawValue` when an invalid typecode is passed. Patch +by Tomas Roun diff --git a/Misc/NEWS.d/next/Library/2025-05-02-13-16-44.gh-issue-133290.R5WrLM.rst b/Misc/NEWS.d/next/Library/2025-05-02-13-16-44.gh-issue-133290.R5WrLM.rst deleted file mode 100644 index 538cce9357d..00000000000 --- a/Misc/NEWS.d/next/Library/2025-05-02-13-16-44.gh-issue-133290.R5WrLM.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fix attribute caching issue when setting :attr:`ctypes._Pointer._type_` in -the undocumented and deprecated :func:`!ctypes.SetPointerType` function and the -undocumented :meth:`!set_type` method. diff --git a/Misc/NEWS.d/next/Library/2025-05-02-17-23-41.gh-issue-133300.oAh1P2.rst b/Misc/NEWS.d/next/Library/2025-05-02-17-23-41.gh-issue-133300.oAh1P2.rst deleted file mode 100644 index a99955243e5..00000000000 --- a/Misc/NEWS.d/next/Library/2025-05-02-17-23-41.gh-issue-133300.oAh1P2.rst +++ /dev/null @@ -1,2 +0,0 @@ -Make :class:`argparse.ArgumentParser`'s ``suggest_on_error`` a keyword-only -parameter. Patch by Hugo van Kemenade. diff --git a/Misc/NEWS.d/next/Library/2025-05-04-17-04-55.gh-issue-132493.huirKi.rst b/Misc/NEWS.d/next/Library/2025-05-04-17-04-55.gh-issue-132493.huirKi.rst new file mode 100644 index 00000000000..ad06ee6b7a2 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-04-17-04-55.gh-issue-132493.huirKi.rst @@ -0,0 +1,2 @@ +Avoid accessing ``__annotations__`` unnecessarily in +:func:`inspect.signature`. diff --git a/Misc/NEWS.d/next/Library/2025-05-05-03-14-08.gh-issue-133390.AuTggn.rst b/Misc/NEWS.d/next/Library/2025-05-05-03-14-08.gh-issue-133390.AuTggn.rst new file mode 100644 index 00000000000..943e4addebc --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-05-03-14-08.gh-issue-133390.AuTggn.rst @@ -0,0 +1,2 @@ +Support keyword completion in the :mod:`sqlite3` command-line interface and add +:data:`sqlite3.SQLITE_KEYWORDS` constant. diff --git a/Misc/NEWS.d/next/Library/2025-05-05-10-41-41.gh-issue-133253.J5-xDD.rst b/Misc/NEWS.d/next/Library/2025-05-05-10-41-41.gh-issue-133253.J5-xDD.rst new file mode 100644 index 00000000000..7009ca258bc --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-05-10-41-41.gh-issue-133253.J5-xDD.rst @@ -0,0 +1 @@ +Fix thread-safety issues in :mod:`linecache`. diff --git a/Misc/NEWS.d/next/Library/2025-05-05-18-50-00.gh-issue-133447.ajshdb.rst b/Misc/NEWS.d/next/Library/2025-05-05-18-50-00.gh-issue-133447.ajshdb.rst new file mode 100644 index 00000000000..f453690cab2 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-05-18-50-00.gh-issue-133447.ajshdb.rst @@ -0,0 +1 @@ +Add basic color to :mod:`sqlite3` CLI interface. diff --git a/Misc/NEWS.d/next/Library/2025-05-05-22-11-24.gh-issue-133439.LpmyFz.rst b/Misc/NEWS.d/next/Library/2025-05-05-22-11-24.gh-issue-133439.LpmyFz.rst new file mode 100644 index 00000000000..e0a3ce98bf7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-05-22-11-24.gh-issue-133439.LpmyFz.rst @@ -0,0 +1,2 @@ +Fix dot commands with trailing spaces are mistaken for multi-line SQL +statements in the sqlite3 command-line interface. diff --git a/Misc/NEWS.d/next/Library/2025-05-06-14-44-55.gh-issue-133517.Ca6NgW.rst b/Misc/NEWS.d/next/Library/2025-05-06-14-44-55.gh-issue-133517.Ca6NgW.rst new file mode 100644 index 00000000000..7c53fc484a8 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-06-14-44-55.gh-issue-133517.Ca6NgW.rst @@ -0,0 +1,2 @@ +Remove :func:`os.listdrives`, :func:`os.listvolumes` and :func:`os.listmounts` +in non Windows desktop builds since the underlying functionality is missing. diff --git a/Misc/NEWS.d/next/Library/2025-05-06-22-54-37.gh-issue-133551.rfy1tJ.rst b/Misc/NEWS.d/next/Library/2025-05-06-22-54-37.gh-issue-133551.rfy1tJ.rst new file mode 100644 index 00000000000..7fedc0818dc --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-06-22-54-37.gh-issue-133551.rfy1tJ.rst @@ -0,0 +1,2 @@ +Support t-strings (:pep:`750`) in :mod:`annotationlib`. Patch by Jelle +Zijlstra. diff --git a/Misc/NEWS.d/next/Library/2025-05-07-13-31-06.gh-issue-92897.ubeqGE.rst b/Misc/NEWS.d/next/Library/2025-05-07-13-31-06.gh-issue-92897.ubeqGE.rst new file mode 100644 index 00000000000..647166bfcf8 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-07-13-31-06.gh-issue-92897.ubeqGE.rst @@ -0,0 +1,2 @@ +Removed the ``check_home`` parameter from :func:`sysconfig.is_python_build`, +deprecated since Python 3.12. diff --git a/Misc/NEWS.d/next/Library/2025-05-07-14-36-30.gh-issue-133577.BggPk9.rst b/Misc/NEWS.d/next/Library/2025-05-07-14-36-30.gh-issue-133577.BggPk9.rst new file mode 100644 index 00000000000..9d056983439 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-07-14-36-30.gh-issue-133577.BggPk9.rst @@ -0,0 +1 @@ +Add parameter ``formatter`` to :func:`logging.basicConfig`. diff --git a/Misc/NEWS.d/next/Library/2025-05-07-19-16-41.gh-issue-133581.kERUCJ.rst b/Misc/NEWS.d/next/Library/2025-05-07-19-16-41.gh-issue-133581.kERUCJ.rst new file mode 100644 index 00000000000..3749904cd9b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-07-19-16-41.gh-issue-133581.kERUCJ.rst @@ -0,0 +1,4 @@ +Improve unparsing of t-strings in :func:`ast.unparse` and ``from __future__ +import annotations``. Empty t-strings now round-trip correctly and +formatting in interpolations is preserved. +Patch by Jelle Zijlstra. diff --git a/Misc/NEWS.d/next/Library/2025-05-07-22-15-15.gh-issue-133595.c3U88r.rst b/Misc/NEWS.d/next/Library/2025-05-07-22-15-15.gh-issue-133595.c3U88r.rst new file mode 100644 index 00000000000..a61c4bf1913 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-07-22-15-15.gh-issue-133595.c3U88r.rst @@ -0,0 +1,7 @@ +Clean up :class:`sqlite3.Connection` APIs. All parameters of +:func:`sqlite3.connect` except *database* are now keyword-only. The first +three parameters of methods :meth:`~sqlite3.Connection.create_function` and +:meth:`~sqlite3.Connection.create_aggregate` are now positional-only. The +first parameter of methods :meth:`~sqlite3.Connection.set_authorizer`, +:meth:`~sqlite3.Connection.set_progress_handler` and +:meth:`~sqlite3.Connection.set_trace_callback` is now positional-only. diff --git a/Misc/NEWS.d/next/Library/2025-05-08-13-43-19.gh-issue-133489.9eGS1Z.rst b/Misc/NEWS.d/next/Library/2025-05-08-13-43-19.gh-issue-133489.9eGS1Z.rst new file mode 100644 index 00000000000..0c07beb7693 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-08-13-43-19.gh-issue-133489.9eGS1Z.rst @@ -0,0 +1,2 @@ +:func:`random.getrandbits` can now generate more that 2\ :sup:`31` bits. +:func:`random.randbytes` can now generate more that 256 MiB. diff --git a/Misc/NEWS.d/next/Library/2025-05-09-08-49-03.gh-issue-133701.KI8tGz.rst b/Misc/NEWS.d/next/Library/2025-05-09-08-49-03.gh-issue-133701.KI8tGz.rst new file mode 100644 index 00000000000..163d9b331d1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-09-08-49-03.gh-issue-133701.KI8tGz.rst @@ -0,0 +1,3 @@ +Fix bug where :class:`typing.TypedDict` classes defined under ``from +__future__ import annotations`` and inheriting from another ``TypedDict`` +had an incorrect ``__annotations__`` attribute. diff --git a/Misc/NEWS.d/next/Library/2025-05-09-09-10-34.gh-issue-130328.s9h4By.rst b/Misc/NEWS.d/next/Library/2025-05-09-09-10-34.gh-issue-130328.s9h4By.rst new file mode 100644 index 00000000000..00b556c6a33 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-09-09-10-34.gh-issue-130328.s9h4By.rst @@ -0,0 +1,2 @@ +Speedup pasting in ``PyREPL`` on Windows in a legacy console. Patch by Chris +Eibl. diff --git a/Misc/NEWS.d/next/Library/2025-05-09-15-50-00.gh-issue-77057.fV8SU-.rst b/Misc/NEWS.d/next/Library/2025-05-09-15-50-00.gh-issue-77057.fV8SU-.rst new file mode 100644 index 00000000000..42107de75c7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-09-15-50-00.gh-issue-77057.fV8SU-.rst @@ -0,0 +1,2 @@ +Fix handling of invalid markup declarations in +:class:`html.parser.HTMLParser`. diff --git a/Misc/NEWS.d/next/Library/2025-05-09-18-29-25.gh-issue-133684.Y1DFSt.rst b/Misc/NEWS.d/next/Library/2025-05-09-18-29-25.gh-issue-133684.Y1DFSt.rst new file mode 100644 index 00000000000..0cb1bc237a1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-09-18-29-25.gh-issue-133684.Y1DFSt.rst @@ -0,0 +1,3 @@ +Fix bug where :func:`annotationlib.get_annotations` would return the wrong +result for certain classes that are part of a class hierarchy where ``from +__future__ import annotations`` is used. diff --git a/Misc/NEWS.d/next/Library/2025-05-09-19-05-24.gh-issue-133783.1voCnR.rst b/Misc/NEWS.d/next/Library/2025-05-09-19-05-24.gh-issue-133783.1voCnR.rst new file mode 100644 index 00000000000..62e742df179 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-09-19-05-24.gh-issue-133783.1voCnR.rst @@ -0,0 +1,3 @@ +Fix bug with applying :func:`copy.replace` to :mod:`ast` objects. Attributes +that default to ``None`` were incorrectly treated as required for manually +created AST nodes. diff --git a/Misc/NEWS.d/next/Library/2025-05-09-20-59-24.gh-issue-132641.3qTw44.rst b/Misc/NEWS.d/next/Library/2025-05-09-20-59-24.gh-issue-132641.3qTw44.rst new file mode 100644 index 00000000000..419ff19d9c0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-09-20-59-24.gh-issue-132641.3qTw44.rst @@ -0,0 +1 @@ +Fixed a race in :func:`functools.lru_cache` under free-threading. diff --git a/Misc/NEWS.d/next/Library/2025-05-10-11-04-47.gh-issue-133810.03WhnK.rst b/Misc/NEWS.d/next/Library/2025-05-10-11-04-47.gh-issue-133810.03WhnK.rst new file mode 100644 index 00000000000..4073974e364 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-10-11-04-47.gh-issue-133810.03WhnK.rst @@ -0,0 +1,3 @@ +Remove :class:`!http.server.CGIHTTPRequestHandler` and ``--cgi`` flag from the +:program:`python -m http.server` command-line interface. They were +deprecated in Python 3.13. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-10-12-06-55.gh-issue-133653.Gb2aG4.rst b/Misc/NEWS.d/next/Library/2025-05-10-12-06-55.gh-issue-133653.Gb2aG4.rst new file mode 100644 index 00000000000..56fb1dc31dc --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-10-12-06-55.gh-issue-133653.Gb2aG4.rst @@ -0,0 +1,7 @@ +Fix :class:`argparse.ArgumentParser` with the *formatter_class* argument. +Fix TypeError when *formatter_class* is a custom subclass of +:class:`!HelpFormatter`. +Fix TypeError when *formatter_class* is not a subclass of +:class:`!HelpFormatter` and non-standard *prefix_char* is used. +Fix support of colorizing when *formatter_class* is not a subclass of +:class:`!HelpFormatter`. diff --git a/Misc/NEWS.d/next/Library/2025-05-10-12-07-54.gh-issue-133817.4GMtKV.rst b/Misc/NEWS.d/next/Library/2025-05-10-12-07-54.gh-issue-133817.4GMtKV.rst new file mode 100644 index 00000000000..326e767de5f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-10-12-07-54.gh-issue-133817.4GMtKV.rst @@ -0,0 +1,2 @@ +Remove support for creating :class:`~typing.NamedTuple` classes via the +undocumented keyword argument syntax. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-11-08-48-55.gh-issue-133823.F8udQy.rst b/Misc/NEWS.d/next/Library/2025-05-11-08-48-55.gh-issue-133823.F8udQy.rst new file mode 100644 index 00000000000..67b44ac3ef3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-11-08-48-55.gh-issue-133823.F8udQy.rst @@ -0,0 +1,3 @@ +Remove support for ``TD = TypedDict("TD")`` and ``TD = TypedDict("TD", None)`` +calls for constructing :class:`typing.TypedDict` objects with zero field. +Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-11-10-01-48.gh-issue-133866.g3dHP_.rst b/Misc/NEWS.d/next/Library/2025-05-11-10-01-48.gh-issue-133866.g3dHP_.rst new file mode 100644 index 00000000000..00f13c9a305 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-11-10-01-48.gh-issue-133866.g3dHP_.rst @@ -0,0 +1,3 @@ +Remove the undocumented function :func:`!ctypes.SetPointerType`, +which has been deprecated since Python 3.13. +Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-11-10-28-11.gh-issue-133873.H03nov.rst b/Misc/NEWS.d/next/Library/2025-05-11-10-28-11.gh-issue-133873.H03nov.rst new file mode 100644 index 00000000000..79f630b2418 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-11-10-28-11.gh-issue-133873.H03nov.rst @@ -0,0 +1,3 @@ +Remove the deprecated ``getmark()``, ``setmark()`` and ``getmarkers()`` +methods of the :class:`~wave.Wave_read` and :class:`~wave.Wave_write` +classes, which were deprecated since Python 3.13. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-11-12-56-52.gh-issue-133604.kFxhc8.rst b/Misc/NEWS.d/next/Library/2025-05-11-12-56-52.gh-issue-133604.kFxhc8.rst new file mode 100644 index 00000000000..526ac38f09b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-11-12-56-52.gh-issue-133604.kFxhc8.rst @@ -0,0 +1 @@ +Remove :func:`!platform.java_ver` which was deprecated since Python 3.13. diff --git a/Misc/NEWS.d/next/Library/2025-05-12-06-52-10.gh-issue-133925.elInBY.rst b/Misc/NEWS.d/next/Library/2025-05-12-06-52-10.gh-issue-133925.elInBY.rst new file mode 100644 index 00000000000..328e28abc3b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-12-06-52-10.gh-issue-133925.elInBY.rst @@ -0,0 +1 @@ +Make the private class ``typing._UnionGenericAlias`` hashable. diff --git a/Misc/NEWS.d/next/Library/2025-05-12-20-38-57.gh-issue-133960.Aee79f.rst b/Misc/NEWS.d/next/Library/2025-05-12-20-38-57.gh-issue-133960.Aee79f.rst new file mode 100644 index 00000000000..66e8483b25b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-12-20-38-57.gh-issue-133960.Aee79f.rst @@ -0,0 +1,3 @@ +Simplify and improve :func:`typing.evaluate_forward_ref`. It now no longer +raises errors on certain invalid types. In several situations, it is now +able to evaluate forward references that were previously unsupported. diff --git a/Misc/NEWS.d/next/Library/2025-05-13-18-21-59.gh-issue-71253.-3Sf_K.rst b/Misc/NEWS.d/next/Library/2025-05-13-18-21-59.gh-issue-71253.-3Sf_K.rst new file mode 100644 index 00000000000..714d707f488 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-13-18-21-59.gh-issue-71253.-3Sf_K.rst @@ -0,0 +1,3 @@ +Raise :exc:`ValueError` in :func:`open` if *opener* returns a negative +file-descriptor in the Python implementation of :mod:`io` to match the +C implementation. diff --git a/Misc/NEWS.d/next/Library/2025-05-13-18-54-56.gh-issue-133970.6G-Oi6.rst b/Misc/NEWS.d/next/Library/2025-05-13-18-54-56.gh-issue-133970.6G-Oi6.rst new file mode 100644 index 00000000000..ddf456d3939 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-13-18-54-56.gh-issue-133970.6G-Oi6.rst @@ -0,0 +1,2 @@ +Make :class:`!string.templatelib.Template` and +:class:`!string.templatelib.Interpolation` generic. diff --git a/Misc/NEWS.d/next/Library/2025-05-15-00-27-09.gh-issue-134004.e8k4-R.rst b/Misc/NEWS.d/next/Library/2025-05-15-00-27-09.gh-issue-134004.e8k4-R.rst new file mode 100644 index 00000000000..a9a56d9239b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-15-00-27-09.gh-issue-134004.e8k4-R.rst @@ -0,0 +1,2 @@ +:mod:`shelve` as well as underlying :mod:`!dbm.dumb` and :mod:`!dbm.sqlite` now have :meth:`!reorganize` methods to +recover unused free space previously occupied by deleted entries. diff --git a/Misc/NEWS.d/next/Library/2025-05-15-14-27-01.gh-issue-134062.fRbJet.rst b/Misc/NEWS.d/next/Library/2025-05-15-14-27-01.gh-issue-134062.fRbJet.rst new file mode 100644 index 00000000000..f62a3ec4801 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-15-14-27-01.gh-issue-134062.fRbJet.rst @@ -0,0 +1,3 @@ +:mod:`ipaddress`: fix collisions in :meth:`~object.__hash__` for +:class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network` +objects. diff --git a/Misc/NEWS.d/next/Library/2025-05-16-12-40-37.gh-issue-132124.T_5Odx.rst b/Misc/NEWS.d/next/Library/2025-05-16-12-40-37.gh-issue-132124.T_5Odx.rst new file mode 100644 index 00000000000..acf3577ece4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-16-12-40-37.gh-issue-132124.T_5Odx.rst @@ -0,0 +1,6 @@ +On POSIX-compliant systems, :func:`!multiprocessing.util.get_temp_dir` now +ignores :envvar:`TMPDIR` (and similar environment variables) if the path +length of ``AF_UNIX`` socket files exceeds the platform-specific maximum +length when using the :ref:`forkserver +<multiprocessing-start-method-forkserver>` start method. Patch by Bénédikt +Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-16-20-10-25.gh-issue-134098.YyTkKr.rst b/Misc/NEWS.d/next/Library/2025-05-16-20-10-25.gh-issue-134098.YyTkKr.rst new file mode 100644 index 00000000000..32eff5371c4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-16-20-10-25.gh-issue-134098.YyTkKr.rst @@ -0,0 +1,2 @@ +Fix handling paths that end with a percent-encoded slash (``%2f`` or +``%2F``) in :class:`http.server.SimpleHTTPRequestHandler`. diff --git a/Misc/NEWS.d/next/Library/2025-05-17-12-40-12.gh-issue-133889.Eh-zO4.rst b/Misc/NEWS.d/next/Library/2025-05-17-12-40-12.gh-issue-133889.Eh-zO4.rst new file mode 100644 index 00000000000..58b213e29f9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-17-12-40-12.gh-issue-133889.Eh-zO4.rst @@ -0,0 +1,3 @@ +The generated directory listing page in +:class:`http.server.SimpleHTTPRequestHandler` now only shows the decoded +path component of the requested URL, and not the query and fragment. diff --git a/Misc/NEWS.d/next/Library/2025-05-17-13-46-20.gh-issue-134097.fgkjE1.rst b/Misc/NEWS.d/next/Library/2025-05-17-13-46-20.gh-issue-134097.fgkjE1.rst new file mode 100644 index 00000000000..0b388d9db38 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-17-13-46-20.gh-issue-134097.fgkjE1.rst @@ -0,0 +1 @@ +Fix interaction of the new :term:`REPL` and :option:`-X showrefcount <-X>` command line option. diff --git a/Misc/NEWS.d/next/Library/2025-05-17-18-08-35.gh-issue-133890.onn9_X.rst b/Misc/NEWS.d/next/Library/2025-05-17-18-08-35.gh-issue-133890.onn9_X.rst new file mode 100644 index 00000000000..44565a5424e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-17-18-08-35.gh-issue-133890.onn9_X.rst @@ -0,0 +1,2 @@ +The :mod:`tarfile` module now handles :exc:`UnicodeEncodeError` in the same +way as :exc:`OSError` when cannot extract a member. diff --git a/Misc/NEWS.d/next/Library/2025-05-17-20-23-57.gh-issue-133982.smS7au.rst b/Misc/NEWS.d/next/Library/2025-05-17-20-23-57.gh-issue-133982.smS7au.rst new file mode 100644 index 00000000000..a6753145981 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-17-20-23-57.gh-issue-133982.smS7au.rst @@ -0,0 +1,3 @@ +Emit :exc:`RuntimeWarning` in the Python implementation of :mod:`io` when +the :term:`file-like object <file object>` is not closed explicitly in the +presence of multiple I/O layers. diff --git a/Misc/NEWS.d/next/Library/2025-05-18-07-25-15.gh-issue-134173.53oOoF.rst b/Misc/NEWS.d/next/Library/2025-05-18-07-25-15.gh-issue-134173.53oOoF.rst new file mode 100644 index 00000000000..57fba5e21a3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-18-07-25-15.gh-issue-134173.53oOoF.rst @@ -0,0 +1,3 @@ +Speed up :mod:`asyncio` performance of transferring state from thread +pool :class:`concurrent.futures.Future` by up to 4.4x. Patch by J. Nick +Koston. diff --git a/Misc/NEWS.d/next/Library/2025-05-18-12-23-07.gh-issue-134087.HilZWl.rst b/Misc/NEWS.d/next/Library/2025-05-18-12-23-07.gh-issue-134087.HilZWl.rst new file mode 100644 index 00000000000..c4a05965f73 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-18-12-23-07.gh-issue-134087.HilZWl.rst @@ -0,0 +1,3 @@ +Remove support for arbitrary positional or keyword arguments in the C +implementation of :class:`threading.RLock` objects. This was deprecated +since Python 3.14. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-18-12-48-39.gh-issue-62184.y11l10.rst b/Misc/NEWS.d/next/Library/2025-05-18-12-48-39.gh-issue-62184.y11l10.rst new file mode 100644 index 00000000000..7bc994e57fb --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-18-12-48-39.gh-issue-62184.y11l10.rst @@ -0,0 +1,2 @@ +Remove import of C implementation of :class:`io.FileIO` from Python +implementation which has its own implementation diff --git a/Misc/NEWS.d/next/Library/2025-05-18-13-23-29.gh-issue-134168.hgx3Xg.rst b/Misc/NEWS.d/next/Library/2025-05-18-13-23-29.gh-issue-134168.hgx3Xg.rst new file mode 100644 index 00000000000..5a0e20005db --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-18-13-23-29.gh-issue-134168.hgx3Xg.rst @@ -0,0 +1,2 @@ +:mod:`http.server`: Fix IPv6 address binding and +:option:`--directory <http.server --directory>` handling when using HTTPS. diff --git a/Misc/NEWS.d/next/Library/2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst b/Misc/NEWS.d/next/Library/2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst new file mode 100644 index 00000000000..911a4a59ea6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst @@ -0,0 +1 @@ +:mod:`email`: Fix parsing of email message ID with invalid domain. diff --git a/Misc/NEWS.d/next/Library/2025-05-19-10-32-11.gh-issue-134152.INJC2j.rst b/Misc/NEWS.d/next/Library/2025-05-19-10-32-11.gh-issue-134152.INJC2j.rst new file mode 100644 index 00000000000..6da3d4147dd --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-19-10-32-11.gh-issue-134152.INJC2j.rst @@ -0,0 +1,2 @@ +Fixed :exc:`UnboundLocalError` that could occur during :mod:`email` header +parsing if an expected trailing delimiter is missing in some contexts. diff --git a/Misc/NEWS.d/next/Library/2025-05-19-15-05-24.gh-issue-134235.pz9PwV.rst b/Misc/NEWS.d/next/Library/2025-05-19-15-05-24.gh-issue-134235.pz9PwV.rst new file mode 100644 index 00000000000..a65df886919 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-19-15-05-24.gh-issue-134235.pz9PwV.rst @@ -0,0 +1,2 @@ +Updated tab completion on REPL to include builtin modules. Contributed by +Tom Wang, Hunter Young diff --git a/Misc/NEWS.d/next/Library/2025-05-19-15-30-00.gh-issue-132983.asdsfs.rst b/Misc/NEWS.d/next/Library/2025-05-19-15-30-00.gh-issue-132983.asdsfs.rst new file mode 100644 index 00000000000..3893eeafa9c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-19-15-30-00.gh-issue-132983.asdsfs.rst @@ -0,0 +1 @@ +Add :mod:`!compression.zstd` version information to ``test.pythoninfo``. diff --git a/Misc/NEWS.d/next/Library/2025-05-19-17-27-21.gh-issue-80184.LOkbaw.rst b/Misc/NEWS.d/next/Library/2025-05-19-17-27-21.gh-issue-80184.LOkbaw.rst new file mode 100644 index 00000000000..089268dc4c3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-19-17-27-21.gh-issue-80184.LOkbaw.rst @@ -0,0 +1 @@ +The default queue size is now ``socket.SOMAXCONN`` for :class:`socketserver.TCPServer`. diff --git a/Misc/NEWS.d/next/Library/2025-05-19-18-12-42.gh-issue-88994.7avvVu.rst b/Misc/NEWS.d/next/Library/2025-05-19-18-12-42.gh-issue-88994.7avvVu.rst new file mode 100644 index 00000000000..554a0c3bcb2 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-19-18-12-42.gh-issue-88994.7avvVu.rst @@ -0,0 +1,3 @@ +Change :func:`datetime.datetime.now` to half-even rounding for +consistency with :func:`datetime.datetime.fromtimestamp`. Patch by +John Keith Hohm. diff --git a/Misc/NEWS.d/next/Library/2025-05-19-20-59-06.gh-issue-134209.anhTcF.rst b/Misc/NEWS.d/next/Library/2025-05-19-20-59-06.gh-issue-134209.anhTcF.rst new file mode 100644 index 00000000000..f985872f3c9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-19-20-59-06.gh-issue-134209.anhTcF.rst @@ -0,0 +1,3 @@ +:mod:`curses`: The :meth:`curses.window.instr` and :meth:`curses.window.getstr` +methods now allocate their internal buffer on the heap instead of the stack; +in addition, the max buffer size is increased from 1023 to 2047. diff --git a/Misc/NEWS.d/next/Library/2025-05-20-11-35-08.gh-issue-72902.jzEI-E.rst b/Misc/NEWS.d/next/Library/2025-05-20-11-35-08.gh-issue-72902.jzEI-E.rst new file mode 100644 index 00000000000..932e751a32a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-20-11-35-08.gh-issue-72902.jzEI-E.rst @@ -0,0 +1,2 @@ +Improve speed (x1.1-1.8) of the :class:`~fractions.Fraction` constructor for +typical inputs (:class:`float`'s, :class:`~decimal.Decimal`'s or strings). diff --git a/Misc/NEWS.d/next/Library/2025-05-20-15-13-43.gh-issue-86802.trF7TM.rst b/Misc/NEWS.d/next/Library/2025-05-20-15-13-43.gh-issue-86802.trF7TM.rst new file mode 100644 index 00000000000..d3117b16f04 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-20-15-13-43.gh-issue-86802.trF7TM.rst @@ -0,0 +1,3 @@ +Fixed asyncio memory leak in cancelled shield tasks. For shielded tasks +where the shield was cancelled, log potential exceptions through the +exception handler. Contributed by Christian Harries. diff --git a/Misc/NEWS.d/next/Library/2025-05-20-19-16-30.gh-issue-134323.ZQZGvw.rst b/Misc/NEWS.d/next/Library/2025-05-20-19-16-30.gh-issue-134323.ZQZGvw.rst new file mode 100644 index 00000000000..7982b52f77a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-20-19-16-30.gh-issue-134323.ZQZGvw.rst @@ -0,0 +1 @@ +Fix the :meth:`threading.RLock.locked` method.
diff --git a/Misc/NEWS.d/next/Library/2025-05-20-21-45-58.gh-issue-90871.Gkvtp6.rst b/Misc/NEWS.d/next/Library/2025-05-20-21-45-58.gh-issue-90871.Gkvtp6.rst new file mode 100644 index 00000000000..49397c9705e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-20-21-45-58.gh-issue-90871.Gkvtp6.rst @@ -0,0 +1,2 @@ +Fixed an off by one error concerning the backlog parameter in +:meth:`~asyncio.loop.create_unix_server`. Contributed by Christian Harries. diff --git a/Misc/NEWS.d/next/Library/2025-05-22-13-10-32.gh-issue-114177.3TYUJ3.rst b/Misc/NEWS.d/next/Library/2025-05-22-13-10-32.gh-issue-114177.3TYUJ3.rst new file mode 100644 index 00000000000..c98fde5fb04 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-22-13-10-32.gh-issue-114177.3TYUJ3.rst @@ -0,0 +1 @@ +Fix :mod:`asyncio` to not close subprocess pipes which would otherwise error out when the event loop is already closed. diff --git a/Misc/NEWS.d/next/Library/2025-05-22-14-12-53.gh-issue-134451.M1rD-j.rst b/Misc/NEWS.d/next/Library/2025-05-22-14-12-53.gh-issue-134451.M1rD-j.rst new file mode 100644 index 00000000000..3c8339f8842 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-22-14-12-53.gh-issue-134451.M1rD-j.rst @@ -0,0 +1 @@ +Converted ``asyncio.tools.CycleFoundException`` from dataclass to a regular exception type. diff --git a/Misc/NEWS.d/next/Library/2025-05-22-18-14-13.gh-issue-134546.fjLVzK.rst b/Misc/NEWS.d/next/Library/2025-05-22-18-14-13.gh-issue-134546.fjLVzK.rst new file mode 100644 index 00000000000..eea897f5918 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-22-18-14-13.gh-issue-134546.fjLVzK.rst @@ -0,0 +1 @@ +Ensure :mod:`pdb` remote debugging script is readable by remote Python process. diff --git a/Misc/NEWS.d/next/Library/2025-05-23-10-15-36.gh-issue-134565.zmb66C.rst b/Misc/NEWS.d/next/Library/2025-05-23-10-15-36.gh-issue-134565.zmb66C.rst new file mode 100644 index 00000000000..17d2b23b62d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-23-10-15-36.gh-issue-134565.zmb66C.rst @@ -0,0 +1,3 @@ +:func:`unittest.doModuleCleanups` no longer swallows all but first exception +raised in the cleanup code, but raises a :exc:`ExceptionGroup` if multiple +errors occurred. diff --git a/Misc/NEWS.d/next/Library/2025-05-23-20-01-52.gh-issue-134580.xnaJ70.rst b/Misc/NEWS.d/next/Library/2025-05-23-20-01-52.gh-issue-134580.xnaJ70.rst new file mode 100644 index 00000000000..979d310d3ce --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-23-20-01-52.gh-issue-134580.xnaJ70.rst @@ -0,0 +1,3 @@ +Improved the styling of HTML diff pages generated by the +:class:`difflib.HtmlDiff` class, and migrated the output to the HTML5 +standard. diff --git a/Misc/NEWS.d/next/Library/2025-05-23-23-43-39.gh-issue-134582.9POq3l.rst b/Misc/NEWS.d/next/Library/2025-05-23-23-43-39.gh-issue-134582.9POq3l.rst new file mode 100644 index 00000000000..23e1d5891b6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-23-23-43-39.gh-issue-134582.9POq3l.rst @@ -0,0 +1 @@ +Fix tokenize.untokenize() round-trip errors related to t-strings braces escaping diff --git a/Misc/NEWS.d/next/Library/2025-05-24-03-10-36.gh-issue-80334.z21cMa.rst b/Misc/NEWS.d/next/Library/2025-05-24-03-10-36.gh-issue-80334.z21cMa.rst new file mode 100644 index 00000000000..228429516db --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-24-03-10-36.gh-issue-80334.z21cMa.rst @@ -0,0 +1,2 @@ +:func:`multiprocessing.freeze_support` now checks for work on any "spawn" +start method platform rather than only on Windows. diff --git a/Misc/NEWS.d/next/Library/2025-05-24-13-10-35.gh-issue-134210.0IuMY2.rst b/Misc/NEWS.d/next/Library/2025-05-24-13-10-35.gh-issue-134210.0IuMY2.rst new file mode 100644 index 00000000000..b440e8308db --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-24-13-10-35.gh-issue-134210.0IuMY2.rst @@ -0,0 +1,2 @@ +:func:`curses.window.getch` now correctly handles signals. Patch by Bénédikt +Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-25-13-46-37.gh-issue-134635.ZlPrlX.rst b/Misc/NEWS.d/next/Library/2025-05-25-13-46-37.gh-issue-134635.ZlPrlX.rst new file mode 100644 index 00000000000..4cabbf2f896 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-25-13-46-37.gh-issue-134635.ZlPrlX.rst @@ -0,0 +1,3 @@ +:mod:`zlib`: Allow to combine Adler-32 and CRC-32 checksums via +:func:`~zlib.adler32_combine` and :func:`~zlib.crc32_combine`. Patch by +Callum Attryde and Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-25-23-23-05.gh-issue-134151.13Wwsb.rst b/Misc/NEWS.d/next/Library/2025-05-25-23-23-05.gh-issue-134151.13Wwsb.rst new file mode 100644 index 00000000000..ecdde240b4a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-25-23-23-05.gh-issue-134151.13Wwsb.rst @@ -0,0 +1,2 @@ +:mod:`email`: Fix :exc:`TypeError` in :func:`email.utils.decode_params` +when sorting :rfc:`2231` continuations that contain an unnumbered section. diff --git a/Misc/NEWS.d/next/Library/2025-05-26-11-01-54.gh-issue-134531.my1Fzt.rst b/Misc/NEWS.d/next/Library/2025-05-26-11-01-54.gh-issue-134531.my1Fzt.rst new file mode 100644 index 00000000000..ee5690df5c4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-26-11-01-54.gh-issue-134531.my1Fzt.rst @@ -0,0 +1,2 @@ +:mod:`!_hashlib`: Rename internal C functions for :class:`!_hashlib.HASH` +and :class:`!_hashlib.HASHXOF` objects. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-26-12-31-08.gh-issue-132710.ApU3TZ.rst b/Misc/NEWS.d/next/Library/2025-05-26-12-31-08.gh-issue-132710.ApU3TZ.rst new file mode 100644 index 00000000000..b7011517aa9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-26-12-31-08.gh-issue-132710.ApU3TZ.rst @@ -0,0 +1,3 @@ +If possible, ensure that :func:`uuid.getnode` returns the same result even +across different processes. Previously, the result was constant only within +the same process. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-26-14-04-39.gh-issue-134696.P04xUa.rst b/Misc/NEWS.d/next/Library/2025-05-26-14-04-39.gh-issue-134696.P04xUa.rst new file mode 100644 index 00000000000..282eb088b89 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-26-14-04-39.gh-issue-134696.P04xUa.rst @@ -0,0 +1,5 @@ +Built-in HACL* and OpenSSL implementations of hash function constructors +now correctly accept the same *documented* named arguments. For instance, +:func:`~hashlib.md5` could be previously invoked as ``md5(data=data)`` +or ``md5(string=string)`` depending on the underlying implementation +but these calls were not compatible. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-26-17-06-40.gh-issue-134637.9-3zRL.rst b/Misc/NEWS.d/next/Library/2025-05-26-17-06-40.gh-issue-134637.9-3zRL.rst new file mode 100644 index 00000000000..2a4d8725210 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-26-17-06-40.gh-issue-134637.9-3zRL.rst @@ -0,0 +1 @@ +Fix performance regression in calling a :mod:`ctypes` function pointer in :term:`free threading`. diff --git a/Misc/NEWS.d/next/Library/2025-05-26-22-18-32.gh-issue-134771.RKXpLT.rst b/Misc/NEWS.d/next/Library/2025-05-26-22-18-32.gh-issue-134771.RKXpLT.rst new file mode 100644 index 00000000000..4b70c6ef398 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-26-22-18-32.gh-issue-134771.RKXpLT.rst @@ -0,0 +1,2 @@ +The ``time_clockid_converter()`` function now selects correct type for +``clockid_t`` on Cygwin which fixes a build error. diff --git a/Misc/NEWS.d/next/Library/2025-05-27-11-13-51.gh-issue-133579.KY9M6S.rst b/Misc/NEWS.d/next/Library/2025-05-27-11-13-51.gh-issue-133579.KY9M6S.rst new file mode 100644 index 00000000000..129d5d98425 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-27-11-13-51.gh-issue-133579.KY9M6S.rst @@ -0,0 +1,8 @@ +:ref:`curses.window <curses-window-objects>`: Consistently report failures +of curses C API calls in Window methods by raising a :exc:`curses.error`. +This affects :meth:`~curses.window.addch`, :meth:`~curses.window.addnstr`, +:meth:`~curses.window.addstr`, :meth:`~curses.window.border`, +:meth:`~curses.window.box`, :meth:`~curses.window.chgat`, +:meth:`~curses.window.getbkgd`, :meth:`~curses.window.inch`, +:meth:`~curses.window.insstr` and :meth:`~curses.window.insnstr`. +Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-27-11-18-13.gh-issue-133579.ohtgdC.rst b/Misc/NEWS.d/next/Library/2025-05-27-11-18-13.gh-issue-133579.ohtgdC.rst new file mode 100644 index 00000000000..e0ef959f125 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-27-11-18-13.gh-issue-133579.ohtgdC.rst @@ -0,0 +1,3 @@ +:meth:`curses.window.refresh` and :meth:`curses.window.noutrefresh` now raise +a :exc:`TypeError` instead of :exc:`curses.error` when called with an incorrect +number of arguments for :ref:`pads <windows-and-pads>`. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-27-11-24-38.gh-issue-133579.WGPUC1.rst b/Misc/NEWS.d/next/Library/2025-05-27-11-24-38.gh-issue-133579.WGPUC1.rst new file mode 100644 index 00000000000..552b7ca1a71 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-27-11-24-38.gh-issue-133579.WGPUC1.rst @@ -0,0 +1,7 @@ +:mod:`curses`: Consistently report failures of curses C API calls in +module-level methods by raising a :exc:`curses.error`. This affects +:func:`~curses.assume_default_colors`, :func:`~curses.baudrate`, +:func:`~curses.cbreak`, :func:`~curses.echo`, :func:`~curses.longname`, +:func:`~curses.initscr`, :func:`~curses.nl`, :func:`~curses.raw`, +:func:`~curses.termattrs`, :func:`~curses.termname` and :func:`~curses.unctrl`. +Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-05-28-15-53-27.gh-issue-128840.Nur2pB.rst b/Misc/NEWS.d/next/Library/2025-05-28-15-53-27.gh-issue-128840.Nur2pB.rst new file mode 100644 index 00000000000..faff433aa4b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-28-15-53-27.gh-issue-128840.Nur2pB.rst @@ -0,0 +1 @@ +Fix parsing long IPv6 addresses with embedded IPv4 address. diff --git a/Misc/NEWS.d/next/Library/2025-05-28-20-49-29.gh-issue-134857.dVYXVO.rst b/Misc/NEWS.d/next/Library/2025-05-28-20-49-29.gh-issue-134857.dVYXVO.rst new file mode 100644 index 00000000000..92e38c0bb5a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-28-20-49-29.gh-issue-134857.dVYXVO.rst @@ -0,0 +1,3 @@ +Improve error report for :mod:`doctest`\ s run with :mod:`unittest`. Remove +:mod:`!doctest` module frames from tracebacks and redundant newline +character from a failure message. diff --git a/Misc/NEWS.d/next/Library/2025-05-29-06-53-40.gh-issue-134885.-_L22o.rst b/Misc/NEWS.d/next/Library/2025-05-29-06-53-40.gh-issue-134885.-_L22o.rst new file mode 100644 index 00000000000..4b05d42c109 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-29-06-53-40.gh-issue-134885.-_L22o.rst @@ -0,0 +1,2 @@ +Fix possible crash in the :mod:`compression.zstd` module related to setting +parameter types. Patch by Jelle Zijlstra. diff --git a/Misc/NEWS.d/next/Library/2025-05-29-17-39-13.gh-issue-108885.MegCRA.rst b/Misc/NEWS.d/next/Library/2025-05-29-17-39-13.gh-issue-108885.MegCRA.rst new file mode 100644 index 00000000000..e37cf121f5f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-29-17-39-13.gh-issue-108885.MegCRA.rst @@ -0,0 +1,3 @@ +Run each example as a subtest in unit tests synthesized by +:func:`doctest.DocFileSuite` and :func:`doctest.DocTestSuite`. +Add the :meth:`doctest.DocTestRunner.report_skip` method. diff --git a/Misc/NEWS.d/next/Library/2025-05-30-09-46-21.gh-issue-134939.Pu3nnm.rst b/Misc/NEWS.d/next/Library/2025-05-30-09-46-21.gh-issue-134939.Pu3nnm.rst new file mode 100644 index 00000000000..2bda69bff52 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-30-09-46-21.gh-issue-134939.Pu3nnm.rst @@ -0,0 +1 @@ +Add the :mod:`concurrent.interpreters` module. See :pep:`734`. diff --git a/Misc/NEWS.d/next/Library/2025-05-30-13-07-29.gh-issue-134718.9Qvhxn.rst b/Misc/NEWS.d/next/Library/2025-05-30-13-07-29.gh-issue-134718.9Qvhxn.rst new file mode 100644 index 00000000000..922ab168fdd --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-30-13-07-29.gh-issue-134718.9Qvhxn.rst @@ -0,0 +1,2 @@ +:func:`ast.dump` now only omits ``None`` and ``[]`` values if they are +default values. diff --git a/Misc/NEWS.d/next/Library/2025-05-30-18-13-48.gh-issue-134718.5FEspx.rst b/Misc/NEWS.d/next/Library/2025-05-30-18-13-48.gh-issue-134718.5FEspx.rst new file mode 100644 index 00000000000..06c1d5583be --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-30-18-13-48.gh-issue-134718.5FEspx.rst @@ -0,0 +1 @@ +By default, omit optional ``Load()`` values in :func:`ast.dump`. diff --git a/Misc/NEWS.d/next/Library/2025-05-31-12-08-12.gh-issue-134970.lgSaxq.rst b/Misc/NEWS.d/next/Library/2025-05-31-12-08-12.gh-issue-134970.lgSaxq.rst new file mode 100644 index 00000000000..20f53569ef4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-31-12-08-12.gh-issue-134970.lgSaxq.rst @@ -0,0 +1,3 @@ +Fix the "unknown action" exception in +:meth:`argparse.ArgumentParser.add_argument_group` to correctly replace the +action class. diff --git a/Misc/NEWS.d/next/Library/2025-05-31-15-49-46.gh-issue-134978.mXXuvW.rst b/Misc/NEWS.d/next/Library/2025-05-31-15-49-46.gh-issue-134978.mXXuvW.rst new file mode 100644 index 00000000000..e75ce1622d6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-31-15-49-46.gh-issue-134978.mXXuvW.rst @@ -0,0 +1,7 @@ +:mod:`hashlib`: Supporting the ``string`` keyword parameter in hash function +constructors such as :func:`~hashlib.new` or the direct hash-named constructors +such as :func:`~hashlib.md5` and :func:`~hashlib.sha256` is now deprecated and +slated for removal in Python 3.19. +Prefer passing the initial data as a positional argument for maximum backwards +compatibility. +Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-06-01-14-18-48.gh-issue-135004.cq3-fp.rst b/Misc/NEWS.d/next/Library/2025-06-01-14-18-48.gh-issue-135004.cq3-fp.rst new file mode 100644 index 00000000000..4c59b0f8e19 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-01-14-18-48.gh-issue-135004.cq3-fp.rst @@ -0,0 +1,3 @@ +Rewrite and cleanup the internal :mod:`!_blake2` module. Some exception +messages were changed but their types were left untouched. Patch by Bénédikt +Tran. diff --git a/Misc/NEWS.d/next/Library/2025-06-01-15-13-07.gh-issue-66234.Jw7OdC.rst b/Misc/NEWS.d/next/Library/2025-06-01-15-13-07.gh-issue-66234.Jw7OdC.rst new file mode 100644 index 00000000000..1defb9a72e0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-01-15-13-07.gh-issue-66234.Jw7OdC.rst @@ -0,0 +1,3 @@ +Add the ``'m'`` flag for :func:`dbm.gnu.open` which allows to disable the +use of :manpage:`mmap(2)`. This may harm performance, but improve crash +tolerance. diff --git a/Misc/NEWS.d/next/Library/2025-06-02-14-28-30.gh-issue-130662.EIgIR8.rst b/Misc/NEWS.d/next/Library/2025-06-02-14-28-30.gh-issue-130662.EIgIR8.rst new file mode 100644 index 00000000000..e07200f9a3f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-02-14-28-30.gh-issue-130662.EIgIR8.rst @@ -0,0 +1,3 @@ +Accept leading zeros in precision and width fields for +:class:`~fractions.Fraction` formatting, for example ``format(Fraction(1, +3), '.016f')``. diff --git a/Misc/NEWS.d/next/Library/2025-06-02-14-36-28.gh-issue-130662.Gpr2GB.rst b/Misc/NEWS.d/next/Library/2025-06-02-14-36-28.gh-issue-130662.Gpr2GB.rst new file mode 100644 index 00000000000..d97d937376a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-02-14-36-28.gh-issue-130662.Gpr2GB.rst @@ -0,0 +1,3 @@ ++Accept leading zeros in precision and width fields for ++:class:`~decimal.Decimal` formatting, for example ``format(Decimal(1.25), +'.016f')``. diff --git a/Misc/NEWS.d/next/Library/2025-06-03-12-59-17.gh-issue-135069.xop30V.rst b/Misc/NEWS.d/next/Library/2025-06-03-12-59-17.gh-issue-135069.xop30V.rst new file mode 100644 index 00000000000..1affb5e2aad --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-03-12-59-17.gh-issue-135069.xop30V.rst @@ -0,0 +1,3 @@ +Fix the "Invalid error handling" exception in +:class:`!encodings.idna.IncrementalDecoder` to correctly replace the +'errors' parameter. diff --git a/Misc/NEWS.d/next/Library/2025-06-06-17-34-18.gh-issue-133934.yT1r68.rst b/Misc/NEWS.d/next/Library/2025-06-06-17-34-18.gh-issue-133934.yT1r68.rst new file mode 100644 index 00000000000..4de7b4cceca --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-06-17-34-18.gh-issue-133934.yT1r68.rst @@ -0,0 +1 @@ +Improve :mod:`sqlite3` CLI's ``.help`` message. diff --git a/Misc/NEWS.d/next/Library/2025-06-08-10-22-22.gh-issue-135244.Y2SOTJ.rst b/Misc/NEWS.d/next/Library/2025-06-08-10-22-22.gh-issue-135244.Y2SOTJ.rst new file mode 100644 index 00000000000..1f70358e64e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-08-10-22-22.gh-issue-135244.Y2SOTJ.rst @@ -0,0 +1,4 @@ +:mod:`uuid`: when the MAC address cannot be determined, the 48-bit node
+ID is now generated with a cryptographically-secure pseudo-random number
+generator (CSPRNG) as per :rfc:`RFC 9562, §6.10.3 <9562#section-6.10-3>`.
+This affects :func:`~uuid.uuid1` and :func:`~uuid.uuid6`.
diff --git a/Misc/NEWS.d/next/Library/2025-06-08-11-11-07.gh-issue-135234.wJCdh0.rst b/Misc/NEWS.d/next/Library/2025-06-08-11-11-07.gh-issue-135234.wJCdh0.rst new file mode 100644 index 00000000000..e1c11e46735 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-08-11-11-07.gh-issue-135234.wJCdh0.rst @@ -0,0 +1,3 @@ +:mod:`hashlib`: improve exception messages when an OpenSSL function failed. +When memory allocation fails on OpenSSL's side, a :exc:`MemoryError` is +raised instead of a :exc:`ValueError`. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-06-08-14-50-34.gh-issue-135276.ZLUhV1.rst b/Misc/NEWS.d/next/Library/2025-06-08-14-50-34.gh-issue-135276.ZLUhV1.rst new file mode 100644 index 00000000000..a8fbd48d08a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-08-14-50-34.gh-issue-135276.ZLUhV1.rst @@ -0,0 +1,6 @@ +Synchronized zipfile.Path with zipp 3.23, including improved performance of +:meth:`zipfile.Path.open` for non-reading modes, rely on +:func:`functools.cached_property` to cache values on the instance. Rely on +``save_method_args`` to save the initialization method arguments. Fixed +``.name``, ``.stem`` and other basename-based properties on Windows when +working with a zipfile on disk. diff --git a/Misc/NEWS.d/next/Library/2025-06-10-00-42-30.gh-issue-135321.UHh9jT.rst b/Misc/NEWS.d/next/Library/2025-06-10-00-42-30.gh-issue-135321.UHh9jT.rst new file mode 100644 index 00000000000..9e63d8e28b7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-10-00-42-30.gh-issue-135321.UHh9jT.rst @@ -0,0 +1 @@ +Raise a correct exception for values greater than 0x7fffffff for the ``BINSTRING`` opcode in the C implementation of :mod:`pickle`. diff --git a/Misc/NEWS.d/next/Library/2025-06-10-16-11-00.gh-issue-133967.P0c24q.rst b/Misc/NEWS.d/next/Library/2025-06-10-16-11-00.gh-issue-133967.P0c24q.rst new file mode 100644 index 00000000000..1976981727e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-10-16-11-00.gh-issue-133967.P0c24q.rst @@ -0,0 +1 @@ +Do not normalize :mod:`locale` name 'C.UTF-8' to 'en_US.UTF-8'. diff --git a/Misc/NEWS.d/next/Library/2025-06-10-21-42-04.gh-issue-135335.WnUqb_.rst b/Misc/NEWS.d/next/Library/2025-06-10-21-42-04.gh-issue-135335.WnUqb_.rst new file mode 100644 index 00000000000..466ba0d232c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-10-21-42-04.gh-issue-135335.WnUqb_.rst @@ -0,0 +1,2 @@ +:mod:`multiprocessing`: Flush ``stdout`` and ``stderr`` after preloading +modules in the ``forkserver``. diff --git a/Misc/NEWS.d/next/Library/2025-06-12-10-45-02.gh-issue-135368.OjWVHL.rst b/Misc/NEWS.d/next/Library/2025-06-12-10-45-02.gh-issue-135368.OjWVHL.rst new file mode 100644 index 00000000000..b9973d88a85 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-12-10-45-02.gh-issue-135368.OjWVHL.rst @@ -0,0 +1,2 @@ +Fix :class:`unittest.mock.Mock` generation on :func:`dataclasses.dataclass` +objects. Now all special attributes are set as it was before :gh:`124429`. diff --git a/Misc/NEWS.d/next/Library/2025-06-12-18-15-31.gh-issue-135429.mch75_.rst b/Misc/NEWS.d/next/Library/2025-06-12-18-15-31.gh-issue-135429.mch75_.rst new file mode 100644 index 00000000000..b5213520a95 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-12-18-15-31.gh-issue-135429.mch75_.rst @@ -0,0 +1 @@ +Fix the argument mismatch in ``_lsprof`` for ``PY_THROW`` event. diff --git a/Misc/NEWS.d/next/Library/2025-06-14-12-06-55.gh-issue-135487.KdVFff.rst b/Misc/NEWS.d/next/Library/2025-06-14-12-06-55.gh-issue-135487.KdVFff.rst new file mode 100644 index 00000000000..3ef51fa31df --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-14-12-06-55.gh-issue-135487.KdVFff.rst @@ -0,0 +1,2 @@ +Fix :meth:`!reprlib.Repr.repr_int` when given integers with more than +:func:`sys.get_int_max_str_digits` digits. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst b/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst new file mode 100644 index 00000000000..d3e81de9dbf --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst @@ -0,0 +1 @@ +Fix :func:`os.getlogin` failing for longer usernames on BSD-based platforms. diff --git a/Misc/NEWS.d/next/Library/2025-06-15-03-03-22.gh-issue-65697.COdwZd.rst b/Misc/NEWS.d/next/Library/2025-06-15-03-03-22.gh-issue-65697.COdwZd.rst new file mode 100644 index 00000000000..d374220d02f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-15-03-03-22.gh-issue-65697.COdwZd.rst @@ -0,0 +1 @@ +:class:`configparser`'s error message when attempting to write an invalid key is now more helpful. diff --git a/Misc/NEWS.d/next/Library/2025-06-16-15-03-03.gh-issue-135561.mJCN8D.rst b/Misc/NEWS.d/next/Library/2025-06-16-15-03-03.gh-issue-135561.mJCN8D.rst new file mode 100644 index 00000000000..ee743f16113 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-16-15-03-03.gh-issue-135561.mJCN8D.rst @@ -0,0 +1,2 @@ +Fix a crash on DEBUG builds when an HACL* HMAC routine fails. Patch by +Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-06-17-22-44-19.gh-issue-119180.Ogv8Nj.rst b/Misc/NEWS.d/next/Library/2025-06-17-22-44-19.gh-issue-119180.Ogv8Nj.rst new file mode 100644 index 00000000000..c5e5d5b4f8d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-17-22-44-19.gh-issue-119180.Ogv8Nj.rst @@ -0,0 +1,2 @@ +Only fetch globals and locals if necessary in +:func:`annotationlib.get_annotations` diff --git a/Misc/NEWS.d/next/Library/2025-06-17-23-13-56.gh-issue-135557.Bfcy4v.rst b/Misc/NEWS.d/next/Library/2025-06-17-23-13-56.gh-issue-135557.Bfcy4v.rst new file mode 100644 index 00000000000..eabf5ea4aaa --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-17-23-13-56.gh-issue-135557.Bfcy4v.rst @@ -0,0 +1,2 @@ +Fix races on :mod:`heapq` updates and :class:`list` reads on the :term:`free threaded <free threading>` +build. diff --git a/Misc/NEWS.d/next/Library/2025-06-18-11-43-17.gh-issue-135646.r7ekEn.rst b/Misc/NEWS.d/next/Library/2025-06-18-11-43-17.gh-issue-135646.r7ekEn.rst new file mode 100644 index 00000000000..5fbd751467d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-18-11-43-17.gh-issue-135646.r7ekEn.rst @@ -0,0 +1 @@ +Raise consistent :exc:`NameError` exceptions in :func:`annotationlib.ForwardRef.evaluate` diff --git a/Misc/NEWS.d/next/Library/2025-06-18-13-58-13.gh-issue-135645.109nff.rst b/Misc/NEWS.d/next/Library/2025-06-18-13-58-13.gh-issue-135645.109nff.rst new file mode 100644 index 00000000000..a7764a0105b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-18-13-58-13.gh-issue-135645.109nff.rst @@ -0,0 +1,2 @@ +Added ``supports_isolated_interpreters`` field to +:data:`sys.implementation`. diff --git a/Misc/NEWS.d/next/Library/2025-06-18-19-25-32.gh-issue-123471.lx1Xbt.rst b/Misc/NEWS.d/next/Library/2025-06-18-19-25-32.gh-issue-123471.lx1Xbt.rst new file mode 100644 index 00000000000..6f395024a9e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-18-19-25-32.gh-issue-123471.lx1Xbt.rst @@ -0,0 +1 @@ +Make concurrent iterations over :class:`itertools.chain` safe under :term:`free threading`. diff --git a/Misc/NEWS.d/next/Library/2025-06-20-16-28-47.gh-issue-135759.jne0Zi.rst b/Misc/NEWS.d/next/Library/2025-06-20-16-28-47.gh-issue-135759.jne0Zi.rst new file mode 100644 index 00000000000..268d7eccdab --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-20-16-28-47.gh-issue-135759.jne0Zi.rst @@ -0,0 +1,4 @@ +:mod:`hashlib`: reject negative digest lengths in OpenSSL-based SHAKE objects +by raising a :exc:`ValueError`. Previously, negative lengths were implicitly +rejected by raising a :exc:`MemoryError` or a :exc:`SystemError`. +Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-06-20-17-06-59.gh-issue-90117.GYWVrn.rst b/Misc/NEWS.d/next/Library/2025-06-20-17-06-59.gh-issue-90117.GYWVrn.rst new file mode 100644 index 00000000000..2bb15cb6d9c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-20-17-06-59.gh-issue-90117.GYWVrn.rst @@ -0,0 +1 @@ +Speed up :mod:`pprint` for :class:`list` and :class:`tuple`. diff --git a/Misc/NEWS.d/next/Library/2025-06-22-02-16-17.gh-issue-135640.FXyFL6.rst b/Misc/NEWS.d/next/Library/2025-06-22-02-16-17.gh-issue-135640.FXyFL6.rst new file mode 100644 index 00000000000..ad217b57b4b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-22-02-16-17.gh-issue-135640.FXyFL6.rst @@ -0,0 +1,4 @@ +Address bug where it was possible to call +:func:`xml.etree.ElementTree.ElementTree.write` on an ElementTree object with +an invalid root element. This behavior blanked the file passed to ``write`` +if it already existed. diff --git a/Misc/NEWS.d/next/Library/2025-06-22-16-23-44.gh-issue-135815.0DandH.rst b/Misc/NEWS.d/next/Library/2025-06-22-16-23-44.gh-issue-135815.0DandH.rst new file mode 100644 index 00000000000..0f4a68bf745 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-22-16-23-44.gh-issue-135815.0DandH.rst @@ -0,0 +1,2 @@ +:mod:`netrc`: skip security checks if :func:`os.getuid` is missing. +Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-06-22-22-03-06.gh-issue-135823.iDBg97.rst b/Misc/NEWS.d/next/Library/2025-06-22-22-03-06.gh-issue-135823.iDBg97.rst new file mode 100644 index 00000000000..5b9d89caae7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-22-22-03-06.gh-issue-135823.iDBg97.rst @@ -0,0 +1,3 @@ +:mod:`netrc`: improve the error message when the security check for the +ownership of the default configuration file ``~/.netrc`` fails. Patch by +Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-06-23-10-19-11.gh-issue-135855.-J0AGF.rst b/Misc/NEWS.d/next/Library/2025-06-23-10-19-11.gh-issue-135855.-J0AGF.rst new file mode 100644 index 00000000000..fcf495bdceb --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-23-10-19-11.gh-issue-135855.-J0AGF.rst @@ -0,0 +1,3 @@ +Raise :exc:`TypeError` instead of :exc:`SystemError` when +:func:`!_interpreters.set___main___attrs` is passed a non-dict object. +Patch by Brian Schubert. diff --git a/Misc/NEWS.d/next/Library/2025-06-23-11-04-25.gh-issue-135836.-C-c4v.rst b/Misc/NEWS.d/next/Library/2025-06-23-11-04-25.gh-issue-135836.-C-c4v.rst new file mode 100644 index 00000000000..f93c9faee58 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-23-11-04-25.gh-issue-135836.-C-c4v.rst @@ -0,0 +1 @@ +Fix :exc:`IndexError` in :meth:`asyncio.loop.create_connection` that could occur when the Happy Eyeballs algorithm resulted in an empty exceptions list during connection attempts. diff --git a/Misc/NEWS.d/next/Library/2025-06-24-10-23-37.gh-issue-135853.6xDNOG.rst b/Misc/NEWS.d/next/Library/2025-06-24-10-23-37.gh-issue-135853.6xDNOG.rst new file mode 100644 index 00000000000..3fea3bc3e7c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-24-10-23-37.gh-issue-135853.6xDNOG.rst @@ -0,0 +1,2 @@ +:mod:`math`: expose C99 :func:`~math.signbit` function to determine whether +the sign bit of a floating-point value is set. Patch by Bénédikt Tran. diff --git a/Misc/NEWS.d/next/Library/2025-06-24-10-52-35.gh-issue-135836.s37351.rst b/Misc/NEWS.d/next/Library/2025-06-24-10-52-35.gh-issue-135836.s37351.rst new file mode 100644 index 00000000000..1d1e7a2298c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-24-10-52-35.gh-issue-135836.s37351.rst @@ -0,0 +1,3 @@ +Fix :exc:`IndexError` in :meth:`asyncio.loop.create_connection` that could +occur when non-\ :exc:`OSError` exception is raised during connection and +socket's ``close()`` raises :exc:`!OSError`. diff --git a/Misc/NEWS.d/next/Library/2025-06-24-14-43-24.gh-issue-135878.Db4roX.rst b/Misc/NEWS.d/next/Library/2025-06-24-14-43-24.gh-issue-135878.Db4roX.rst new file mode 100644 index 00000000000..969cf2dfa40 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-24-14-43-24.gh-issue-135878.Db4roX.rst @@ -0,0 +1,3 @@ +Fixes a crash of :class:`types.SimpleNamespace` on :term:`free threading` builds, +when several threads were calling its :meth:`~object.__repr__` method at the +same time. diff --git a/Misc/NEWS.d/next/Library/2025-06-26-11-52-40.gh-issue-53203.TMigBr.rst b/Misc/NEWS.d/next/Library/2025-06-26-11-52-40.gh-issue-53203.TMigBr.rst new file mode 100644 index 00000000000..ba2fae49fdc --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-26-11-52-40.gh-issue-53203.TMigBr.rst @@ -0,0 +1,2 @@ +Fix :func:`time.strptime` for ``%c`` and ``%x`` formats on locales byn_ER, +wal_ET and lzh_TW, and for ``%X`` format on locales ar_SA, bg_BG and lzh_TW. diff --git a/Misc/NEWS.d/next/Library/2025-06-26-17-19-36.gh-issue-105456.eR9oHB.rst b/Misc/NEWS.d/next/Library/2025-06-26-17-19-36.gh-issue-105456.eR9oHB.rst new file mode 100644 index 00000000000..772403a240a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-26-17-19-36.gh-issue-105456.eR9oHB.rst @@ -0,0 +1,2 @@ +Removed :mod:`!sre_compile`, :mod:`!sre_constants` and :mod:`!sre_parse` +modules. diff --git a/Misc/NEWS.d/next/Library/2025-06-26-17-28-49.gh-issue-135995.pPrDCt.rst b/Misc/NEWS.d/next/Library/2025-06-26-17-28-49.gh-issue-135995.pPrDCt.rst new file mode 100644 index 00000000000..998b3cd85b1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-26-17-28-49.gh-issue-135995.pPrDCt.rst @@ -0,0 +1 @@ +In the palmos encoding, make byte ``0x9b`` decode to ``›`` (U+203A - SINGLE RIGHT-POINTING ANGLE QUOTATION MARK). diff --git a/Misc/NEWS.d/next/Library/2025-06-27-09-26-04.gh-issue-87135.33z0UW.rst b/Misc/NEWS.d/next/Library/2025-06-27-09-26-04.gh-issue-87135.33z0UW.rst new file mode 100644 index 00000000000..4b6bc74cad8 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-27-09-26-04.gh-issue-87135.33z0UW.rst @@ -0,0 +1,3 @@ +Acquiring a :class:`threading.Lock` or :class:`threading.RLock` at interpreter +shutdown will raise :exc:`PythonFinalizationError` if Python can determine +that it would otherwise deadlock. diff --git a/Misc/NEWS.d/next/Library/2025-06-27-13-34-28.gh-issue-136028.RY727g.rst b/Misc/NEWS.d/next/Library/2025-06-27-13-34-28.gh-issue-136028.RY727g.rst new file mode 100644 index 00000000000..9859df7cf6a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-27-13-34-28.gh-issue-136028.RY727g.rst @@ -0,0 +1,3 @@ +Fix parsing month names containing "İ" (U+0130, LATIN CAPITAL LETTER I WITH +DOT ABOVE) in :func:`time.strptime`. This affects locales az_AZ, ber_DZ, +ber_MA and crh_UA. diff --git a/Misc/NEWS.d/next/Library/2025-06-30-11-12-24.gh-issue-85702.0Lrbwu.rst b/Misc/NEWS.d/next/Library/2025-06-30-11-12-24.gh-issue-85702.0Lrbwu.rst new file mode 100644 index 00000000000..fc13eb1d9e0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-30-11-12-24.gh-issue-85702.0Lrbwu.rst @@ -0,0 +1,3 @@ +If ``zoneinfo._common.load_tzdata`` is given a package without a resource a +:exc:`zoneinfo.ZoneInfoNotFoundError` is raised rather than a :exc:`PermissionError`. +Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/Library/2025-07-02-10-48-21.gh-issue-136193.xfvras.rst b/Misc/NEWS.d/next/Library/2025-07-02-10-48-21.gh-issue-136193.xfvras.rst new file mode 100644 index 00000000000..801115202d0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-07-02-10-48-21.gh-issue-136193.xfvras.rst @@ -0,0 +1,2 @@ +Improve :exc:`TypeError` error message, when richcomparing two +:class:`types.SimpleNamespace` objects. diff --git a/Misc/NEWS.d/next/Library/2025-07-02-18-41-45.gh-issue-133982.7qqAn6.rst b/Misc/NEWS.d/next/Library/2025-07-02-18-41-45.gh-issue-133982.7qqAn6.rst new file mode 100644 index 00000000000..a2d0810cebe --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-07-02-18-41-45.gh-issue-133982.7qqAn6.rst @@ -0,0 +1 @@ +Update Python implementation of :class:`io.BytesIO` to be thread safe. diff --git a/Misc/NEWS.d/next/Security/2024-02-18-02-53-25.gh-issue-115322.Um2Sjx.rst b/Misc/NEWS.d/next/Security/2024-02-18-02-53-25.gh-issue-115322.Um2Sjx.rst deleted file mode 100644 index 8eb5c3ed04e..00000000000 --- a/Misc/NEWS.d/next/Security/2024-02-18-02-53-25.gh-issue-115322.Um2Sjx.rst +++ /dev/null @@ -1,5 +0,0 @@ -The underlying extension modules behind :mod:`readline`:, :mod:`subprocess`, -and :mod:`ctypes` now raise audit events on previously uncovered code paths -that could lead to file system access related to C function calling and -external binary execution. The ``ctypes.call_function`` audit hook has also -been fixed to use an unsigned value for its ``function pointer``. diff --git a/Misc/NEWS.d/next/Security/2025-01-14-11-19-07.gh-issue-128840.M1doZW.rst b/Misc/NEWS.d/next/Security/2025-01-14-11-19-07.gh-issue-128840.M1doZW.rst new file mode 100644 index 00000000000..b57ec3e70dc --- /dev/null +++ b/Misc/NEWS.d/next/Security/2025-01-14-11-19-07.gh-issue-128840.M1doZW.rst @@ -0,0 +1,2 @@ +Short-circuit the processing of long IPv6 addresses early in :mod:`ipaddress` to prevent excessive +memory consumption and a minor denial-of-service. diff --git a/Misc/NEWS.d/next/Security/2025-05-07-22-49-27.gh-issue-133623.fgWkBm.rst b/Misc/NEWS.d/next/Security/2025-05-07-22-49-27.gh-issue-133623.fgWkBm.rst new file mode 100644 index 00000000000..09279bbfb4f --- /dev/null +++ b/Misc/NEWS.d/next/Security/2025-05-07-22-49-27.gh-issue-133623.fgWkBm.rst @@ -0,0 +1 @@ +Indicate through :data:`ssl.HAS_PSK_TLS13` whether the :mod:`ssl` module supports "External PSKs" in TLSv1.3, as described in RFC 9258. Patch by Will Childs-Klein. diff --git a/Misc/NEWS.d/next/Security/2025-05-09-20-22-54.gh-issue-133767.kN2i3Q.rst b/Misc/NEWS.d/next/Security/2025-05-09-20-22-54.gh-issue-133767.kN2i3Q.rst new file mode 100644 index 00000000000..39d2f1e1a89 --- /dev/null +++ b/Misc/NEWS.d/next/Security/2025-05-09-20-22-54.gh-issue-133767.kN2i3Q.rst @@ -0,0 +1,2 @@ +Fix use-after-free in the "unicode-escape" decoder with a non-"strict" error +handler. diff --git a/Misc/NEWS.d/next/Security/2025-06-02-11-32-23.gh-issue-135034.RLGjbp.rst b/Misc/NEWS.d/next/Security/2025-06-02-11-32-23.gh-issue-135034.RLGjbp.rst new file mode 100644 index 00000000000..08a0087e203 --- /dev/null +++ b/Misc/NEWS.d/next/Security/2025-06-02-11-32-23.gh-issue-135034.RLGjbp.rst @@ -0,0 +1,6 @@ +Fixes multiple issues that allowed ``tarfile`` extraction filters +(``filter="data"`` and ``filter="tar"``) to be bypassed using crafted +symlinks and hard links. + +Addresses :cve:`2024-12718`, :cve:`2025-4138`, :cve:`2025-4330`, and :cve:`2025-4517`. + diff --git a/Misc/NEWS.d/next/Security/2025-06-13-15-55-22.gh-issue-135462.KBeJpc.rst b/Misc/NEWS.d/next/Security/2025-06-13-15-55-22.gh-issue-135462.KBeJpc.rst new file mode 100644 index 00000000000..cf9aa8dbdf2 --- /dev/null +++ b/Misc/NEWS.d/next/Security/2025-06-13-15-55-22.gh-issue-135462.KBeJpc.rst @@ -0,0 +1,4 @@ +Fix quadratic complexity in processing specially crafted input in +:class:`html.parser.HTMLParser`. End-of-file errors are now handled according +to the HTML5 specs -- comments and declarations are automatically closed, +tags are ignored. diff --git a/Misc/NEWS.d/next/Security/2025-06-18-13-28-08.gh-issue-102555.nADrzJ.rst b/Misc/NEWS.d/next/Security/2025-06-18-13-28-08.gh-issue-102555.nADrzJ.rst new file mode 100644 index 00000000000..71d15ee0852 --- /dev/null +++ b/Misc/NEWS.d/next/Security/2025-06-18-13-28-08.gh-issue-102555.nADrzJ.rst @@ -0,0 +1,3 @@ +Fix comment parsing in :class:`html.parser.HTMLParser` according to the +HTML5 standard. ``--!>`` now ends the comment. ``-- >`` no longer ends the +comment. Support abnormally ended empty comments ``<-->`` and ``<--->``. diff --git a/Misc/NEWS.d/next/Security/2025-06-25-14-13-39.gh-issue-135661.idjQ0B.rst b/Misc/NEWS.d/next/Security/2025-06-25-14-13-39.gh-issue-135661.idjQ0B.rst new file mode 100644 index 00000000000..b6f9e104e44 --- /dev/null +++ b/Misc/NEWS.d/next/Security/2025-06-25-14-13-39.gh-issue-135661.idjQ0B.rst @@ -0,0 +1,25 @@ +Fix parsing start and end tags in :class:`html.parser.HTMLParser` +according to the HTML5 standard. + +* Whitespaces no longer accepted between ``</`` and the tag name. + E.g. ``</ script>`` does not end the script section. + +* Vertical tabulation (``\v``) and non-ASCII whitespaces no longer recognized + as whitespaces. The only whitespaces are ``\t\n\r\f`` and space. + +* Null character (U+0000) no longer ends the tag name. + +* Attributes and slashes after the tag name in end tags are now ignored, + instead of terminating after the first ``>`` in quoted attribute value. + E.g. ``</script/foo=">"/>``. + +* Multiple slashes and whitespaces between the last attribute and closing ``>`` + are now ignored in both start and end tags. E.g. ``<a foo=bar/ //>``. + +* Multiple ``=`` between attribute name and value are no longer collapsed. + E.g. ``<a foo==bar>`` produces attribute "foo" with value "=bar". + +* Whitespaces between the ``=`` separator and attribute name or value are no + longer ignored. E.g. ``<a foo =bar>`` produces two attributes "foo" and + "=bar", both with value None; ``<a foo= bar>`` produces two attributes: + "foo" with value "" and "bar" with value None. diff --git a/Misc/NEWS.d/next/Security/2025-06-27-21-23-19.gh-issue-136053.QZxcee.rst b/Misc/NEWS.d/next/Security/2025-06-27-21-23-19.gh-issue-136053.QZxcee.rst new file mode 100644 index 00000000000..93caed3aa3b --- /dev/null +++ b/Misc/NEWS.d/next/Security/2025-06-27-21-23-19.gh-issue-136053.QZxcee.rst @@ -0,0 +1 @@ +:mod:`marshal`: fix a possible crash when deserializing :class:`slice` objects. diff --git a/Misc/NEWS.d/next/Tests/2025-03-17-19-47-27.gh-issue-131290.NyCIXR.rst b/Misc/NEWS.d/next/Tests/2025-03-17-19-47-27.gh-issue-131290.NyCIXR.rst deleted file mode 100644 index c6f0e0cc256..00000000000 --- a/Misc/NEWS.d/next/Tests/2025-03-17-19-47-27.gh-issue-131290.NyCIXR.rst +++ /dev/null @@ -1 +0,0 @@ -Tests in :file:`Lib/test` can now be correctly executed as standalone scripts. diff --git a/Misc/NEWS.d/next/Tests/2025-04-18-14-00-38.gh-issue-132678.j_ZKf2.rst b/Misc/NEWS.d/next/Tests/2025-04-18-14-00-38.gh-issue-132678.j_ZKf2.rst deleted file mode 100644 index e079cd46a7f..00000000000 --- a/Misc/NEWS.d/next/Tests/2025-04-18-14-00-38.gh-issue-132678.j_ZKf2.rst +++ /dev/null @@ -1,3 +0,0 @@ -Add ``--prioritize`` to ``-m test``. This option allows the user to specify -which selected tests should execute first, even if the order is otherwise -randomized. This is particularly useful for tests that run the longest. diff --git a/Misc/NEWS.d/next/Tests/2025-04-23-02-23-37.gh-issue-109981.IX3k8p.rst b/Misc/NEWS.d/next/Tests/2025-04-23-02-23-37.gh-issue-109981.IX3k8p.rst deleted file mode 100644 index 17561525830..00000000000 --- a/Misc/NEWS.d/next/Tests/2025-04-23-02-23-37.gh-issue-109981.IX3k8p.rst +++ /dev/null @@ -1,3 +0,0 @@ -The test helper that counts the list of open file descriptors now uses the
-optimised ``/dev/fd`` approach on all Apple platforms, not just macOS.
-This avoids crashes caused by guarded file descriptors.
diff --git a/Misc/NEWS.d/next/Tests/2025-04-23-12-40-27.gh-issue-91048.WJQCdV.rst b/Misc/NEWS.d/next/Tests/2025-04-23-12-40-27.gh-issue-91048.WJQCdV.rst deleted file mode 100644 index 11171739a6c..00000000000 --- a/Misc/NEWS.d/next/Tests/2025-04-23-12-40-27.gh-issue-91048.WJQCdV.rst +++ /dev/null @@ -1,2 +0,0 @@ -Add ability to externally inspect all pending asyncio tasks, even if no task -is currently entered on the event loop. diff --git a/Misc/NEWS.d/next/Tests/2025-04-29-14-56-37.gh-issue-133131.1pchjl.rst b/Misc/NEWS.d/next/Tests/2025-04-29-14-56-37.gh-issue-133131.1pchjl.rst deleted file mode 100644 index 30b0f18f8dc..00000000000 --- a/Misc/NEWS.d/next/Tests/2025-04-29-14-56-37.gh-issue-133131.1pchjl.rst +++ /dev/null @@ -1,2 +0,0 @@ -The iOS testbed will now select the most recently released "SE-class" device -for testing if a device isn't explicitly specified. diff --git a/Misc/NEWS.d/next/Tests/2025-05-08-15-06-01.gh-issue-133639.50-kbV.rst b/Misc/NEWS.d/next/Tests/2025-05-08-15-06-01.gh-issue-133639.50-kbV.rst new file mode 100644 index 00000000000..68826cd95fa --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-05-08-15-06-01.gh-issue-133639.50-kbV.rst @@ -0,0 +1,2 @@ +Fix ``TestPyReplAutoindent.test_auto_indent_default()`` doesn't run +``input_code``. diff --git a/Misc/NEWS.d/next/Tests/2025-05-09-04-11-06.gh-issue-133682.-_lwo3.rst b/Misc/NEWS.d/next/Tests/2025-05-09-04-11-06.gh-issue-133682.-_lwo3.rst new file mode 100644 index 00000000000..ebd17f73ca5 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-05-09-04-11-06.gh-issue-133682.-_lwo3.rst @@ -0,0 +1 @@ +Fixed test case ``test.test_annotationlib.TestStringFormat.test_displays`` which ensures proper handling of complex data structures (lists, sets, dictionaries, and tuples) in string annotations. diff --git a/Misc/NEWS.d/next/Tests/2025-05-09-14-54-48.gh-issue-133744.LCquu0.rst b/Misc/NEWS.d/next/Tests/2025-05-09-14-54-48.gh-issue-133744.LCquu0.rst new file mode 100644 index 00000000000..f19186db1ad --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-05-09-14-54-48.gh-issue-133744.LCquu0.rst @@ -0,0 +1,3 @@ +Fix multiprocessing interrupt test. Add an event to synchronize the parent +process with the child process: wait until the child process starts +sleeping. Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/Tests/2025-05-23-09-19-52.gh-issue-134567.hwEIMb.rst b/Misc/NEWS.d/next/Tests/2025-05-23-09-19-52.gh-issue-134567.hwEIMb.rst new file mode 100644 index 00000000000..42e4a01c0cc --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-05-23-09-19-52.gh-issue-134567.hwEIMb.rst @@ -0,0 +1,2 @@ +Expose log formatter to users in TestCase.assertLogs. +:func:`unittest.TestCase.assertLogs` will now optionally accept a formatter that will be used to format the strings in output if provided. diff --git a/Misc/NEWS.d/next/Tests/2025-06-04-13-07-44.gh-issue-135120.NapnZT.rst b/Misc/NEWS.d/next/Tests/2025-06-04-13-07-44.gh-issue-135120.NapnZT.rst new file mode 100644 index 00000000000..772173774b1 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-06-04-13-07-44.gh-issue-135120.NapnZT.rst @@ -0,0 +1 @@ +Add :func:`!test.support.subTests`. diff --git a/Misc/NEWS.d/next/Library/2025-04-13-19-17-14.gh-issue-70145.nJ2MKg.rst b/Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst index 69833981c80..2c9ecc51829 100644 --- a/Misc/NEWS.d/next/Library/2025-04-13-19-17-14.gh-issue-70145.nJ2MKg.rst +++ b/Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst @@ -1,2 +1 @@ -Add support for channels in Bluetooth HCI protocol -(:const:`~socket.BTPROTO_HCI`). +Show verbose output for failing tests during PGO profiling step with --enable-optimizations. diff --git a/Misc/NEWS.d/next/Tests/2025-06-17-08-48-08.gh-issue-132815.CY1Esu.rst b/Misc/NEWS.d/next/Tests/2025-06-17-08-48-08.gh-issue-132815.CY1Esu.rst new file mode 100644 index 00000000000..5b7485ce2d6 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-06-17-08-48-08.gh-issue-132815.CY1Esu.rst @@ -0,0 +1 @@ +Fix test__opcode: add ``JUMP_BACKWARD`` to specialization stats. diff --git a/Misc/NEWS.d/next/Tests/2025-06-19-15-29-38.gh-issue-135494.FVl9a0.rst b/Misc/NEWS.d/next/Tests/2025-06-19-15-29-38.gh-issue-135494.FVl9a0.rst new file mode 100644 index 00000000000..832d1fe033e --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-06-19-15-29-38.gh-issue-135494.FVl9a0.rst @@ -0,0 +1,2 @@ +Fix regrtest to support excluding tests from ``--pgo`` tests. Patch by +Victor Stinner. diff --git a/Misc/NEWS.d/next/Tests/2025-06-26-15-15-35.gh-issue-135966.EBpF8Y.rst b/Misc/NEWS.d/next/Tests/2025-06-26-15-15-35.gh-issue-135966.EBpF8Y.rst new file mode 100644 index 00000000000..8dc007431f3 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-06-26-15-15-35.gh-issue-135966.EBpF8Y.rst @@ -0,0 +1 @@ +The iOS testbed now handles the ``app_packages`` folder as a site directory. diff --git a/Misc/NEWS.d/next/Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst b/Misc/NEWS.d/next/Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst deleted file mode 100644 index 814f9090953..00000000000 --- a/Misc/NEWS.d/next/Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst +++ /dev/null @@ -1 +0,0 @@ -Add warning messages when :program:`pygettext` unimplemented ``-a/--extract-all`` option is called. diff --git a/Misc/NEWS.d/next/Tools-Demos/2025-03-10-08-19-22.gh-issue-130453.9B0x8k.rst b/Misc/NEWS.d/next/Tools-Demos/2025-03-10-08-19-22.gh-issue-130453.9B0x8k.rst deleted file mode 100644 index fdab48a2f7b..00000000000 --- a/Misc/NEWS.d/next/Tools-Demos/2025-03-10-08-19-22.gh-issue-130453.9B0x8k.rst +++ /dev/null @@ -1,2 +0,0 @@ -Allow passing multiple keyword arguments with the same function name in -:program:`pygettext`. diff --git a/Misc/NEWS.d/next/Tools-Demos/2025-05-19-14-57-46.gh-issue-134215.sbdDK6.rst b/Misc/NEWS.d/next/Tools-Demos/2025-05-19-14-57-46.gh-issue-134215.sbdDK6.rst new file mode 100644 index 00000000000..546ed2a56b6 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/2025-05-19-14-57-46.gh-issue-134215.sbdDK6.rst @@ -0,0 +1 @@ +:term:`REPL` import autocomplete only suggests private modules when explicitly specified. diff --git a/Misc/NEWS.d/next/Tools-Demos/2025-06-11-12-14-06.gh-issue-135379.25ttXq.rst b/Misc/NEWS.d/next/Tools-Demos/2025-06-11-12-14-06.gh-issue-135379.25ttXq.rst new file mode 100644 index 00000000000..25599a865b7 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/2025-06-11-12-14-06.gh-issue-135379.25ttXq.rst @@ -0,0 +1,4 @@ +The cases generator no longer accepts type annotations on stack items. +Conversions to non-default types are now done explictly in bytecodes.c and +optimizer_bytecodes.c. This will simplify code generation for top-of-stack +caching and other future features. diff --git a/Misc/NEWS.d/next/Tools-Demos/2025-06-26-15-58-13.gh-issue-135968.C4v_-W.rst b/Misc/NEWS.d/next/Tools-Demos/2025-06-26-15-58-13.gh-issue-135968.C4v_-W.rst new file mode 100644 index 00000000000..1c0b3825c71 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/2025-06-26-15-58-13.gh-issue-135968.C4v_-W.rst @@ -0,0 +1 @@ +Stubs for ``strip`` are now provided as part of an iOS install. diff --git a/Misc/NEWS.d/next/Windows/2025-03-27-16-22-58.gh-issue-127405.aASs2Z.rst b/Misc/NEWS.d/next/Windows/2025-03-27-16-22-58.gh-issue-127405.aASs2Z.rst deleted file mode 100644 index a6d5985ff4c..00000000000 --- a/Misc/NEWS.d/next/Windows/2025-03-27-16-22-58.gh-issue-127405.aASs2Z.rst +++ /dev/null @@ -1 +0,0 @@ -Add ``ABIFLAGS`` to :func:`sysconfig.get_config_vars` on Windows. Patch by Xuehai Pan. diff --git a/Misc/NEWS.d/next/Windows/2025-03-31-15-37-57.gh-issue-131942.jip_aL.rst b/Misc/NEWS.d/next/Windows/2025-03-31-15-37-57.gh-issue-131942.jip_aL.rst new file mode 100644 index 00000000000..837f7265bba --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-03-31-15-37-57.gh-issue-131942.jip_aL.rst @@ -0,0 +1 @@ +Use the Python-specific :c:macro:`Py_DEBUG` macro rather than :c:macro:`!_DEBUG` in Windows-related C code. Patch by Xuehai Pan. diff --git a/Misc/NEWS.d/next/Windows/2025-04-25-13-34-27.gh-issue-132930.6MJumW.rst b/Misc/NEWS.d/next/Windows/2025-04-25-13-34-27.gh-issue-132930.6MJumW.rst deleted file mode 100644 index bdf6cca2658..00000000000 --- a/Misc/NEWS.d/next/Windows/2025-04-25-13-34-27.gh-issue-132930.6MJumW.rst +++ /dev/null @@ -1,2 +0,0 @@ -Marks the installer for Windows as deprecated and updates documentation to -cover the new Python install manager. diff --git a/Misc/NEWS.d/next/Windows/2025-05-07-08-19-15.gh-issue-133537.yzf963.rst b/Misc/NEWS.d/next/Windows/2025-05-07-08-19-15.gh-issue-133537.yzf963.rst new file mode 100644 index 00000000000..94e45f9d8ee --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-07-08-19-15.gh-issue-133537.yzf963.rst @@ -0,0 +1 @@ +Avoid using console I/O in WinAPI partitions that don’t support it diff --git a/Misc/NEWS.d/next/Windows/2025-05-07-09-02-19.gh-issue-133562.lqqNW1.rst b/Misc/NEWS.d/next/Windows/2025-05-07-09-02-19.gh-issue-133562.lqqNW1.rst new file mode 100644 index 00000000000..884425b839a --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-07-09-02-19.gh-issue-133562.lqqNW1.rst @@ -0,0 +1 @@ +Disable handling of security descriptors by :func:`os.mkdir` with mode ``0o700`` on WinAPI partitions that do not support it. This only affects custom builds for specialized targets. diff --git a/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst b/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst new file mode 100644 index 00000000000..1e2a5b582cb --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst @@ -0,0 +1 @@ +Fix compile error when using a WinAPI partition that doesn't support the RPC runtime library. diff --git a/Misc/NEWS.d/next/Windows/2025-05-07-11-45-30.gh-issue-133572.Xc2zxH.rst b/Misc/NEWS.d/next/Windows/2025-05-07-11-45-30.gh-issue-133572.Xc2zxH.rst new file mode 100644 index 00000000000..993eceab0b7 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-07-11-45-30.gh-issue-133572.Xc2zxH.rst @@ -0,0 +1 @@ +Avoid LsaNtStatus to WinError conversion on unsupported WinAPI partitions. diff --git a/Misc/NEWS.d/next/Windows/2025-05-07-13-04-22.gh-issue-133580.jBMujJ.rst b/Misc/NEWS.d/next/Windows/2025-05-07-13-04-22.gh-issue-133580.jBMujJ.rst new file mode 100644 index 00000000000..414a6f87e65 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-07-13-04-22.gh-issue-133580.jBMujJ.rst @@ -0,0 +1 @@ +Fix :func:`sys.getwindowsversion` failing without setting an exception when called on some WinAPI partitions. diff --git a/Misc/NEWS.d/next/Windows/2025-05-08-19-07-26.gh-issue-133626.yFTKYK.rst b/Misc/NEWS.d/next/Windows/2025-05-08-19-07-26.gh-issue-133626.yFTKYK.rst new file mode 100644 index 00000000000..6c80d96bb83 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-08-19-07-26.gh-issue-133626.yFTKYK.rst @@ -0,0 +1,2 @@ +Ensures packages are not accidentally bundled into the traditional +installer. diff --git a/Misc/NEWS.d/next/Windows/2025-05-13-13-25-27.gh-issue-133779.-YcTBz.rst b/Misc/NEWS.d/next/Windows/2025-05-13-13-25-27.gh-issue-133779.-YcTBz.rst new file mode 100644 index 00000000000..550600d5eeb --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-13-13-25-27.gh-issue-133779.-YcTBz.rst @@ -0,0 +1,6 @@ +Reverts the change to generate different :file:`pyconfig.h` files based on +compiler settings, as it was frequently causing extension builds to break. +In particular, the ``Py_GIL_DISABLED`` preprocessor variable must now always +be defined explicitly when compiling for the experimental free-threaded +runtime. The :func:`sysconfig.get_config_var` function can be used to +determine whether the current runtime was compiled with that flag or not. diff --git a/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst b/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst new file mode 100644 index 00000000000..958f4f4a440 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst @@ -0,0 +1 @@ +Make :func:`os.path.realpath` ignore Windows error 1005 when in non-strict mode. diff --git a/Misc/NEWS.d/next/Windows/2025-05-20-21-43-20.gh-issue-130727.-69t4D.rst b/Misc/NEWS.d/next/Windows/2025-05-20-21-43-20.gh-issue-130727.-69t4D.rst new file mode 100644 index 00000000000..dc10b3e62c8 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-20-21-43-20.gh-issue-130727.-69t4D.rst @@ -0,0 +1,2 @@ +Fix a race in internal calls into WMI that can result in an "invalid handle" +exception under high load. Patch by Chris Eibl. diff --git a/Misc/NEWS.d/next/Windows/2025-06-03-18-26-54.gh-issue-135099.Q9usKm.rst b/Misc/NEWS.d/next/Windows/2025-06-03-18-26-54.gh-issue-135099.Q9usKm.rst new file mode 100644 index 00000000000..36e70b1c0d8 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-06-03-18-26-54.gh-issue-135099.Q9usKm.rst @@ -0,0 +1,2 @@ +Fix a crash that could occur on Windows when a background thread waits on a +:c:type:`PyMutex` while the main thread is shutting down the interpreter. diff --git a/Misc/externals.spdx.json b/Misc/externals.spdx.json index 13be10ca039..69f3beec82e 100644 --- a/Misc/externals.spdx.json +++ b/Misc/externals.spdx.json @@ -190,6 +190,27 @@ "name": "zlib-ng", "primaryPackagePurpose": "SOURCE", "versionInfo": "2.2.4" + }, + { + "SPDXID": "SPDXRef-PACKAGE-zstd", + "checksums": [ + { + "algorithm": "SHA256", + "checksumValue": "f24b52470d12f466e9fa4fcc94e6c530625ada51d7b36de7fdc6ed7e6f499c8e" + } + ], + "downloadLocation": "https://github.com/python/cpython-source-deps/archive/refs/tags/zstd-1.5.7.tar.gz", + "externalRefs": [ + { + "referenceCategory": "SECURITY", + "referenceLocator": "cpe:2.3:a:facebook:zstandard:1.5.7:*:*:*:*:*:*:*", + "referenceType": "cpe23Type" + } + ], + "licenseConcluded": "NOASSERTION", + "name": "zstd", + "primaryPackagePurpose": "SOURCE", + "versionInfo": "1.5.7" } ], "spdxVersion": "SPDX-2.3" diff --git a/Misc/python.man b/Misc/python.man index fa88a2586dc..612e2bbf568 100644 --- a/Misc/python.man +++ b/Misc/python.man @@ -344,6 +344,10 @@ Set implementation-specific option. The following options are available: application. Typical usage is \fBpython3 \-X importtime \-c 'import asyncio'\fR + \fB\-X importtime=2\fR enables additional output that indicates when an + imported module has already been loaded. In such cases, the string + \fBcached\fR will be printed in both time columns. + \fB\-X faulthandler\fR: enable faulthandler \fB\-X frozen_modules=\fR[\fBon\fR|\fBoff\fR]: whether or not frozen modules @@ -525,11 +529,11 @@ See also the \fB\-X frozen_modules\fR option. If this variable is set to 1, the global interpreter lock (GIL) will be forced on. Setting it to 0 forces the GIL off. Only available in builds configured with \fB\-\-disable\-gil\fP. +.IP +This is equivalent to the \fB\-X gil\fR option. .IP PYTHON_HISTORY This environment variable can be used to set the location of a history file (on Unix, it is \fI~/.python_history\fP by default). -.IP -This is equivalent to the \fB\-X gil\fR option. .IP PYTHONNODEBUGRANGES If this variable is set, it disables the inclusion of the tables mapping extra location information (end line, start column offset and end column @@ -648,9 +652,10 @@ See also the \fB\-X perf\fR option. .IP PYTHONPLATLIBDIR Override sys.platlibdir. .IP PYTHONPROFILEIMPORTTIME -If this environment variable is set to a non-empty string, Python will -show how long each import takes. This is exactly equivalent to setting -\fB\-X importtime\fP on the command line. +If this environment variable is set to \fB1\fR, Python will show +how long each import takes. If set to \fB2\fR, Python will include output for +imported modules that have already been loaded. +This is exactly equivalent to setting \fB\-X importtime\fP on the command line. .IP PYTHONPYCACHEPREFIX If this is set, Python will write \fB.pyc\fR files in a mirror directory tree at this path, instead of in \fB__pycache__\fR directories within the source diff --git a/Misc/sbom.spdx.json b/Misc/sbom.spdx.json index 4a697d047ca..738b3390885 100644 --- a/Misc/sbom.spdx.json +++ b/Misc/sbom.spdx.json @@ -314,11 +314,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "4b6e7696e8d84f322fb24b1fbb08ccb9b0e7d51b" + "checksumValue": "808af7ff8a2cb2b4ef3a9ce3dbfef58d90828c9f" }, { "algorithm": "SHA256", - "checksumValue": "50a65a34a7a7569eedf7fa864a7892eeee5840a7fdf6fa8f1e87d42c65f6c877" + "checksumValue": "6a492aa586f2d10b1b300ce8ce4c72c976ff7548fee667aded2253f99969ac87" } ], "fileName": "Modules/_hacl/Hacl_Hash_Blake2b.c" @@ -342,11 +342,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "0f75e44a42775247a46acc2beaa6bae8f199a3d9" + "checksumValue": "1bb072f2be9e5d194274fdcc87825cb094e4b32e" }, { "algorithm": "SHA256", - "checksumValue": "03b612c24193464ed6848aeebbf44f9266b78ec6eed2486056211cde8992c49a" + "checksumValue": "9eb22953ce60dde9dc970fec9dfce9d94235f4b7ccd8f0151cad4707dc835d1d" } ], "fileName": "Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c" @@ -384,11 +384,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "65bf44140691b046dcfed3ab1576dbf8bbf96dc5" + "checksumValue": "cdd6e9ca86dbede92d1a47b9224d2af70c599a71" }, { "algorithm": "SHA256", - "checksumValue": "0f98959dafffce039ade9d296f7a05bed151c9c512498f48e4b326a5523a240b" + "checksumValue": "f3204f3e60734d811b6630f879b69ce54eaf367f3fca5889c1026e7a1f3ee1e4" } ], "fileName": "Modules/_hacl/Hacl_Hash_Blake2s.c" @@ -412,11 +412,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "0da9782455923aede8d8dce9dfdc38f4fc1de572" + "checksumValue": "4056bb6e3ed184400d1610bdfd4260b3fd05ccbb" }, { "algorithm": "SHA256", - "checksumValue": "2d17ae768fd3d7d6decddd8b4aaf23ce02a809ee62bb98da32c8a7f54acf92d0" + "checksumValue": "c93746df2f219cbb1634ee6fb0ab1c4cbd381d1f36c637114c68346c9935326d" } ], "fileName": "Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c" @@ -454,11 +454,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "38e8d96ef1879480780494058a93cec181f8d6d7" + "checksumValue": "61f678cd9234c6eab5d4409ae66f470b068b959b" }, { "algorithm": "SHA256", - "checksumValue": "61e77d2063cf60c96e9ce06af215efe5d42c43026833bffed5732326fe97ed1e" + "checksumValue": "5b91ed0339074e2e546119833398e2cdb7190c33a59c405bf43b2417c789547d" } ], "fileName": "Modules/_hacl/Hacl_Hash_MD5.c" @@ -482,11 +482,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "986dd5ba0b34d15f3e5e5c656979aea1b502e8aa" + "checksumValue": "c7fc5c9721caf37c5a24c9beff27b0ac2ed68cc9" }, { "algorithm": "SHA256", - "checksumValue": "38d5f1f2e67a0eb30789f81fc56c07a6e7246e2b1be6c65485bcca1dcd0e0806" + "checksumValue": "ce08721d491f3b8a9bd4cde6c27bfcc8fc01471512ccca4bd3c0b764cb551d29" } ], "fileName": "Modules/_hacl/Hacl_Hash_SHA1.c" @@ -510,11 +510,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "f732a6710fe3e13cd28130f0f20504e347d1c412" + "checksumValue": "fffe8c4f67669ac8ccd87c2e0f95db2427481df1" }, { "algorithm": "SHA256", - "checksumValue": "86cf32e4d1f3ba93a94108271923fdafe2204447792a918acf4a2250f352dbde" + "checksumValue": "f8af382de7e29a73c726f9c70770498ddd99e2c4702489ed6e634f0b68597c95" } ], "fileName": "Modules/_hacl/Hacl_Hash_SHA2.c" @@ -538,11 +538,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "50f75337b31f509b5bfcc7ebb3d066b82a0f1b33" + "checksumValue": "77d3d879dfa5949030bca0e8ee75d3d369ec54a7" }, { "algorithm": "SHA256", - "checksumValue": "c9e1442899e5b902fa39f413f1a3131f7ab5c2283d5100dc8ac675a7d5ebbdf1" + "checksumValue": "8744f5b6e054c3e5c44f413a60f9154b76dd7230135dcee26fd063755ec64be1" } ], "fileName": "Modules/_hacl/Hacl_Hash_SHA3.c" @@ -566,11 +566,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "8140310f505bb2619a749777a91487d666237bcf" + "checksumValue": "417e68ac8498cb2f93a06a19003ea1cc3f0f6753" }, { "algorithm": "SHA256", - "checksumValue": "9d95e6a651c22185d9b7c38f363d30159f810e6fcdc2208f29492837ed891e82" + "checksumValue": "843db4bba78a476d4d53dabe4eed5c9235f490ccc9fdaf19e22af488af858920" } ], "fileName": "Modules/_hacl/Hacl_Streaming_HMAC.c" @@ -608,11 +608,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "c9651ef21479c4d8a3b04c5baa1902866dbb1cdf" + "checksumValue": "0a0b7f3714167ad45ddf5a6a48d76f525a119c9c" }, { "algorithm": "SHA256", - "checksumValue": "e039c82ba670606ca111573942baad800f75da467abbc74cd7d1fe175ebcdfaf" + "checksumValue": "135d4afb4812468885c963c9c87a55ba5fae9181df4431af5fbad08588dda229" } ], "fileName": "Modules/_hacl/Lib_Memzero0.c" @@ -622,11 +622,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "eaa543c778300238dc23034aafeada0951154af1" + "checksumValue": "911c97a0f24067635b164fbca49da76055f192cd" }, { "algorithm": "SHA256", - "checksumValue": "3fd2552d527a23110d61ad2811c774810efb1eaee008f136c2a0d609daa77f5b" + "checksumValue": "972b5111ebada8e11dd60df3119da1af505fd3e0b6c782ead6cab7f1daf134f1" } ], "fileName": "Modules/_hacl/include/krml/FStar_UInt128_Verified.h" @@ -930,11 +930,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "4a0bdb9496d49bbfa3ad50bb7854d8f099e84891" + "checksumValue": "682b069d3888f3e8f8cc90f1a49bac9d1a5903d2" }, { "algorithm": "SHA256", - "checksumValue": "b1a45149239ee7af7de769a3e9339950d47c199bb9eaa10edce8a00fde603b12" + "checksumValue": "8551d2c3fde03b92c6fab5febde00347bd9184ea0085077976863c7836e9669d" } ], "fileName": "Modules/_hacl/python_hacl_namespaces.h" @@ -1752,14 +1752,14 @@ "checksums": [ { "algorithm": "SHA256", - "checksumValue": "02dfcf0c79d488b120d7f2c2a0f9206301c7927ed5106545e0b6f2aef88da76a" + "checksumValue": "39f6fd4f2fe98aecc995a2fd980fae0e0835cef6e563ebbf25f69d3d3102bafd" } ], - "downloadLocation": "https://github.com/hacl-star/hacl-star/archive/7720f6d4fc0468a99d5ea6120976bcc271e42727.zip", + "downloadLocation": "https://github.com/hacl-star/hacl-star/archive/4ef25b547b377dcef855db4289c6a00580e7221c.zip", "externalRefs": [ { "referenceCategory": "SECURITY", - "referenceLocator": "cpe:2.3:a:hacl-star:hacl-star:7720f6d4fc0468a99d5ea6120976bcc271e42727:*:*:*:*:*:*:*", + "referenceLocator": "cpe:2.3:a:hacl-star:hacl-star:4ef25b547b377dcef855db4289c6a00580e7221c:*:*:*:*:*:*:*", "referenceType": "cpe23Type" } ], @@ -1767,7 +1767,7 @@ "name": "hacl-star", "originator": "Organization: HACL* Developers", "primaryPackagePurpose": "SOURCE", - "versionInfo": "7720f6d4fc0468a99d5ea6120976bcc271e42727" + "versionInfo": "4ef25b547b377dcef855db4289c6a00580e7221c" }, { "SPDXID": "SPDXRef-PACKAGE-macholib", diff --git a/Misc/stable_abi.toml b/Misc/stable_abi.toml index d3e1f0db057..1f323cc0397 100644 --- a/Misc/stable_abi.toml +++ b/Misc/stable_abi.toml @@ -888,6 +888,7 @@ added = '3.2' [function.PyImport_ImportModuleNoBlock] added = '3.2' + abi_only = true [function.PyImport_ReloadModule] added = '3.2' [function.PyInterpreterState_Clear] @@ -1462,14 +1463,18 @@ added = '3.2' [function.PyUnicode_AsDecodedObject] added = '3.2' + abi_only = true [function.PyUnicode_AsDecodedUnicode] added = '3.2' + abi_only = true [function.PyUnicode_AsEncodedObject] added = '3.2' + abi_only = true [function.PyUnicode_AsEncodedString] added = '3.2' [function.PyUnicode_AsEncodedUnicode] added = '3.2' + abi_only = true [function.PyUnicode_AsLatin1String] added = '3.2' [function.PyUnicode_AsRawUnicodeEscapeString] @@ -1632,18 +1637,24 @@ added = '3.2' [function.Py_GetExecPrefix] added = '3.2' + abi_only = true [function.Py_GetPath] added = '3.2' + abi_only = true [function.Py_GetPlatform] added = '3.2' [function.Py_GetPrefix] added = '3.2' + abi_only = true [function.Py_GetProgramFullPath] added = '3.2' + abi_only = true [function.Py_GetProgramName] added = '3.2' + abi_only = true [function.Py_GetPythonHome] added = '3.2' + abi_only = true [function.Py_GetRecursionLimit] added = '3.2' [function.Py_GetVersion] @@ -2564,3 +2575,11 @@ added = '3.14' [function.Py_PACK_VERSION] added = '3.14' +[function.PySys_GetAttr] + added = '3.15' +[function.PySys_GetAttrString] + added = '3.15' +[function.PySys_GetOptionalAttr] + added = '3.15' +[function.PySys_GetOptionalAttrString] + added = '3.15' |