python3-makefun
Small library to dynamically create Python functions
Description
makefun helps one create functions dynamically, with the signature of their choice. It was largely inspired by decorator and functools, and created mainly to cover some of their limitations. Its typical use cases are: - creating signature-preserving function wrappers - just like functools.wraps
but with accurate TypeError exception raising when user-provided arguments
are wrong, and with a very convenient way to access argument values;
- creating function wrappers that have more or less arguments that the
function they wrap;
- more generally, creating functions with a signature derived from a
reference signature;
- or even creating functions with a signature completely defined at runtime.
Upload more screenshots
Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.
Upload a screenshotHint: upload an image here from your clipboard with Ctrl-V
Homepage
https://smarie.github.io/python-makefun/
Install this software package
If the package is available for the distribution you are currently using on your computer then install the software by clicking on…
Install python3-makefun