def __init__(self, **kwargs): self.pre = self.__class__.__name__ # auxiliary string for debugging output # print(self.pre,"__init__ : parameter_defs : ",self.parameter_defs) # check kwargs agains parameter_defs, attach ok'd parameters to this # object as attributes parameterInitCheck(self.parameter_defs, kwargs, self) self.logger = getLogger(self.pre) # hierarchical logger self.logger.debug("__init__ : hello")
def __init__(self, **kwargs): # if you need to call the superclass constructor: # super().__init__(**kwargs) # python3 # super(FancyHelloWorld, self).__init__(**kwargs) # python2 compatible # auxiliary string for debugging output self.pre = self.__class__.__name__ + " : " # check kwargs agains parameter_defs, attach ok'd parameters to this # object as attributes parameterInitCheck(self.parameter_defs, kwargs, self)
def __init__(self, **kwargs): self.pre = self.__class__.__name__ # auxiliary string for debugging output parameterInitCheck(self.parameter_defs, kwargs, self) # check for input parameters self.logger = getLogger(self.pre) # hierarchical logger self.logger.debug("__init__ : hello")
def __init__(self, **kwargs): 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