git.cweiske.de
/
enigma2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add "!" to character list on behalf of acid-burn
[enigma2.git]
/
lib
/
python
/
Tools
/
BoundFunction.py
1
class boundFunction:
2
def __init__(self, fnc, *args, **kwargs):
3
self.fnc = fnc
4
self.args = args
5
self.kwargs = kwargs
6
def __call__(self, *args, **kwargs):
7
newkwargs = self.kwargs
8
newkwargs.update(kwargs)
9
return self.fnc(*self.args + args, **newkwargs)
10
11