]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)
authorXiang Zhang <angwerzx@126.com>
Tue, 23 Oct 2018 06:43:08 +0000 (14:43 +0800)
committerGitHub <noreply@github.com>
Tue, 23 Oct 2018 06:43:08 +0000 (14:43 +0800)
(cherry picked from commit 83a0765)

Co-authored-by: Andrei Petre p31andrei@gmail.com
Doc/library/functools.rst

index f3e396b4a6f9adfb930a7d9822699a9e36a75891..aee14d5c81f6393b017460875b72097e1a8fc60b 100644 (file)
@@ -76,9 +76,9 @@ The :mod:`functools` module defines the following functions:
 
 .. function:: partial(func[,*args][, **keywords])
 
-   Return a new :class:`partial` object which when called will behave like *func*
-   called with the positional arguments *args* and keyword arguments *keywords*. If
-   more arguments are supplied to the call, they are appended to *args*. If
+   Return a new :ref:`partial object<partial-objects>` which when called will behave
+   like *func* called with the positional arguments *args* and keyword arguments *keywords*.
+   If more arguments are supplied to the call, they are appended to *args*. If
    additional keyword arguments are supplied, they extend and override *keywords*.
    Roughly equivalent to::