1.1 --- a/micropython/inspect.py Mon Aug 23 00:15:03 2010 +0200
1.2 +++ b/micropython/inspect.py Sun Aug 29 02:03:24 2010 +0200
1.3 @@ -461,6 +461,13 @@
1.4 self.expr = self.dispatch(n)
1.5 function.store_default(self.expr)
1.6
1.7 + # Note attribute usage where tuple parameters are involved.
1.8 +
1.9 + if function.tuple_parameters():
1.10 + self.use_name("__getitem__", node)
1.11 +
1.12 + # Record the namespace context of the function for later processing.
1.13 +
1.14 self.functions.append((node, self.namespaces + [function]))
1.15
1.16 # Store the function.