Python utility library
- Python 98.5%
- Makefile 1.3%
- Shell 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Add the func_tools module for giving the private_method decorator a home. The decorator enforces that a method can only be called by methods belonging to the same class. It inspects the call stack at runtime and raises AttributeError if the caller is not a method of the owning class. When decorating a class, the decorator scans all other class members for functions (including static, class, and other private methods) and records their code objects as allowed callers. The __get__() method returns a wrapper that checks the current frame's code object against this set before dispatching to the actual method. Signed-off-by: Jan Lindemann <jan@janware.com> |
||
| .github/workflows | ||
| bin | ||
| conf | ||
| make | ||
| scripts | ||
| src | ||
| test | ||
| .gitignore | ||
| HASH | ||
| Makefile | ||
| RELEASES | ||
| VERSION | ||