micropython/inspect.py | raw changeset files shortlog |
1.1 --- a/micropython/inspect.py Thu Sep 04 19:44:39 2008 +0200 1.2 +++ b/micropython/inspect.py Fri Sep 05 00:04:20 2008 +0200 1.3 @@ -329,8 +329,9 @@ 1.4 return None 1.5 1.6 def visitAssList(self, node): 1.7 - for n in node.nodes: 1.8 + for i, n in enumerate(node.nodes): 1.9 self.dispatch(n) 1.10 + self._make_constant(i) # for __getitem__(i) at run-time 1.11 return None 1.12 1.13 def visitAssName(self, node):