fix function execution mutable list issue

This commit is contained in:
Dave Halter committed 2014-06-16 17:12:27 +02:00
1 parent eb1f299444
commit a373818965
3 files changed
+22 -2

No files matched your search

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