Next / Previous / Contents / Shipman's homepage

18.3. Narrative.__len__(): How many paragraphs?

Returns the number of paragraphs in self.

birdnotes.py
# - - -   N a r r a t i v e . _ _ l e n _ _

    def __len__(self):
        """Return the length of self in paragraphs.
        """
        return  len(self._paraList)