1.1 --- a/micropython/data.py Wed Aug 27 00:45:14 2008 +0200
1.2 +++ b/micropython/data.py Mon Sep 01 01:32:32 2008 +0200
1.3 @@ -436,10 +436,12 @@
1.4 "Return a function which can be used to instantiate the class."
1.5
1.6 if self.instantiator is None:
1.7 - init_method = self.all_class_attributes()["__init__"].value
1.8 - self.instantiator = init_method.function_from_method()
1.9 + self.instantiator = self.get_init_method().function_from_method()
1.10 return self.instantiator
1.11
1.12 + def get_init_method(self):
1.13 + return self.all_class_attributes()["__init__"].value
1.14 +
1.15 # Class-specific methods.
1.16
1.17 def add_base(self, base):