Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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....



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: