Fix: Set/Dict Comprehensions don't raise an error. They are just ignored for now.
This commit is contained in:
1 parent
7cc54e08c7
commit
ffaf81bf1b
2 files changed
+15
-3
No files matched your search
@@ -339,6 +339,9 @@ class Evaluator(object):
|
||||
pass
|
||||
else:
|
||||
if isinstance(comp_for, tree.CompFor):
|
||||
if atom.children[0] == '{':
|
||||
# TODO dict/set comprehensions should be working.
|
||||
return []
|
||||
return set([iterable.Comprehension.from_atom(self, atom)])
|
||||
return set([iterable.Array(self, atom)])
|
||||
|
||||
|
||||
Reference in new issue
Block a user