MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __call__

Method __call__

tools/python-3.11.9-amd64/Lib/weakref.py:585–590  ·  view source on GitHub ↗

If alive then mark as dead and return func(*args, **kwargs); otherwise return None

(self, _=None)

Source from the content-addressed store, hash-verified

583 finalize._dirty = True
584
585 def __call__(self, _=None):
586 """If alive then mark as dead and return func(*args, **kwargs);
587 otherwise return None"""
588 info = self._registry.pop(self, None)
589 if info and not self._shutdown:
590 return info.func(*info.args, **(info.kwargs or {}))
591
592 def detach(self):
593 """If alive then mark as dead and return (obj, func, args, kwargs);

Callers 1

__call__Method · 0.45

Calls 2

popMethod · 0.45
funcMethod · 0.45

Tested by

no test coverage detected