Next / Previous / Contents / Shipman's homepage

18.5. Narrative.genParas(): Generate self's contained paragraphs

This method generates the Paragraph instances in self. Returning a Python iterator instance for self._paraList suffices.

birdnotes.py
# - - -   N a r r a t i v e . g e n P a r a s

    def genParas(self):
        """Return an iterator over self's paragraphs.
        """
        return iter(self._paraList)