1.1 --- a/micropython/inspect.py Mon Apr 28 00:53:10 2008 +0200
1.2 +++ b/micropython/inspect.py Mon Apr 28 21:19:42 2008 +0200
1.3 @@ -272,12 +272,17 @@
1.4 else:
1.5 return "Const(%r)" % self.value
1.6
1.7 + # Support constants as dictionary keys in order to build constant tables.
1.8 +
1.9 def __eq__(self, other):
1.10 return self.value == other.value
1.11
1.12 def __hash__(self):
1.13 return hash(self.value)
1.14
1.15 + def value_type_name(self):
1.16 + return "__builtins__." + self.value.__class__.__name__
1.17 +
1.18 class Class(NamespaceDict, Naming):
1.19
1.20 "An inspected class."