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

Method __del__

Lib/asyncio/unix_events.py:910–916  ·  view source on GitHub ↗
(self, _warn=warnings.warn)

Source from the content-addressed store, hash-verified

908 self._threads = {}
909
910 def __del__(self, _warn=warnings.warn):
911 threads = [thread for thread in list(self._threads.values())
912 if thread.is_alive()]
913 if threads:
914 _warn(f"{self.__class__} has registered but not finished child processes",
915 ResourceWarning,
916 source=self)
917
918 def add_child_handler(self, pid, callback, *args):
919 loop = events.get_running_loop()

Callers

nothing calls this directly

Calls 4

listClass · 0.85
_warnFunction · 0.50
valuesMethod · 0.45
is_aliveMethod · 0.45

Tested by

no test coverage detected