def __del__(self):
        try:
            del self._coldefs
        except __HOLE__:
            pass
        else:
            if self.dtype.fields is not None:
                for col in self._col_weakrefs:
                    if isinstance(col.array, np.ndarray):
                        col.array = col.array.copy()
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/fitsrec.py/FITS_rec.__del__