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

Method __del__

Lib/multiprocessing/pool.py:266–271  ·  view source on GitHub ↗
(self, _warn=warnings.warn, RUN=RUN)

Source from the content-addressed store, hash-verified

264 # Copy globals as function locals to make sure that they are available
265 # during Python shutdown when the Pool is destroyed.
266 def __del__(self, _warn=warnings.warn, RUN=RUN):
267 if self._state == RUN:
268 _warn(f"unclosed running multiprocessing pool {self!r}",
269 ResourceWarning, source=self)
270 if getattr(self, '_change_notifier', None) is not None:
271 self._change_notifier.put(None)
272
273 def __repr__(self):
274 cls = self.__class__

Callers

nothing calls this directly

Calls 2

_warnFunction · 0.50
putMethod · 0.45

Tested by

no test coverage detected