(self)
return len(self.contents)
The length of a tag is the length of its list of contents.
The length of a tag is the length of its list of contents.
The length of a tag is the length of its list of contents .
def __len__(self):
        "The length of a tag is the length of its list of contents."
        return len(self.contents)
def __len__ ( self ) : return len ( self . contents )