[Python-checkins] [2.7] bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)
Xiang Zhang
webhook-mailer at python.org
Tue Oct 23 02:43:13 EDT 2018
https://github.com/python/cpython/commit/56a4a3aa555b3abc756cf837eddac4c0bf545db7
commit: 56a4a3aa555b3abc756cf837eddac4c0bf545db7
branch: 2.7
author: Xiang Zhang <angwerzx at 126.com>
committer: GitHub <noreply at github.com>
date: 2018-10-23T14:43:08+08:00
summary:
[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 at gmail.com
files:
M Doc/library/functools.rst
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<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::
More information about the Python-checkins
mailing list