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.
2.1 --- a/test.py Sun Nov 22 22:53:24 2009 +0100
2.2 +++ b/test.py Sun Nov 22 23:34:04 2009 +0100
2.3 @@ -49,15 +49,15 @@
2.4
2.5 # Build the program.
2.6
2.7 - ot = p.get_object_table()
2.8 - pt = p.get_parameter_table()
2.9 -
2.10 if "-m" in args or "-t" in args:
2.11 rm = rsvp.machine(p, debug=("-g" in args), abort_upon_exception=("-x" in args))
2.12 if "-t" in args:
2.13 success = rm.test(m)
2.14 print "Test successful?", success
2.15
2.16 + ot = p.get_object_table()
2.17 + pt = p.get_parameter_table()
2.18 +
2.19 # Report any errors.
2.20
2.21 except micropython.ProcessingError, exc: