Fix issues with py__iter__types.

This commit is contained in:
Dave Halter
2015-12-02 07:11:36 +01:00
parent 41537a78e1
commit 9a2256f557
4 changed files with 21 additions and 9 deletions

View File

@@ -153,7 +153,8 @@ def builtins_super(evaluator, types, objects, scope):
def get_iterable_content(evaluator, arguments, argument_index):
nodes = list(arguments.unpack())[argument_index][1]
return unite(iterable.get_iterator_types(evaluator, node) for node in nodes)
types = unite(evaluator.eval_element(n) for n in nodes)
return iterable.py__iter__types(evaluator, types)
@argument_clinic('sequence, /', want_obj=True, want_arguments=True)