Renamed mixin .py files to .pym (fixes davidhalter/jedi-vim#41)

This commit is contained in:
Danilo Bargen committed 2012-11-20 11:21:11 +01:00
1 parent 03f4dd5516
commit 9f20243dd3
6 files changed
+1 -1

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)