# HG changeset patch # User Paul Boddie # Date 1339629915 -7200 # Node ID 8dadbb830899f8e5fdc6b87a248f105ce81f9157 # Parent 8824b42d7b7131618a3b59796255cbd77d5dc06d Added a note about function discovery within functions and the resulting processing. diff -r 8824b42d7b71 -r 8dadbb830899 micropython/inspect.py --- a/micropython/inspect.py Wed Jun 13 01:20:12 2012 +0200 +++ b/micropython/inspect.py Thu Jun 14 01:25:15 2012 +0200 @@ -166,7 +166,10 @@ process. """ - # Then, visit each function, recording other names. + # Then, visit each function, recording other names. This happens to + # work for lambda definitions inside functions since they are added to + # the end of self.functions and are thus visited as the iteration + # reaches the end of the original list. for node, namespaces in self.functions: self._visitFunctionBody(node, namespaces)