Next / Previous / Contents / Shipman's homepage

16.3. SightNotes.genPhotos(): Generate photos

This method returns an iterator that generates the Photo objects in self. It can do this by simply returning and iterator over self._photoList.
# - - -   S i g h t N o t e s . g e n P h o t o s

    def genPhotos(self):
        """Generate the photo objects in self.
        return  iter(self._photoList)