def __iter__(self): "Iterates through each ring in the Polygon." for i in range(self.geom_count): yield self[i]