Пример #1
0
 def close(self):
     assert self.f is not None
     cgpt.fclose(self.f)
     self.f = None
Пример #2
0
 def close(self):
     t0 = gpt.time()
     assert (not self.f is None)
     cgpt.fclose(self.f)
     self.f = None
     t1 = gpt.time()
Пример #3
0
 def __del__(self):
     if self.f is not None:
         cgpt.fclose(self.f)
Пример #4
0
 def __del__(self):
     t0 = gpt.time()
     if not self.f is None:
         cgpt.fclose(self.f)
     t1 = gpt.time()