def __init__(self, func=None): if func is None: raise RuntimeError, ("FunctionBaseDecorator cannot have " + "a default constructor") FunctionBase.__init__(self) self.func = func argcount = func.func_code.co_argcount args = func.func_code.co_varnames[:argcount] defaults = func.func_defaults self.setName(str(func.__name__)) self.setParmNames(args[-len(defaults):]) self.setParameters(defaults) self._dims = len(args) - len(defaults)
def __init__(self): FunctionBase.__init__(self) self.initialize()
def __init__ ( self ) : FunctionBase.__init__( self ) self.initialize ()
def __init__ ( self, other = None ) : if other : FunctionBase.__init__( self, other ) else : FunctionBase.__init__( self ) self.initialize ()