INNER CODE UNIT · Python

__len__

wyounas/homer · homer/analyzer.py:100

    def __len__(self):
        return len(self.words)

    def __lt__(self, other):
        return len(self) < len(other)

    def __gt__(self, other):
        return len(self) > len(other)

    def __eq__(self, other):
        return len(self) == len(other)

    def __repr__(self):
        return 'Sentence(%r)' % self.sentence

    def __str__(self):
        return self.sentence

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…