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

Method __call__

Lib/weakref.py:485–490  ·  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

483 finalize._dirty = True
484
485 def __call__(self, _=None):
486 """If alive then mark as dead and return func(*args, **kwargs);
487 otherwise return None"""
488 info = self._registry.pop(self, None)
489 if info and not self._shutdown:
490 return info.func(*info.args, **(info.kwargs or {}))
491
492 def detach(self):
493 """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