Пример #1
0
    def __init__(self, **kwargs):
        # if you need to call the superclass constructor:
        # super().__init__(**kwargs) # python3
        # super(FancyHelloWorld, self).__init__(**kwargs) # python2 compatible

        self.pre = self.__class__.__name__ + " : "  # auxiliary string for debugging output
        parameterInitCheck(
            self.parameter_defs, kwargs, self
        )  # check kwargs agains parameter_defs, attach ok'd parameters to this object as attributes
Пример #2
0
 def __init__(self, **kwargs):
   self.pre=self.__class__.__name__+" : " # auxiliary string for debugging output
   # print(self.pre,"__init__ : parameter_defs : ",self.parameter_defs)
   parameterInitCheck(self.parameter_defs,kwargs,self) # check kwargs agains parameter_defs, attach ok'd parameters to this object as attributes
Пример #3
0
 def __init__(self, **kwargs):
     self.pre = self.__class__.__name__ + " : "  # auxiliary string for debugging output
     parameterInitCheck(self.parameter_defs, kwargs,
                        self)  # check for input parameters