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

Method __del__

Lib/tempfile.py:771–779  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

769 return self._file.__iter__()
770
771 def __del__(self):
772 if not self.closed:
773 _warnings.warn(
774 "Unclosed file {!r}".format(self),
775 ResourceWarning,
776 stacklevel=2,
777 source=self
778 )
779 self.close()
780
781 def close(self):
782 self._file.close()

Callers

nothing calls this directly

Calls 3

closeMethod · 0.95
warnMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected