def __init__(self,space = 4): oper.__init__(self) ''' ''' self.space=space self.libs = [] self.value_list = []
def __init__(self,space = 4,doc=''): oper.__init__(self) ''' Argument space: 4 if not defined Argument doc: doc='' if not defined ''' self.libs = [] self.value_obj = pvalue() self.class_list=[] self.func_list = [] self.doc = doc self.space = space
def __init__(self, name="", *argv, **kwargv): oper.__init__(self) """ Argument name: Argument space: Argument doc: """ if self.isgoodname(name): self.func_name = name self.space = kwargv.get("space", 4) self.init_values = [] self.local_value = {} self.libs = [] for i, j in argv: if self.isgoodname(i): self.init_values.append((i, j)) self.doc = kwargv.get("doc", "")
def __init__(self,name = 'NewClass', * argv, ** kwargv): oper.__init__(self) ''' Argument name: the class you want. argvs is the arguments your class carry in tuple ('value_name', value) Argument space: 4 if not defined Argument doc: doc='' if not defined ''' self.class_name = name self.space = kwargv.get('space',4) self.libs = [] self.init_values = [] self.func = {} self.value = {} for i, j in argv: if self.isgoodname(i): self.init_values.append((i, j)) self.doc = kwargv.get('doc', '')