def __del__(self): if self.ptr: runtime.eventDestroy(self.ptr) self.ptr = None
def __del__(self): if self.ptr: runtime.eventDestroy(self.ptr)