Fix all remaining issues from the compiled refactoring except static analysis.

This commit is contained in:
Dave Halter
2015-12-10 01:48:08 +01:00
parent 86037222b4
commit e23f453a11
4 changed files with 37 additions and 21 deletions
+2 -1
View File
@@ -404,7 +404,7 @@ class FakeSequence(_FakeArray):
class AlreadyEvaluated(frozenset):
"""A simple container to add already evaluated objects to an array."""
def get_code(self):
def get_code(self, normalized=False):
# For debugging purposes.
return str(self)
@@ -523,6 +523,7 @@ def py__getitem__(evaluator, types, index, node):
if isinstance(typ, Array) and typ.type == 'dict':
types.remove(typ)
result |= typ.dict_values()
print('ITER', types, py__iter__types(evaluator, types))
return result | py__iter__types(evaluator, types)
for typ in types: