MCPcopy Index your code
hub / github.com/python/cpython / __del__

Method __del__

Lib/zipfile/__init__.py:2057–2059  ·  view source on GitHub ↗

Call the "close()" method in case the user forgot.

(self)

Source from the content-addressed store, hash-verified

2055 self.start_dir = self.fp.tell()
2056
2057 def __del__(self):
2058 """Call the "close()" method in case the user forgot."""
2059 self.close()
2060
2061 def close(self):
2062 """Close the file, and for mode 'w', 'x' and 'a' write the ending

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected