def __init__(self, vals=None): if vals is None: self.vals = dll.from_list([]) else: self.vals = dll.from_list(vals)