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

Method __del__

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

Source from the content-addressed store, hash-verified

115 self._handle = None
116
117 def __del__(self, _warn=warnings.warn):
118 if self._handle is not None:
119 _warn(f"unclosed {self!r}", ResourceWarning, source=self)
120 self.close()
121
122 def __enter__(self):
123 return self

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
_warnFunction · 0.50

Tested by

no test coverage detected