def __del__(self): "Destroys this spatial reference." if self._ptr: capi.release_srs(self._ptr)
def __del__(self): "Destroys this spatial reference." try: capi.release_srs(self._ptr) except (AttributeError, TypeError): pass # Some part might already have been garbage collected
"""
def __del__(self): "Destroys this spatial reference." if self._ptr and capi: capi.release_srs(self._ptr)