Next / Previous / Contents / Shipman's homepage

33. Puzzle.genCells(): Generate all the cells

kkck
# - - -   g e n C e l l s

    def genCells ( self ):
        '''Generate self's cells, in sorted order
        '''
        for cell in sorted ( self.__cellMap.values() ):
            yield cell
        raise StopIteration