1
0
forked from VimPlug/jedi

More and probably the last tuple assignment stuff.

This commit is contained in:
Dave Halter
2014-10-22 02:29:47 +02:00
parent 297bcf6e19
commit 34f3ea6973
2 changed files with 5 additions and 1 deletions

View File

@@ -190,7 +190,11 @@ class Evaluator(object):
types = self._eval_trailer(types, trailer)
return types
elif pr.is_node(element, 'testlist_star_expr'):
# The implicit tuple in statements.
return [iterable.Array(self, element, pr.Array.TUPLE)]
else:
print(element)
left, operator, right = element.children
return precedence.calculate(self, self.eval_element(left), operator,
self.eval_element(right))