MCPcopy Index your code
hub / github.com/RustPython/RustPython / __del__

Method __del__

Lib/asyncio/windows_utils.py:110–113  ·  view source on GitHub ↗
(self, _warn=warnings.warn)

Source from the content-addressed store, hash-verified

108 self._handle = None
109
110 def __del__(self, _warn=warnings.warn):
111 if self._handle is not None:
112 _warn(f"unclosed {self!r}", ResourceWarning, source=self)
113 self.close()
114
115 def __enter__(self):
116 return self

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
_warnFunction · 0.50

Tested by

no test coverage detected