mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-05 21:24:18 +08:00
fix list comprehensions. they were not implemented in a good way
This commit is contained in:
@@ -192,10 +192,6 @@ class Evaluator(object):
|
||||
next(call_path, None) # the first one has been used already
|
||||
return self.follow_path(call_path, r, element.parent)
|
||||
elif isinstance(element, pr.ListComprehension):
|
||||
#lc = element.get_most_inner_lc()
|
||||
# Caveat: parents are being changed, but this doesn't matter,
|
||||
# because nothing else uses it.
|
||||
#element.stmt.parent = loop
|
||||
return self.eval_statement(element.stmt)
|
||||
elif isinstance(element, pr.Lambda):
|
||||
return [er.Function(self, element)]
|
||||
|
||||
Reference in New Issue
Block a user