def __init__(self, *args): this = _nlopt.new_nlopt_doublevector(*args) try: self.this.append(this) except: self.this = this