def __iter__(self):
        for i in range(self.point_count):
            yield self[i]
Check if the objects don't have one of the attributes set.
dataset/ETHPy150Open django/django/django/contrib/gis/gdal/geometries.py/LineString.__iter__--crossover with--dataset/ETHPy150Open cjerdonek/open-rcv/openrcv/test/test_jsonlib.py/JsonableMixinTest.test_eq__missing_attribute