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

Method __del__

Lib/asyncio/selector_events.py:875–880  ·  view source on GitHub ↗
(self, _warn=warnings.warn)

Source from the content-addressed store, hash-verified

873 self._call_soon(self._call_connection_lost, None)
874
875 def __del__(self, _warn=warnings.warn):
876 if self._sock is not None:
877 _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
878 self._sock.close()
879 if self._server is not None:
880 self._server._detach(self)
881
882 def _fatal_error(self, exc, message='Fatal error on transport'):
883 # Should be called from exception handler only.

Callers

nothing calls this directly

Calls 3

_warnFunction · 0.50
closeMethod · 0.45
_detachMethod · 0.45

Tested by

no test coverage detected