30 ms·
It's pretty common when wrapping a function that has a large number of config options. The wrapper is usually some shorthand for building a handful of those ar
by Frotag 3y ago
It's pretty common when wrapping a function that has a large number of config options.
The wrapper is usually some shorthand for building a handful of those args or adding some side-effect, while still allowing the caller access to the remaining config options via kwargs.
Here's one example of that in the wild
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html#matplotlib.pyplot.savefig https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot....