def __len__ ( self ) : return self . chunk_length ( ) + len ( self . type ) + len ( self . header ) + 4
size of list object in python
Return total data length of the list and its headers .
def __len__(self):
        """Return total data length of the list and its headers."""
        return self.chunk_length() + len(self.type) + len(self.header) + 4