1.1 --- a/micropython/__init__.py Sun Nov 22 22:53:24 2009 +0100
1.2 +++ b/micropython/__init__.py Sun Nov 22 23:34:04 2009 +0100
1.3 @@ -100,11 +100,10 @@
1.4 # Optimise and regenerate the object table.
1.5
1.6 self.importer.vacuum(objtable)
1.7 - objtable = self.get_object_table(reset=1)
1.8 + self.importer.finalise()
1.9
1.10 - # Finalise the importer.
1.11 -
1.12 - self.importer.finalise()
1.13 + objtable = self.get_object_table(reset=1)
1.14 + paramtable = self.get_parameter_table(reset=1)
1.15
1.16 self.code = []
1.17
1.18 @@ -282,15 +281,13 @@
1.19
1.20 return self.objtable
1.21
1.22 - def get_parameter_table(self):
1.23 + def get_parameter_table(self, reset=0):
1.24
1.25 "Return a table with details of parameters for functions and methods."
1.26
1.27 # Need the object table to get at class details.
1.28
1.29 - objtable = self.get_object_table()
1.30 -
1.31 - if self.paramtable is None:
1.32 + if self.paramtable is None or reset:
1.33 t = self.paramtable = micropython.table.ParameterTable()
1.34
1.35 # Visit each module, getting function and method details.