diff options
Diffstat (limited to 'Misc')
184 files changed, 2152 insertions, 415 deletions
diff --git a/Misc/ACKS b/Misc/ACKS index 42068ec6aef..610dcf9f423 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -966,6 +966,7 @@ Beomsoo Bombs Kim Derek D. Kim Gihwan Kim Jan Kim +Noah Kim Taek Joo Kim Yeojin Kim Sam Kimbrel 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/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-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/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-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/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-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-03-28-15-06-55.gh-issue-126835.IpcMTn.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-03-28-15-06-55.gh-issue-126835.IpcMTn.rst deleted file mode 100644 index caa7784acd7..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-03-28-15-06-55.gh-issue-126835.IpcMTn.rst +++ /dev/null @@ -1,3 +0,0 @@ -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). 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-01-50-40.gh-issue-132457.1q-1xz.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-04-13-01-50-40.gh-issue-132457.1q-1xz.rst deleted file mode 100644 index 5249ff8ef2d..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-04-13-01-50-40.gh-issue-132457.1q-1xz.rst +++ /dev/null @@ -1 +0,0 @@ -Make :func:`staticmethod` and :func:`classmethod` generic. 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-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-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-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-07-41-21.gh-issue-133304.YMuSne.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-07-41-21.gh-issue-133304.YMuSne.rst deleted file mode 100644 index 64ae40a79a4..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-07-41-21.gh-issue-133304.YMuSne.rst +++ /dev/null @@ -1,2 +0,0 @@ -Workaround NaN's "canonicalization" in :c:func:`PyFloat_Pack4` -and :c:func:`PyFloat_Unpack4` on RISC-V. diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-19-04-03.gh-issue-91048.S8QWSw.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-19-04-03.gh-issue-91048.S8QWSw.rst deleted file mode 100644 index 1d45868b7b2..00000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2025-05-03-19-04-03.gh-issue-91048.S8QWSw.rst +++ /dev/null @@ -1,6 +0,0 @@ -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. 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/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/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/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-05-18-19-12-58.bpo-44172.rJ_-CI.rst b/Misc/NEWS.d/next/Library/2021-05-18-19-12-58.bpo-44172.rJ_-CI.rst deleted file mode 100644 index d53f3725100..00000000000 --- a/Misc/NEWS.d/next/Library/2021-05-18-19-12-58.bpo-44172.rJ_-CI.rst +++ /dev/null @@ -1,2 +0,0 @@ -Keep a reference to original :mod:`curses` windows in subwindows so -that the original window does not get deleted before subwindows. 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-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-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-08-02-20-01-36.gh-issue-122559.2JlJr3.rst b/Misc/NEWS.d/next/Library/2024-08-02-20-01-36.gh-issue-122559.2JlJr3.rst deleted file mode 100644 index 4ef9daa1bac..00000000000 --- a/Misc/NEWS.d/next/Library/2024-08-02-20-01-36.gh-issue-122559.2JlJr3.rst +++ /dev/null @@ -1,6 +0,0 @@ -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. 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-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-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-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-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-17-34-27.gh-issue-131524.Vj1pO_.rst b/Misc/NEWS.d/next/Library/2025-03-21-17-34-27.gh-issue-131524.Vj1pO_.rst deleted file mode 100644 index 28926d06ca4..00000000000 --- a/Misc/NEWS.d/next/Library/2025-03-21-17-34-27.gh-issue-131524.Vj1pO_.rst +++ /dev/null @@ -1,2 +0,0 @@ -Add help message to :mod:`platform` command-line interface. Contributed by -Harry Lees. 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-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-19-17-14.gh-issue-70145.nJ2MKg.rst b/Misc/NEWS.d/next/Library/2025-04-13-19-17-14.gh-issue-70145.nJ2MKg.rst deleted file mode 100644 index 69833981c80..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-13-19-17-14.gh-issue-70145.nJ2MKg.rst +++ /dev/null @@ -1,2 +0,0 @@ -Add support for channels in Bluetooth HCI protocol -(:const:`~socket.BTPROTO_HCI`). diff --git a/Misc/NEWS.d/next/Library/2025-04-13-21-11-11.gh-issue-132426.SZno1d.rst b/Misc/NEWS.d/next/Library/2025-04-13-21-11-11.gh-issue-132426.SZno1d.rst deleted file mode 100644 index 1f2b9a2df93..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-13-21-11-11.gh-issue-132426.SZno1d.rst +++ /dev/null @@ -1,3 +0,0 @@ -Add :func:`annotationlib.get_annotate_from_class_namespace` as a helper for -accessing annotations in metaclasses, and remove -``annotationlib.get_annotate_function``. 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-17-24-50.gh-issue-81793.OhRTTT.rst b/Misc/NEWS.d/next/Library/2025-04-14-17-24-50.gh-issue-81793.OhRTTT.rst deleted file mode 100644 index 842e973b821..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-14-17-24-50.gh-issue-81793.OhRTTT.rst +++ /dev/null @@ -1,7 +0,0 @@ -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. 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-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-22-13-42-12.gh-issue-132805.r-dhmJ.rst b/Misc/NEWS.d/next/Library/2025-04-22-13-42-12.gh-issue-132805.r-dhmJ.rst deleted file mode 100644 index d62b95775a6..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-22-13-42-12.gh-issue-132805.r-dhmJ.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix incorrect handling of nested non-constant values in the FORWARDREF -format in :mod:`annotationlib`. diff --git a/Misc/NEWS.d/next/Library/2025-04-22-16-35-37.gh-issue-125618.PEocn3.rst b/Misc/NEWS.d/next/Library/2025-04-22-16-35-37.gh-issue-125618.PEocn3.rst deleted file mode 100644 index 42ecf5c558f..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-22-16-35-37.gh-issue-125618.PEocn3.rst +++ /dev/null @@ -1,3 +0,0 @@ -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. 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-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-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-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-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-13-40-05.gh-issue-133139.9yCcC2.rst b/Misc/NEWS.d/next/Library/2025-04-29-13-40-05.gh-issue-133139.9yCcC2.rst deleted file mode 100644 index 526187d924b..00000000000 --- a/Misc/NEWS.d/next/Library/2025-04-29-13-40-05.gh-issue-133139.9yCcC2.rst +++ /dev/null @@ -1,3 +0,0 @@ -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``. 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-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-02-21-35-03.gh-issue-133306.-vBye5.rst b/Misc/NEWS.d/next/Library/2025-05-02-21-35-03.gh-issue-133306.-vBye5.rst deleted file mode 100644 index d0973af5ffc..00000000000 --- a/Misc/NEWS.d/next/Library/2025-05-02-21-35-03.gh-issue-133306.-vBye5.rst +++ /dev/null @@ -1 +0,0 @@ -Support ``\z`` as a synonym for ``\Z`` in :mod:`regular expressions <re>`. diff --git a/Misc/NEWS.d/next/Library/2025-05-03-13-19-22.gh-issue-133306.ustKV3.rst b/Misc/NEWS.d/next/Library/2025-05-03-13-19-22.gh-issue-133306.ustKV3.rst deleted file mode 100644 index 5ec4860f553..00000000000 --- a/Misc/NEWS.d/next/Library/2025-05-03-13-19-22.gh-issue-133306.ustKV3.rst +++ /dev/null @@ -1,2 +0,0 @@ -Use ``\z`` instead of ``\Z`` in :func:`fnmatch.translate` and -:func:`glob.translate`. diff --git a/Misc/NEWS.d/next/Library/2025-05-03-21-55-33.gh-issue-133363.PTLnRP.rst b/Misc/NEWS.d/next/Library/2025-05-03-21-55-33.gh-issue-133363.PTLnRP.rst deleted file mode 100644 index d44c685e75e..00000000000 --- a/Misc/NEWS.d/next/Library/2025-05-03-21-55-33.gh-issue-133363.PTLnRP.rst +++ /dev/null @@ -1,3 +0,0 @@ -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 ``!``. diff --git a/Misc/NEWS.d/next/Library/2025-05-04-13-46-20.gh-issue-133351.YsZls1.rst b/Misc/NEWS.d/next/Library/2025-05-04-13-46-20.gh-issue-133351.YsZls1.rst deleted file mode 100644 index c843f3e6888..00000000000 --- a/Misc/NEWS.d/next/Library/2025-05-04-13-46-20.gh-issue-133351.YsZls1.rst +++ /dev/null @@ -1,3 +0,0 @@ -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. 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-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/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/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/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/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-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/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..15174b62d5f 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 @@ -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 |