bpo-34748: link to :ref:partial-objects in functools.partial doc. (… · python/cpython@fc62c72 (original) (raw)

Original file line number Diff line number Diff line change
@@ -172,10 +172,11 @@ The :mod:`functools` module defines the following functions:
172 172
173 173 .. function:: partial(func, *args, **keywords)
174 174
175 - Return a new :class:`partial` object which when called will behave like *func*
176 - called with the positional arguments *args* and keyword arguments *keywords*. If
177 - more arguments are supplied to the call, they are appended to *args*. If
178 - additional keyword arguments are supplied, they extend and override *keywords*.
175 + Return a new :ref:`partial object` which when called
176 + will behave like *func* called with the positional arguments *args*
177 + and keyword arguments *keywords*. If more arguments are supplied to the
178 + call, they are appended to *args*. If additional keyword arguments are
179 + supplied, they extend and override *keywords*.
179 180 Roughly equivalent to::
180 181
181 182 def partial(func, *args, **keywords):
@@ -214,7 +215,7 @@ The :mod:`functools` module defines the following functions:
214 215 :func:`classmethod`, :func:`staticmethod`, :func:`abstractmethod` or
215 216 another instance of :class:`partialmethod`), calls to ``__get__`` are
216 217 delegated to the underlying descriptor, and an appropriate
217 -:class:`partial` object returned as the result.
218 +:ref:`partial object` returned as the result.
218 219
219 220 When *func* is a non-descriptor callable, an appropriate bound method is
220 221 created dynamically. This behaves like a normal Python function when