# HG changeset patch # User Paul Boddie # Date 1382626213 -7200 # Node ID 06bf507b18ff081ebbf365d6f798670d45c6ce23 # Parent 7d5601304487722ad425b14e5b9312f38d482314 Added _attr annotations to AssName nodes, indicating attributes providing names. diff -r 7d5601304487 -r 06bf507b18ff micropython/inspect.py --- a/micropython/inspect.py Thu Oct 24 16:48:23 2013 +0200 +++ b/micropython/inspect.py Thu Oct 24 16:50:13 2013 +0200 @@ -446,6 +446,7 @@ ns.set(name, obj, not self.in_loop) if static_def: ns.get(name).static_assignments += 1 + return ns.get(name) def store_lambda(self, obj): @@ -913,7 +914,7 @@ self._visitAssName(node) def _visitAssName(self, node): - self.store(node.name, self.expr) + node._attr = self.store(node.name, self.expr) self.define_attribute_user(node) # Ensure the presence of the given name in this namespace.