1.1 --- a/micropython/inspect.py Sat Feb 02 02:32:37 2008 +0100
1.2 +++ b/micropython/inspect.py Mon Feb 04 00:19:06 2008 +0100
1.3 @@ -483,7 +483,7 @@
1.4
1.5 # Complete lists of classes and functions.
1.6
1.7 - self.all_objects = []
1.8 + self.all_objects = set()
1.9
1.10 # Constant records.
1.11
1.12 @@ -610,7 +610,7 @@
1.13 # Record all non-local objects.
1.14
1.15 if not (self.namespaces and isinstance(self.namespaces[-1], Function)):
1.16 - self.all_objects.append(obj)
1.17 + self.all_objects.add(obj)
1.18
1.19 def store_attr(self, name):
1.20