1
0
forked from VimPlug/jedi

further progress in changing to py__call__

This commit is contained in:
Dave Halter
2014-07-30 14:40:56 +02:00
parent ccd304bcb7
commit 1e6a950aec
4 changed files with 17 additions and 10 deletions

View File

@@ -94,7 +94,8 @@ class GeneratorMethod(object):
self._builtin_func = builtin_func
self._generator = generator
def execute(self):
def py__call__(self, params):
# TODO add TypeError if params are given.
return self._generator.iter_content()
def __getattr__(self, name):