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

Method __del__

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

Source from the content-addressed store, hash-verified

112 self._read_fut = None
113
114 def __del__(self, _warn=warnings.warn):
115 if self._sock is not None:
116 _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
117 self._sock.close()
118
119 def _fatal_error(self, exc, message='Fatal error on pipe transport'):
120 try:

Callers

nothing calls this directly

Calls 2

_warnFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected