From 8ddb66f69cf9020f4dfc18fe9d84a293de4a5139 Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Sat, 1 Aug 2026 09:37:06 -0500 Subject: [PATCH 1/2] Reword a reference to `partial object` in functools Rather than referring to a `` :func:`!partial` object``, use a reference to the definition of a "partial object", provided as a part of the functools docs. This results in two linked references from `functools.partial` docs to `partial object`, as there is another one at the top of the docstring. However, the doc is sufficiently long that this second link is likely to be beneficial to a reader. --- Doc/library/functools.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 2b46978f058102b..051b84f9b248b3d 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -386,9 +386,9 @@ The :mod:`!functools` module defines the following functions: only one positional argument is provided, but there are two placeholders that must be filled in. - If :func:`!partial` is applied to an existing :func:`!partial` object, - :data:`!Placeholder` sentinels of the input object are filled in with - new positional arguments. + If :func:`!partial` is applied to an existing + :ref:`partial object`, :data:`!Placeholder` sentinels of the + input object are filled in with new positional arguments. A placeholder can be retained by inserting a new :data:`!Placeholder` sentinel to the place held by a previous :data:`!Placeholder`: From 877fca86488588d82a08626f3df5989e2d2e4d4a Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Sat, 1 Aug 2026 13:59:58 -0500 Subject: [PATCH 2/2] Update Doc/library/functools.rst Co-authored-by: Stan Ulbrych --- Doc/library/functools.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 051b84f9b248b3d..debb7a7c3c2cc0e 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -387,7 +387,7 @@ The :mod:`!functools` module defines the following functions: that must be filled in. If :func:`!partial` is applied to an existing - :ref:`partial object`, :data:`!Placeholder` sentinels of the + :ref:`partial object `, :data:`!Placeholder` sentinels of the input object are filled in with new positional arguments. A placeholder can be retained by inserting a new :data:`!Placeholder` sentinel to the place held by a previous :data:`!Placeholder`: