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

Method __call__

recipes/Python/578450_Factory_pattern/recipe-578450.py:67–73  ·  view source on GitHub ↗

call function

(self, *args, **kargs)

Source from the content-addressed store, hash-verified

65 self._kargs = kargs
66
67 def __call__(self, *args, **kargs):
68 """call function"""
69 _args = list(self._args)
70 _args.extend(args)
71 _kargs = self._kargs.copy()
72 _kargs.update(kargs)
73 return apply(self._function,_args,_kargs)
74

Callers

nothing calls this directly

Calls 5

listClass · 0.85
applyFunction · 0.50
extendMethod · 0.45
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected