# HG changeset patch # User Paul Boddie # Date 1382722908 -7200 # Node ID e57bf0bb98f1a42829055dc9cc76b0ad676d21ce # Parent 184dcb5b6a83995275f90411ff535fed47334831 Enforced the anonymity/genericity of list/tuple item values in assignments. diff -r 184dcb5b6a83 -r e57bf0bb98f1 micropython/deduce.py --- a/micropython/deduce.py Fri Oct 25 19:40:52 2013 +0200 +++ b/micropython/deduce.py Fri Oct 25 19:41:48 2013 +0200 @@ -316,6 +316,15 @@ for n in node.nodes: self.dispatch(n) + def visitAssList(self, node): + expr = self.expr + self.expr = make_instance() + for n in node.nodes: + self.dispatch(n) + self.expr = expr + + visitAssTuple = visitAssList + def visitAssName(self, node): if self.expr: if isinstance(self.expr, Attr):