smarie / python-makefun

Dynamically create python functions with a proper signature.
https://smarie.github.io/python-makefun/
BSD 3-Clause "New" or "Revised" License
119 stars 16 forks source link

Provide a `copy_fun(f, deep=False)` helper function #74

Open smarie opened 3 years ago

smarie commented 3 years ago

This could rely on partial(f) if deep=False,

For deep=True we should rely on one of the recipes here: