1.1 --- a/micropython/inspect.py Wed Jun 13 01:20:12 2012 +0200
1.2 +++ b/micropython/inspect.py Thu Jun 14 01:25:15 2012 +0200
1.3 @@ -166,7 +166,10 @@
1.4 process.
1.5 """
1.6
1.7 - # Then, visit each function, recording other names.
1.8 + # Then, visit each function, recording other names. This happens to
1.9 + # work for lambda definitions inside functions since they are added to
1.10 + # the end of self.functions and are thus visited as the iteration
1.11 + # reaches the end of the original list.
1.12
1.13 for node, namespaces in self.functions:
1.14 self._visitFunctionBody(node, namespaces)