def close(self): assert self.f is not None cgpt.fclose(self.f) self.f = None
def close(self): t0 = gpt.time() assert (not self.f is None) cgpt.fclose(self.f) self.f = None t1 = gpt.time()
def __del__(self): if self.f is not None: cgpt.fclose(self.f)
def __del__(self): t0 = gpt.time() if not self.f is None: cgpt.fclose(self.f) t1 = gpt.time()