move mixin to evaluate directory

This commit is contained in:
Dave Halter committed 2013-12-27 01:36:05 +01:00
1 parent c290afbb1a
commit 4ec64a9763
10 files changed
+2 -2

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
class partial():
def __init__(self, func, *args, **keywords):
self.__func = func
self.__args = args
self.__keywords = keywords
def __call__(self, *args, **kwargs):
# I know this doesn't work in Python, but Jedi can this ;-)
return self.__func(*self.__args, *args, **self.keywords, **kwargs)