make generator comprehensions work

This commit is contained in:
Dave Halter
2014-06-10 00:36:36 +02:00
parent cd5b8aebfd
commit af801ef9b4
4 changed files with 35 additions and 2 deletions
+1
View File
@@ -471,6 +471,7 @@ def get_names_of_scope(evaluator, scope, position=None, star_search=True, includ
"""
if isinstance(scope, iterable.ListComprehensionFlow):
position = scope.list_comprehension.parent.start_pos
in_func_scope = scope
non_flow = scope.get_parent_until(pr.Flow, reverse=True)
while scope: