further progress in changing to py__call__
This commit is contained in:
1 parent
ccd304bcb7
commit
1e6a950aec
4 files changed
+17
-10
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user