What is functools.partial?
Standard library essentials
Audio flashcard · 0:12Nortren·
What is functools.partial?
0:12
Partial returns a new callable with some arguments of the original function fixed. It is used to specialize a general function into a more specific one without writing a wrapper. It is useful when passing functions as callbacks or to map and filter.
docs.python.org