@@ -167,10 +167,11 @@ The :mod:`functools` module defines the following functions: |
|
|
167 |
167 |
|
168 |
168 |
.. function:: partial(func, *args, **keywords) |
169 |
169 |
|
170 |
|
- Return a new :class:`partial` object which when called will behave like *func* |
171 |
|
- called with the positional arguments *args* and keyword arguments *keywords*. If |
172 |
|
- more arguments are supplied to the call, they are appended to *args*. If |
173 |
|
- additional keyword arguments are supplied, they extend and override *keywords*. |
|
170 |
+ Return a new :ref:`partial object` which when called |
|
171 |
+ will behave like *func* called with the positional arguments *args* |
|
172 |
+ and keyword arguments *keywords*. If more arguments are supplied to the |
|
173 |
+ call, they are appended to *args*. If additional keyword arguments are |
|
174 |
+ supplied, they extend and override *keywords*. |
174 |
175 |
Roughly equivalent to:: |
175 |
176 |
|
176 |
177 |
def partial(func, *args, **keywords): |
@@ -209,7 +210,7 @@ The :mod:`functools` module defines the following functions: |
|
|
209 |
210 |
:func:`classmethod`, :func:`staticmethod`, :func:`abstractmethod` or |
210 |
211 |
another instance of :class:`partialmethod`), calls to ``__get__`` are |
211 |
212 |
delegated to the underlying descriptor, and an appropriate |
212 |
|
-:class:`partial` object returned as the result. |
|
213 |
+:ref:`partial object` returned as the result. |
213 |
214 |
|
214 |
215 |
When *func* is a non-descriptor callable, an appropriate bound method is |
215 |
216 |
created dynamically. This behaves like a normal Python function when |