Return a partial function. Same as functools.partial but keeping the __doc__ and __name__ of the warpper function.
(func, *args, **kwargs)
| 98 | |
| 99 | |
| 100 | def partial(func, *args, **kwargs): |
| 101 | """ |
| 102 | Return a partial function. Same as functools.partial but keeping the __doc__ |
| 103 | and __name__ of the warpper function. |
| 104 | """ |
| 105 | return functools.update_wrapper(functools.partial(func, *args, **kwargs), func) |
no outgoing calls