From: Xiang Zhang Date: Tue, 23 Oct 2018 06:43:08 +0000 (+0800) Subject: [2.7] bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809) X-Git-Tag: v2.7.16rc1~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56a4a3aa555b3abc756cf837eddac4c0bf545db7;p=thirdparty%2FPython%2Fcpython.git [2.7] bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809) (cherry picked from commit 83a0765) Co-authored-by: Andrei Petre p31andrei@gmail.com --- diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index f3e396b4a6f9..aee14d5c81f6 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -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` 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::