I maintain a CPU-efficient but somewhat memory expensive lookup tree for datetime objects.

Method __init__ Undocumented
Method __len__ Undocumented
Method isPending Undocumented
Method load Load a list of datetime objects or rows whose first element is a datetime object.
Method check Check the specified datetime object, returning True if it's in my lookup tree.
Method set Sets an entry in my lookup tree for the specified datetime object.
Method _uniterator Iterates over values for each time unit of the supplied datetime object, yielding an integer number of positions to the last time unit and the value for that time unit.
def __init__(self, rows=[]):
Undocumented
def __len__(self):
Undocumented
def isPending(self, *args):
Undocumented
def load(self, rows):

Load a list of datetime objects or rows whose first element is a datetime object.

def _uniterator(self, dt):

Iterates over values for each time unit of the supplied datetime object, yielding an integer number of positions to the last time unit and the value for that time unit.

def check(self, dt):

Check the specified datetime object, returning True if it's in my lookup tree.

def set(self, dt):

Sets an entry in my lookup tree for the specified datetime object.

API Documentation for logalyzer, generated by pydoctor at 2021-09-18 08:41:09.