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

Method __del__

Lib/asyncio/base_events.py:761–765  ·  view source on GitHub ↗
(self, _warn=warnings.warn)

Source from the content-addressed store, hash-verified

759 return self._closed
760
761 def __del__(self, _warn=warnings.warn):
762 if not self.is_closed():
763 _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
764 if not self.is_running():
765 self.close()
766
767 def is_running(self):
768 """Returns True if the event loop is running."""

Callers

nothing calls this directly

Calls 4

is_closedMethod · 0.95
is_runningMethod · 0.95
closeMethod · 0.95
_warnFunction · 0.50

Tested by

no test coverage detected