Commit 6fb8b963 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Converted IteratorNode to new temps, fixes #124

parent 237396d2
...@@ -1349,7 +1349,7 @@ class ImportNode(ExprNode): ...@@ -1349,7 +1349,7 @@ class ImportNode(ExprNode):
code.error_goto_if_null(self.result(), self.pos))) code.error_goto_if_null(self.result(), self.pos)))
class IteratorNode(ExprNode): class IteratorNode(NewTempExprNode):
# Used as part of for statement implementation. # Used as part of for statement implementation.
# #
# allocate_counter_temp/release_counter_temp needs to be called # allocate_counter_temp/release_counter_temp needs to be called
......
"""
>>> spam(dict(test=2))
False
"""
def spam(dict d):
for elm in d:
return False
return True
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment