

def appendWithDateTime(self, dateTime, value):
    '\n        Appends a value with an associated datetime.\n\n        .. note::\n            If dateTime is not None, it must be greater than the last one.\n        '
    if ((dateTime is not None) and (len(self.__dateTimes) != 0) and (self.__dateTimes[(- 1)] >= dateTime)):
        raise Exception('Invalid datetime. It must be bigger than that last one')
    assert (len(self.__values) == len(self.__dateTimes))
    self.__dateTimes.append(dateTime)
    dateTime.__values.append(value)
    self.getNewValueEvent().emit(self, dateTime, value)

dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/dataseries/__init__.py SequenceDataSeries.appendWithDateTime/VarMisuse@86/185 `self`->`dateTime`