1.1 --- a/micropython/data.py Mon Apr 06 01:57:40 2009 +0200
1.2 +++ b/micropython/data.py Tue Apr 07 00:57:04 2009 +0200
1.3 @@ -499,7 +499,7 @@
1.4 classcode = objtable.as_list().get_code(self.full_name())
1.5 attrcode = objtable.get_index(self.full_name())
1.6
1.7 - # Append a template of an instance for use when instantiating classes.
1.8 + # Include a template of an instance for use when instantiating classes.
1.9
1.10 call_method = self.get("__call__")
1.11 call_method_value = call_method and call_method.get_value()
1.12 @@ -510,6 +510,9 @@
1.13 instantiator_code_location = self.get_instantiator().blocks[0].location
1.14
1.15 return [
1.16 +
1.17 + # Template instance...
1.18 +
1.19 DataObject(
1.20 classcode, attrcode, call_method_code_location,
1.21 (
1.22 @@ -519,6 +522,9 @@
1.23 1,
1.24 self.full_name()
1.25 ),
1.26 +
1.27 + # Class...
1.28 +
1.29 DataObject(
1.30 classcode, attrcode, instantiator_code_location,
1.31 (