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

Method __del__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

_detachMethod · 0.80
_warnFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected