def __len__ ( self ) : length = 0 for typ , siz , _ in self . format : length += siz return length
measure length of object in python
This will equal 124 for the V1 database .
def __len__(self):
        """ This will equal 124 for the V1 database. """
        length = 0
        for typ, siz, _ in self.format:
            length += siz
        return length