Next / Previous / Contents / Shipman's homepage

18.3. Paragraph.genContent(): Generate the content

Generates the phrases in self as a sequence of 2-tuples.

birdnotes.py
# - - -   P a r a g r a p h . g e n C o n t e n t

    def genContent ( self ):
        """Generate the content of self.
        """
        for  tag, text in self.__phraseList:
            yield (tag, text )
        raise StopIteration