devel/py-makefun 1.16.0 OpenBSD
small library to dynamically create Python functions
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Last update
- Commit
c9ce414c08- Categories
- devel, lang/python
Description
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
-
creating function wrappers that have more or less arguments than 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
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/py-makefun | 1.16.0 |
| FreeBSD | devel/py-makefun | 1.16.0_1 |
| NetBSD | devel/py-makefun | 1.16.0nb1 |
| DragonFly | devel/py-makefun | 1.15.4_1 |
| HardenedBSD | devel/py-makefun | 1.16.0_1 |
| GhostBSD | devel/py-makefun | 1.16.0_1 |
Install
Binary package:
pkg_add py3-makefun
From the ports tree:
cd /usr/ports/devel/py-makefun && make install
Dependencies
Build dependencies 6
Run dependencies 1
No port depends on this one.