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

Method __del__

Lib/shelve.py:169–174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

167 self.dict = None
168
169 def __del__(self):
170 if not hasattr(self, 'writeback'):
171 # __init__ didn't succeed, so don't bother closing
172 # see http://bugs.python.org/issue1339007 for details
173 return
174 self.close()
175
176 def sync(self):
177 if self.writeback and self.cache:

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected