Beispiel #1
0
    def __init__(self, init=None, burnin=0, *args, **kwargs):
        MutableSequence.__init__(self, *args, **kwargs)
        self._trace = []
        if init:
            self._trace.append(init)

        # burn-in period - ignored by property getters
        self.burnin = burnin
Beispiel #2
0
    def __init__(self, value: typ.List[DListElemType] = None) -> None:
        MutableSequence.__init__(self)
        DType.__init__(self, list)

        if value is None:
            value = []
        self._value = value
        self._idx = 0