[3.12] NEWS: Fix Sphinx warnings and increase threshold for new news nits (GH-121482) (#121514)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Hugo van Kemenade 2024-07-13 14:54:50 +02:00 committed by GitHub
parent 32bbc36796
commit 377ff9d584
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 89 additions and 85 deletions

View file

@ -256,6 +256,9 @@ nitpick_ignore += [
('c:data', 'PyExc_UnicodeWarning'), ('c:data', 'PyExc_UnicodeWarning'),
('c:data', 'PyExc_UserWarning'), ('c:data', 'PyExc_UserWarning'),
('c:data', 'PyExc_Warning'), ('c:data', 'PyExc_Warning'),
# Undocumented public C macros
('c:macro', 'Py_BUILD_ASSERT'),
('c:macro', 'Py_BUILD_ASSERT_EXPR'),
# Do not error nit-picky mode builds when _SubParsersAction.add_parser cannot # Do not error nit-picky mode builds when _SubParsersAction.add_parser cannot
# be resolved, as the method is currently undocumented. For context, see # be resolved, as the method is currently undocumented. For context, see
# https://github.com/python/cpython/pull/103289. # https://github.com/python/cpython/pull/103289.

View file

@ -692,7 +692,7 @@ you are using :class:`profile.Profile` or :class:`cProfile.Profile`,
As the :class:`cProfile.Profile` class cannot be calibrated, custom timer As the :class:`cProfile.Profile` class cannot be calibrated, custom timer
functions should be used with care and should be as fast as possible. For functions should be used with care and should be as fast as possible. For
the best results with a custom timer, it might be necessary to hard-code it the best results with a custom timer, it might be necessary to hard-code it
in the C source of the internal :mod:`_lsprof` module. in the C source of the internal :mod:`!_lsprof` module.
Python 3.3 adds several new functions in :mod:`time` that can be used to make Python 3.3 adds several new functions in :mod:`time` that can be used to make
precise measurements of process or wall-clock time. For example, see precise measurements of process or wall-clock time. For example, see

View file

@ -14,7 +14,7 @@ from pathlib import Path
from typing import TextIO from typing import TextIO
# Fail if NEWS nit found before this line number # Fail if NEWS nit found before this line number
NEWS_NIT_THRESHOLD = 200 NEWS_NIT_THRESHOLD = 300
# Exclude these whether they're dirty or clean, # Exclude these whether they're dirty or clean,
# because they trigger a rebuild of dirty files. # because they trigger a rebuild of dirty files.

View file

@ -1495,7 +1495,7 @@ The dictionary returned by :meth:`.SSLSocket.getpeercert` contains additional
stat stat
---- ----
The :mod:`stat` module is now backed by a C implementation in :mod:`_stat`. A C The :mod:`stat` module is now backed by a C implementation in :mod:`!_stat`. A C
implementation is required as most of the values aren't standardized and implementation is required as most of the values aren't standardized and
are platform-dependent. (Contributed by Christian Heimes in :issue:`11016`.) are platform-dependent. (Contributed by Christian Heimes in :issue:`11016`.)

View file

@ -1935,8 +1935,8 @@ specifying the namespace in which the code will be running.
tkinter tkinter
------- -------
The :mod:`tkinter._fix` module used for setting up the Tcl/Tk environment The :mod:`!tkinter._fix` module used for setting up the Tcl/Tk environment
on Windows has been replaced by a private function in the :mod:`_tkinter` on Windows has been replaced by a private function in the :mod:`!_tkinter`
module which makes no permanent changes to environment variables. module which makes no permanent changes to environment variables.
(Contributed by Zachary Ware in :issue:`20035`.) (Contributed by Zachary Ware in :issue:`20035`.)

View file

@ -2048,7 +2048,7 @@ The :mod:`macpath` is now deprecated and will be removed in Python 3.8.
threading threading
--------- ---------
:mod:`dummy_threading` and :mod:`_dummy_thread` have been deprecated. It is :mod:`!dummy_threading` and :mod:`!_dummy_thread` have been deprecated. It is
no longer possible to build Python with threading disabled. no longer possible to build Python with threading disabled.
Use :mod:`threading` instead. Use :mod:`threading` instead.
(Contributed by Antoine Pitrou in :issue:`31370`.) (Contributed by Antoine Pitrou in :issue:`31370`.)
@ -2184,7 +2184,7 @@ The following features and APIs have been removed from Python 3.7:
``socket.socketpair`` on Python 3.5 and newer. ``socket.socketpair`` on Python 3.5 and newer.
* :mod:`asyncio` no longer exports the :mod:`selectors` and * :mod:`asyncio` no longer exports the :mod:`selectors` and
:mod:`_overlapped` modules as ``asyncio.selectors`` and :mod:`!_overlapped` modules as ``asyncio.selectors`` and
``asyncio._overlapped``. Replace ``from asyncio import selectors`` with ``asyncio._overlapped``. Replace ``from asyncio import selectors`` with
``import selectors``. ``import selectors``.

View file

@ -3952,7 +3952,7 @@ Library
- Issue #18626: the inspect module now offers a basic command line - Issue #18626: the inspect module now offers a basic command line
introspection interface (Initial patch by Claudiu Popa) introspection interface (Initial patch by Claudiu Popa)
- Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call - Issue #3015: Fixed tkinter with ``wantobjects=False``. Any Tcl command call
returned empty string. returned empty string.
- Issue #19037: The mailbox module now makes all changes to maildir files - Issue #19037: The mailbox module now makes all changes to maildir files

View file

@ -97,7 +97,7 @@ convention. Patch by Donghee Na.
.. nonce: aJS9B3 .. nonce: aJS9B3
.. section: Core and Builtins .. section: Core and Builtins
Port the :mod:`_bisect` module to the multi-phase initialization API Port the :mod:`!_bisect` module to the multi-phase initialization API
(:pep:`489`). (:pep:`489`).
.. ..
@ -128,7 +128,7 @@ Taskaya.
.. nonce: lh335O .. nonce: lh335O
.. section: Core and Builtins .. section: Core and Builtins
Port the :mod:`_lsprof` extension module to multi-phase initialization Port the :mod:`!_lsprof` extension module to multi-phase initialization
(:pep:`489`). (:pep:`489`).
.. ..
@ -148,7 +148,7 @@ Port the :mod:`cmath` extension module to multi-phase initialization
.. nonce: jiXmyT .. nonce: jiXmyT
.. section: Core and Builtins .. section: Core and Builtins
Port the :mod:`_scproxy` extension module to multi-phase initialization Port the :mod:`!_scproxy` extension module to multi-phase initialization
(:pep:`489`). (:pep:`489`).
.. ..
@ -168,7 +168,7 @@ Port the :mod:`termios` extension module to multi-phase initialization
.. nonce: QuDIut .. nonce: QuDIut
.. section: Core and Builtins .. section: Core and Builtins
Convert the :mod:`_sha256` extension module types to heap types. Convert the :mod:`!_sha256` extension module types to heap types.
.. ..
@ -187,7 +187,7 @@ classes with a huge amount of arguments. Patch by Pablo Galindo.
.. nonce: CnRME3 .. nonce: CnRME3
.. section: Core and Builtins .. section: Core and Builtins
Port the :mod:`_overlapped` extension module to multi-phase initialization Port the :mod:`!_overlapped` extension module to multi-phase initialization
(:pep:`489`). (:pep:`489`).
.. ..
@ -197,7 +197,7 @@ Port the :mod:`_overlapped` extension module to multi-phase initialization
.. nonce: X9CZgo .. nonce: X9CZgo
.. section: Core and Builtins .. section: Core and Builtins
Port the :mod:`_curses_panel` extension module to multi-phase initialization Port the :mod:`!_curses_panel` extension module to multi-phase initialization
(:pep:`489`). (:pep:`489`).
.. ..
@ -207,7 +207,7 @@ Port the :mod:`_curses_panel` extension module to multi-phase initialization
.. nonce: 5jZymK .. nonce: 5jZymK
.. section: Core and Builtins .. section: Core and Builtins
Port the :mod:`_opcode` extension module to multi-phase initialization Port the :mod:`!_opcode` extension module to multi-phase initialization
(:pep:`489`). (:pep:`489`).
.. ..
@ -282,7 +282,7 @@ initialized ``_ast`` module.
.. nonce: vcxSUa .. nonce: vcxSUa
.. section: Core and Builtins .. section: Core and Builtins
Convert :mod:`_operator` to use :c:func:`PyType_FromSpec`. Convert :mod:`!_operator` to use :c:func:`PyType_FromSpec`.
.. ..
@ -291,7 +291,7 @@ Convert :mod:`_operator` to use :c:func:`PyType_FromSpec`.
.. nonce: fubBkb .. nonce: fubBkb
.. section: Core and Builtins .. section: Core and Builtins
Port :mod:`_sha3` to multi-phase init. Convert static types to heap types. Port :mod:`!_sha3` to multi-phase init. Convert static types to heap types.
.. ..
@ -300,7 +300,7 @@ Port :mod:`_sha3` to multi-phase init. Convert static types to heap types.
.. nonce: FC13e7 .. nonce: FC13e7
.. section: Core and Builtins .. section: Core and Builtins
Port the :mod:`_blake2` extension module to the multi-phase initialization Port the :mod:`!_blake2` extension module to the multi-phase initialization
API (:pep:`489`). API (:pep:`489`).
.. ..
@ -339,7 +339,7 @@ The output of ``python --help`` contains now only ASCII characters.
.. nonce: O0d3ym .. nonce: O0d3ym
.. section: Core and Builtins .. section: Core and Builtins
Port the :mod:`_sha1`, :mod:`_sha512`, and :mod:`_md5` extension modules to Port the :mod:`!_sha1`, :mod:`!_sha512`, and :mod:`!_md5` extension modules to
multi-phase initialization API (:pep:`489`). multi-phase initialization API (:pep:`489`).
.. ..
@ -636,7 +636,7 @@ Remove the remaining files from the old parser and the :mod:`symbol` module.
.. nonce: _yI-ax .. nonce: _yI-ax
.. section: Core and Builtins .. section: Core and Builtins
Convert :mod:`_bz2` to use :c:func:`PyType_FromSpec`. Convert :mod:`!_bz2` to use :c:func:`PyType_FromSpec`.
.. ..
@ -666,7 +666,7 @@ by Brandt Bucher.
.. nonce: 61iyYh .. nonce: 61iyYh
.. section: Core and Builtins .. section: Core and Builtins
Port :mod:`_gdbm` to multiphase initialization. Port :mod:`!_gdbm` to multiphase initialization.
.. ..
@ -696,7 +696,7 @@ for emitting syntax errors. Patch by Pablo Galindo.
.. nonce: mmlp3Q .. nonce: mmlp3Q
.. section: Core and Builtins .. section: Core and Builtins
Port :mod:`_dbm` to multiphase initialization. Port :mod:`!_dbm` to multiphase initialization.
.. ..
@ -1010,7 +1010,7 @@ Port :mod:`mmap` to multiphase initialization.
.. nonce: Kfe9fT .. nonce: Kfe9fT
.. section: Core and Builtins .. section: Core and Builtins
Port :mod:`_lzma` to multiphase initialization. Port :mod:`!_lzma` to multiphase initialization.
.. ..

View file

@ -362,7 +362,7 @@ plistlib: fix parsing XML plists with hexadecimal integer values
.. nonce: 85BsRA .. nonce: 85BsRA
.. section: Library .. section: Library
Fix an incorrectly formatted error from :meth:`_codecs.charmap_decode` when Fix an incorrectly formatted error from :meth:`!_codecs.charmap_decode` when
called with a mapped value outside the range of valid Unicode code points. called with a mapped value outside the range of valid Unicode code points.
PR by Max Bernstein. PR by Max Bernstein.

View file

@ -1386,7 +1386,7 @@ Python already implicitly installs signal handlers: see
The ``Py_TRASHCAN_BEGIN`` macro no longer accesses PyTypeObject attributes, The ``Py_TRASHCAN_BEGIN`` macro no longer accesses PyTypeObject attributes,
but now can get the condition by calling the new private but now can get the condition by calling the new private
:c:func:`_PyTrash_cond()` function which hides implementation details. :c:func:`!_PyTrash_cond()` function which hides implementation details.
.. ..

View file

@ -193,7 +193,7 @@ subinterpreters. Patch by Victor Stinner.
.. nonce: j7nl6A .. nonce: j7nl6A
.. section: Core and Builtins .. section: Core and Builtins
Make :c:func:`_PyUnicode_FromId` function compatible with subinterpreters. Make :c:func:`!_PyUnicode_FromId` function compatible with subinterpreters.
Each interpreter now has an array of identifier objects (interned strings Each interpreter now has an array of identifier objects (interned strings
decoded from UTF-8). Patch by Victor Stinner. decoded from UTF-8). Patch by Victor Stinner.
@ -367,7 +367,7 @@ uses "options" instead.
.. nonce: Quy3zn .. nonce: Quy3zn
.. section: Library .. section: Library
Port the :mod:`_thread` extension module to the multiphase initialization Port the :mod:`!_thread` extension module to the multiphase initialization
API (:pep:`489`) and convert its static types to heap types. API (:pep:`489`) and convert its static types to heap types.
.. ..
@ -960,8 +960,8 @@ explicitly and so not exported.
.. nonce: Je08Ny .. nonce: Je08Ny
.. section: C API .. section: C API
Remove the private :c:func:`_Py_fopen` function which is no longer needed. Remove the private :c:func:`!_Py_fopen` function which is no longer needed.
Use :c:func:`_Py_wfopen` or :c:func:`_Py_fopen_obj` instead. Patch by Victor Use :c:func:`!_Py_wfopen` or :c:func:`!_Py_fopen_obj` instead. Patch by Victor
Stinner. Stinner.
.. ..

View file

@ -108,7 +108,7 @@ a slice at the start of the ``bytearray`` to a shorter byte string).
.. nonce: WfTdfg .. nonce: WfTdfg
.. section: Core and Builtins .. section: Core and Builtins
Fix the :c:func:`_PyUnicode_FromId` function (_Py_IDENTIFIER(var) API) when Fix the :c:func:`!_PyUnicode_FromId` function (_Py_IDENTIFIER(var) API) when
:c:func:`Py_Initialize` / :c:func:`Py_Finalize` is called multiple times: :c:func:`Py_Initialize` / :c:func:`Py_Finalize` is called multiple times:
preserve ``_PyRuntime.unicode_ids.next_index`` value. preserve ``_PyRuntime.unicode_ids.next_index`` value.

View file

@ -315,7 +315,7 @@ Adds :const:`resource.RLIMIT_KQUEUES` constant from FreeBSD to the
.. section: Library .. section: Library
Make the pure Python implementation of :mod:`xml.etree.ElementTree` behave Make the pure Python implementation of :mod:`xml.etree.ElementTree` behave
the same as the C implementation (:mod:`_elementree`) regarding default the same as the C implementation (:mod:`!_elementree`) regarding default
attribute values (by not setting ``specified_attributes=1``). attribute values (by not setting ``specified_attributes=1``).
.. ..

View file

@ -83,7 +83,7 @@ instruction dispatch a bit.
.. nonce: PhaT-B .. nonce: PhaT-B
.. section: Core and Builtins .. section: Core and Builtins
Fix reference leak in the :mod:`_hashopenssl` extension. Patch by Pablo Fix reference leak in the :mod:`!_hashopenssl` extension. Patch by Pablo
Galindo. Galindo.
.. ..

View file

@ -182,7 +182,7 @@ normally be possible, but might occur in some unusual circumstances.
.. nonce: u5Y6bS .. nonce: u5Y6bS
.. section: Core and Builtins .. section: Core and Builtins
Importing the :mod:`_signal` module in a subinterpreter has no longer side Importing the :mod:`!_signal` module in a subinterpreter has no longer side
effects. effects.
.. ..
@ -776,11 +776,11 @@ builtins.open() is now io.open().
.. nonce: o1zEk_ .. nonce: o1zEk_
.. section: Library .. section: Library
The Python :func:`_pyio.open` function becomes a static method to behave as The Python :func:`!_pyio.open` function becomes a static method to behave as
:func:`io.open` built-in function: don't become a bound method when stored :func:`io.open` built-in function: don't become a bound method when stored
as a class variable. It becomes possible since static methods are now as a class variable. It becomes possible since static methods are now
callable in Python 3.10. Moreover, :func:`_pyio.OpenWrapper` becomes a callable in Python 3.10. Moreover, :func:`!_pyio.OpenWrapper` becomes a
simple alias to :func:`_pyio.open`. Patch by Victor Stinner. simple alias to :func:`!_pyio.open`. Patch by Victor Stinner.
.. ..

View file

@ -613,7 +613,7 @@ Rename ``types.Union`` to ``types.UnionType``.
.. section: Core and Builtins .. section: Core and Builtins
Expose specialization stats in python via Expose specialization stats in python via
:func:`_opcode.get_specialization_stats`. :func:`!_opcode.get_specialization_stats`.
.. ..
@ -1701,7 +1701,7 @@ Remove many old deprecated :mod:`unittest` features:
.. nonce: y1kEfP .. nonce: y1kEfP
.. section: Library .. section: Library
Remove the deprecated ``split()`` method of :class:`_tkinter.TkappType`. Remove the deprecated ``split()`` method of :class:`!_tkinter.TkappType`.
Patch by Erlend E. Aasland. Patch by Erlend E. Aasland.
.. ..
@ -2298,9 +2298,9 @@ Adopt *binacii.a2b_base64*'s strict mode in *base64.b64decode*.
.. nonce: ThuDMI .. nonce: ThuDMI
.. section: Library .. section: Library
Fixed a bug in the :mod:`_ssl` module that was throwing :exc:`OverflowError` Fixed a bug in the :mod:`!_ssl` module that was throwing :exc:`OverflowError`
when using :meth:`_ssl._SSLSocket.write` and :meth:`_ssl._SSLSocket.read` when using :meth:`!_ssl._SSLSocket.write` and :meth:`!_ssl._SSLSocket.read`
for a big value of the ``len`` parameter. Patch by Pablo Galindo for a big value of the ``len`` parameter. Patch by Pablo Galindo.
.. ..
@ -2398,7 +2398,7 @@ class in the interactive session. Instead of :exc:`TypeError`, it should be
.. nonce: R3IcM1 .. nonce: R3IcM1
.. section: Library .. section: Library
Fix memory leak in :func:`_tkinter._flatten` if it is called with a sequence Fix memory leak in :func:`!_tkinter._flatten` if it is called with a sequence
or set, but not list or tuple. or set, but not list or tuple.
.. ..
@ -4187,7 +4187,7 @@ Add calls of :func:`gc.collect` in tests to support PyPy.
.. nonce: mQZdXU .. nonce: mQZdXU
.. section: Tests .. section: Tests
Made tests relying on the :mod:`_asyncio` C extension module optional to Made tests relying on the :mod:`!_asyncio` C extension module optional to
allow running on alternative Python implementations. Patch by Serhiy allow running on alternative Python implementations. Patch by Serhiy
Storchaka. Storchaka.

View file

@ -15,7 +15,7 @@ Improve the :exc:`SyntaxError` message when using ``True``, ``None`` or
.. section: Core and Builtins .. section: Core and Builtins
:data:`sys.stdlib_module_names` now contains the macOS-specific module :data:`sys.stdlib_module_names` now contains the macOS-specific module
:mod:`_scproxy`. :mod:`!_scproxy`.
.. ..
@ -1023,7 +1023,7 @@ compile shared modules.
.. nonce: 61gM2A .. nonce: 61gM2A
.. section: Build .. section: Build
:mod:`pyexpat` and :mod:`_elementtree` no longer define obsolete macros :mod:`pyexpat` and :mod:`!_elementtree` no longer define obsolete macros
``HAVE_EXPAT_CONFIG_H`` and ``USE_PYEXPAT_CAPI``. ``XML_POOR_ENTROPY`` is ``HAVE_EXPAT_CONFIG_H`` and ``USE_PYEXPAT_CAPI``. ``XML_POOR_ENTROPY`` is
now defined in ``expat_config.h``. now defined in ``expat_config.h``.

View file

@ -27,7 +27,7 @@ invalid targets. Patch by Pablo Galindo
.. nonce: 3TmTSw .. nonce: 3TmTSw
.. section: Core and Builtins .. section: Core and Builtins
:c:func:`_PyErr_ChainStackItem` no longer normalizes ``exc_info`` (including :c:func:`!_PyErr_ChainStackItem` no longer normalizes ``exc_info`` (including
setting the traceback on the exception instance) because ``exc_info`` is setting the traceback on the exception instance) because ``exc_info`` is
always normalized. always normalized.

View file

@ -258,7 +258,7 @@ instruction which performs the same operation, but without the loop.
.. nonce: ADVaPT .. nonce: ADVaPT
.. section: Core and Builtins .. section: Core and Builtins
The code called from :c:func:`_PyErr_Display` was refactored to improve The code called from :c:func:`!_PyErr_Display` was refactored to improve
error handling. It now exits immediately upon an unrecoverable error. error handling. It now exits immediately upon an unrecoverable error.
.. ..

View file

@ -285,7 +285,7 @@ macros.
.. nonce: 11YXHQ .. nonce: 11YXHQ
.. section: Core and Builtins .. section: Core and Builtins
Add a new :c:func:`_PyFrame_IsEntryFrame` API function, to check if a Add a new :c:func:`!_PyFrame_IsEntryFrame` API function, to check if a
:c:type:`PyFrameObject` is an entry frame. Patch by Pablo Galindo. :c:type:`PyFrameObject` is an entry frame. Patch by Pablo Galindo.
.. ..

View file

@ -102,7 +102,7 @@ well as generator expressions.
.. section: Core and Builtins .. section: Core and Builtins
Added unicode check for ``name`` attribute of ``spec`` argument passed in Added unicode check for ``name`` attribute of ``spec`` argument passed in
:func:`_imp.create_builtin` function. :func:`!_imp.create_builtin` function.
.. ..
@ -483,7 +483,7 @@ Fix case of undefined behavior in ceval.c
.. nonce: AfCi36 .. nonce: AfCi36
.. section: Core and Builtins .. section: Core and Builtins
Convert :mod:`_functools` to argument clinic. Convert :mod:`!_functools` to argument clinic.
.. ..
@ -492,7 +492,7 @@ Convert :mod:`_functools` to argument clinic.
.. nonce: wky0Fc .. nonce: wky0Fc
.. section: Core and Builtins .. section: Core and Builtins
Do not expose ``KeyWrapper`` in :mod:`_functools`. Do not expose ``KeyWrapper`` in :mod:`!_functools`.
.. ..
@ -1731,7 +1731,7 @@ tracing functions implemented in C.
.. nonce: lenv9h .. nonce: lenv9h
.. section: Core and Builtins .. section: Core and Builtins
:meth:`_warnings.warn_explicit` is ported to Argument Clinic. :meth:`!_warnings.warn_explicit` is ported to Argument Clinic.
.. ..
@ -3142,8 +3142,8 @@ test.test_codecs.EncodedFileTest`` instead.
.. nonce: VhS1eS .. nonce: VhS1eS
.. section: Library .. section: Library
Made :class:`_struct.Struct` GC-tracked in order to fix a reference leak in Made :class:`!_struct.Struct` GC-tracked in order to fix a reference leak in
the :mod:`_struct` module. the :mod:`!_struct` module.
.. ..
@ -3258,7 +3258,7 @@ on the main thread
Remove ``io.OpenWrapper`` and ``_pyio.OpenWrapper``, deprecated in Python Remove ``io.OpenWrapper`` and ``_pyio.OpenWrapper``, deprecated in Python
3.10: just use :func:`open` instead. The :func:`open` (:func:`io.open`) 3.10: just use :func:`open` instead. The :func:`open` (:func:`io.open`)
function is a built-in function. Since Python 3.10, :func:`_pyio.open` is function is a built-in function. Since Python 3.10, :func:`!_pyio.open` is
also a static method. Patch by Victor Stinner. also a static method. Patch by Victor Stinner.
.. ..
@ -5610,7 +5610,7 @@ Accept os.PathLike for the argument to winsound.PlaySound
Support native Windows case-insensitive path comparisons by using Support native Windows case-insensitive path comparisons by using
``LCMapStringEx`` instead of :func:`str.lower` in :func:`ntpath.normcase`. ``LCMapStringEx`` instead of :func:`str.lower` in :func:`ntpath.normcase`.
Add ``LCMapStringEx`` to the :mod:`_winapi` module. Add ``LCMapStringEx`` to the :mod:`!_winapi` module.
.. ..

View file

@ -527,7 +527,7 @@ Stinner.
.. nonce: Ai2KDh .. nonce: Ai2KDh
.. section: Library .. section: Library
Now :mod:`_pyio` is consistent with :mod:`_io` in raising ``ValueError`` Now :mod:`!_pyio` is consistent with :mod:`!_io` in raising ``ValueError``
when executing methods over closed buffers. when executing methods over closed buffers.
.. ..
@ -537,7 +537,7 @@ when executing methods over closed buffers.
.. nonce: 0v8iyw .. nonce: 0v8iyw
.. section: Library .. section: Library
Clean up refleak on failed module initialisation in :mod:`_zoneinfo` Clean up refleak on failed module initialisation in :mod:`!_zoneinfo`
.. ..
@ -546,7 +546,7 @@ Clean up refleak on failed module initialisation in :mod:`_zoneinfo`
.. nonce: qc_KHr .. nonce: qc_KHr
.. section: Library .. section: Library
Clean up refleaks on failed module initialisation in :mod:`_pickle` Clean up refleaks on failed module initialisation in :mod:`!_pickle`
.. ..
@ -555,7 +555,7 @@ Clean up refleaks on failed module initialisation in :mod:`_pickle`
.. nonce: LBl79O .. nonce: LBl79O
.. section: Library .. section: Library
Clean up refleak on failed module initialisation in :mod:`_io`. Clean up refleak on failed module initialisation in :mod:`!_io`.
.. ..

View file

@ -70,7 +70,7 @@ Fix bug where compiler crashes on an if expression with an empty body block.
.. nonce: DcKoBJ .. nonce: DcKoBJ
.. section: Core and Builtins .. section: Core and Builtins
Fix a reference bug in :func:`_imp.create_builtin()` after the creation of Fix a reference bug in :func:`!_imp.create_builtin` after the creation of
the first sub-interpreter for modules ``builtins`` and ``sys``. Patch by the first sub-interpreter for modules ``builtins`` and ``sys``. Patch by
Victor Stinner. Victor Stinner.

View file

@ -241,7 +241,7 @@ are now always dumped, even if switched off.
Improve ``BUILD_LIST`` opcode so that it works similarly to the Improve ``BUILD_LIST`` opcode so that it works similarly to the
``BUILD_TUPLE`` opcode, by stealing references from the stack rather than ``BUILD_TUPLE`` opcode, by stealing references from the stack rather than
repeatedly using stack operations to set list elements. Implementation repeatedly using stack operations to set list elements. Implementation
details are in a new private API :c:func:`_PyList_FromArraySteal`. details are in a new private API :c:func:`!_PyList_FromArraySteal`.
.. ..

View file

@ -1828,7 +1828,7 @@ is relative.
.. nonce: 511Tbh .. nonce: 511Tbh
.. section: Library .. section: Library
Convert private :meth:`_posixsubprocess.fork_exec` to use Argument Clinic. Convert private :meth:`!_posixsubprocess.fork_exec` to use Argument Clinic.
.. ..

View file

@ -761,8 +761,8 @@ combination with unicode encoding.
.. section: Library .. section: Library
Fix :func:`io.BufferedReader.tell`, :func:`io.BufferedReader.seek`, Fix :func:`io.BufferedReader.tell`, :func:`io.BufferedReader.seek`,
:func:`_pyio.BufferedReader.tell`, :func:`io.BufferedRandom.tell`, :func:`!_pyio.BufferedReader.tell`, :func:`io.BufferedRandom.tell`,
:func:`io.BufferedRandom.seek` and :func:`_pyio.BufferedRandom.tell` being :func:`io.BufferedRandom.seek` and :func:`!_pyio.BufferedRandom.tell` being
able to return negative offsets. able to return negative offsets.
.. ..

View file

@ -3447,7 +3447,8 @@ tkinter.ttk now works when default root window is not set.
.. nonce: FE_PII .. nonce: FE_PII
.. section: Library .. section: Library
_tkinter.create() now creates tkapp object with wantobject=1 by default. ``_tkinter.create()`` now creates ``tkapp`` object with ``wantobjects=1`` by
default.
.. ..

View file

@ -1484,9 +1484,9 @@ on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).
.. nonce: RWN1jR .. nonce: RWN1jR
.. section: Library .. section: Library
Add C functions :c:func:`_PyTraceMalloc_Track` and Add C functions :c:func:`!_PyTraceMalloc_Track` and
:c:func:`_PyTraceMalloc_Untrack` to track memory blocks using the :c:func:`!_PyTraceMalloc_Untrack` to track memory blocks using the
:mod:`tracemalloc` module. Add :c:func:`_PyTraceMalloc_GetTraceback` to get :mod:`tracemalloc` module. Add :c:func:`!_PyTraceMalloc_GetTraceback` to get
the traceback of an object. the traceback of an object.
.. ..

View file

@ -2519,7 +2519,7 @@ non-Windows systems.
.. nonce: dQS1ng .. nonce: dQS1ng
.. section: Library .. section: Library
Fix incorrect parsing of :class:`_io.IncrementalNewlineDecoder`'s Fix incorrect parsing of :class:`io.IncrementalNewlineDecoder`'s
*translate* argument. *translate* argument.
.. ..
@ -8051,7 +8051,7 @@ Update macOS 10.9+ installer to Tcl/Tk 8.6.8.
.. nonce: K6jCVG .. nonce: K6jCVG
.. section: macOS .. section: macOS
In :mod:`_scproxy`, drop the GIL when calling into ``SystemConfiguration`` In :mod:`!_scproxy`, drop the GIL when calling into ``SystemConfiguration``
to avoid deadlocks. to avoid deadlocks.
.. ..

View file

@ -945,7 +945,7 @@ P. Hemsley.
.. nonce: __FTq9 .. nonce: __FTq9
.. section: Tests .. section: Tests
Add a new :mod:`_testinternalcapi` module to test the internal C API. Add a new :mod:`!_testinternalcapi` module to test the internal C API.
.. ..
@ -1383,7 +1383,7 @@ Since Python 3.7.0, calling :c:func:`Py_DecodeLocale` before
coerced and/or if the UTF-8 Mode is enabled by the user configuration. The coerced and/or if the UTF-8 Mode is enabled by the user configuration. The
LC_CTYPE coercion and UTF-8 Mode are now disabled by default to fix the LC_CTYPE coercion and UTF-8 Mode are now disabled by default to fix the
mojibake issue. They must now be enabled explicitly (opt-in) using the new mojibake issue. They must now be enabled explicitly (opt-in) using the new
:c:func:`_Py_PreInitialize` API with ``_PyPreConfig``. :c:func:`!_Py_PreInitialize` API with ``_PyPreConfig``.
.. ..

View file

@ -600,7 +600,7 @@ default.
.. nonce: sLULGQ .. nonce: sLULGQ
.. section: Library .. section: Library
Fix destructor :class:`_pyio.BytesIO` and :class:`_pyio.TextIOWrapper`: Fix destructor :class:`!_pyio.BytesIO` and :class:`!_pyio.TextIOWrapper`:
initialize their ``_buffer`` attribute as soon as possible (in the class initialize their ``_buffer`` attribute as soon as possible (in the class
body), because it's used by ``__del__()`` which calls ``close()``. body), because it's used by ``__del__()`` which calls ``close()``.

View file

@ -1384,7 +1384,7 @@ Nested subclasses of :class:`typing.NamedTuple` are now pickleable.
.. nonce: hwrPN7 .. nonce: hwrPN7
.. section: Library .. section: Library
Prevent :exc:`KeyError` thrown by :func:`_encoded_words.decode` when given Prevent :exc:`KeyError` thrown by :func:`!_encoded_words.decode` when given
an encoded-word with invalid content-type encoding from propagating all the an encoded-word with invalid content-type encoding from propagating all the
way to :func:`email.message.get`. way to :func:`email.message.get`.
@ -1395,7 +1395,7 @@ way to :func:`email.message.get`.
.. nonce: S6Klvm .. nonce: S6Klvm
.. section: Library .. section: Library
Deprecated the ``split()`` method in :class:`_tkinter.TkappType` in favour Deprecated the ``split()`` method in :class:`!_tkinter.TkappType` in favour
of the ``splitlist()`` method which has more consistent and predictable of the ``splitlist()`` method which has more consistent and predictable
behavior. behavior.
@ -3013,7 +3013,7 @@ thread was still running.
.. section: Library .. section: Library
Allow pure Python implementation of :mod:`pickle` to work even when the C Allow pure Python implementation of :mod:`pickle` to work even when the C
:mod:`_pickle` module is unavailable. :mod:`!_pickle` module is unavailable.
.. ..
@ -3064,8 +3064,8 @@ internal tasks weak set is changed by another thread during iteration.
.. nonce: ADqCkq .. nonce: ADqCkq
.. section: Library .. section: Library
:class:`_pyio.IOBase` destructor now does nothing if getting the ``closed`` :class:`!_pyio.IOBase` destructor now does nothing if getting the ``closed``
attribute fails to better mimic :class:`_io.IOBase` finalizer. attribute fails to better mimic :class:`!_io.IOBase` finalizer.
.. ..
@ -4993,7 +4993,7 @@ Make :const:`winreg.REG_MULTI_SZ` support zero-length strings.
.. section: Windows .. section: Windows
Replace use of :c:func:`strcasecmp` for the system function Replace use of :c:func:`strcasecmp` for the system function
:c:func:`_stricmp`. Patch by Minmin Gong. :c:func:`!_stricmp`. Patch by Minmin Gong.
.. ..
@ -5696,8 +5696,8 @@ Add :c:func:`PyConfig_SetWideStringList` function.
.. section: C API .. section: C API
Add fast functions for calling methods: Add fast functions for calling methods:
:c:func:`_PyObject_VectorcallMethod`, :c:func:`_PyObject_CallMethodNoArgs` :c:func:`!_PyObject_VectorcallMethod`, :c:func:`!_PyObject_CallMethodNoArgs`
and :c:func:`_PyObject_CallMethodOneArg`. and :c:func:`!_PyObject_CallMethodOneArg`.
.. ..

View file

@ -111,7 +111,7 @@ str.decode().
.. nonce: m15TTX .. nonce: m15TTX
.. section: Core and Builtins .. section: Core and Builtins
Fix possible refleaks in :mod:`_json`, memo of PyScannerObject should be Fix possible refleaks in :mod:`!_json`, memo of PyScannerObject should be
traversed. traversed.
.. ..
@ -666,8 +666,8 @@ for _main_thread, instead of a _DummyThread instance.
.. nonce: VTq_8s .. nonce: VTq_8s
.. section: Library .. section: Library
Add a private ``_at_fork_reinit()`` method to :class:`_thread.Lock`, Add a private ``_at_fork_reinit()`` method to :class:`!_thread.Lock`,
:class:`_thread.RLock`, :class:`threading.RLock` and :class:`!_thread.RLock`, :class:`threading.RLock` and
:class:`threading.Condition` classes: reinitialize the lock at fork in the :class:`threading.Condition` classes: reinitialize the lock at fork in the
child process, reset the lock to the unlocked state. Rename also the private child process, reset the lock to the unlocked state. Rename also the private
``_reset_internal_locks()`` method of :class:`threading.Event` to ``_reset_internal_locks()`` method of :class:`threading.Event` to