MCPcopy Create free account
hub / github.com/ActiveState/code / __call__

Method __call__

recipes/Python/363775_Curry/recipe-363775.py:26–31  ·  view source on GitHub ↗

Call the function.

(self, *args, **kargs)

Source from the content-addressed store, hash-verified

24 self.initKargs = initKargs
25
26 def __call__(self, *args, **kargs):
27 """Call the function."""
28 updatedArgs = self.initArgs + args
29 updatedKargs = self.initKargs.copy()
30 updatedKargs.update(kargs)
31 return self.f(*updatedArgs, **updatedKargs)

Callers

nothing calls this directly

Calls 3

copyMethod · 0.45
updateMethod · 0.45
fMethod · 0.45

Tested by

no test coverage detected