diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-22 01:35:21 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-22 01:35:21 +0000 |
| commit | 0a925ced9209f41b9f15009185c2722200bdc09d (patch) | |
| tree | b35dd9ea12540f607e0670e774a6d8589e203042 /lib/python/Tools/BoundFunction.py | |
| parent | cc0d276c3699a56c0566f0cf7ccc8acfc370f6df (diff) | |
| download | enigma2-0a925ced9209f41b9f15009185c2722200bdc09d.tar.gz enigma2-0a925ced9209f41b9f15009185c2722200bdc09d.zip | |
add boundFunction to Tools
Diffstat (limited to 'lib/python/Tools/BoundFunction.py')
| -rw-r--r-- | lib/python/Tools/BoundFunction.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/Tools/BoundFunction.py b/lib/python/Tools/BoundFunction.py new file mode 100644 index 00000000..5447451d --- /dev/null +++ b/lib/python/Tools/BoundFunction.py @@ -0,0 +1,6 @@ +class boundFunction: + def __init__(self, fnc, *args): + self.fnc = fnc + self.args = args + def __call__(self, *args): + self.fnc(*self.args + args) |
