def __init__(self, *args): this = _svmc.new_svm_parameter(*args) try: self.this.append(this) except: self.this = this
def __init__(self,**kw): self.__dict__['param'] = svmc.new_svm_parameter() for attr,val in self.default_parameters.items(): setattr(self,attr,val) for attr,val in kw.items(): setattr(self,attr,val)