def __del__(self):
        "Destroys this DataStructure object."
        try:
            capi.destroy_ds(self._ptr)
        except (AttributeError, __HOLE__):
            pass  # Some part might already have been garbage collected
dataset/ETHPy150Open django/django/django/contrib/gis/gdal/datasource.py/DataSource.__del__