--- - branch: MAIN date: Sun Mar 12 13:39:01 UTC 2023 files: - new: '1.1' old: '0' path: pkgsrc/devel/py-makefun/DESCR pathrev: pkgsrc/devel/py-makefun/DESCR@1.1 type: added - new: '1.1' old: '0' path: pkgsrc/devel/py-makefun/Makefile pathrev: pkgsrc/devel/py-makefun/Makefile@1.1 type: added - new: '1.1' old: '0' path: pkgsrc/devel/py-makefun/PLIST pathrev: pkgsrc/devel/py-makefun/PLIST@1.1 type: added - new: '1.1' old: '0' path: pkgsrc/devel/py-makefun/distinfo pathrev: pkgsrc/devel/py-makefun/distinfo@1.1 type: added id: 20230312T133901Z.b0c1f5a1f676a44ba12b34aa058d913d779f3461 log: | devel/py-makefun: import py-makefun-1.15.1 makefun helps you create functions dynamically, with the signature of your choice. It was largely inspired by decorator and functools, and created mainly to cover some of their limitations. The 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. A bit like functools.partial but a lot more flexible and friendly for your users. For example, I use it in my pytest plugins to add a requests parameter to users' tests or fixtures when they do not already have it. * more generally, creating functions with a signature derived from a reference signature, * or even creating functions with a signature completely defined at runtime. module: pkgsrc subject: 'CVS commit: pkgsrc/devel/py-makefun' unixtime: '1678628341' user: wiz