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

Function factory

recipes/Python/59876_AbstractFactory/recipe-59876.py:48–49  ·  view source on GitHub ↗
(aClass, *args)

Source from the content-addressed store, hash-verified

46
47#--------much simpler one by mark lutz, http://shell.rmi.net/~lutz/talk.html
48def factory(aClass, *args): # varargs tuple
49 return apply(aClass, args) # call aClass
50
51class Spam:
52 def doit(self, message):

Callers 7

recipe-59876.pyFile · 0.70
parse_rowMethod · 0.50
_instantiateMethod · 0.50
build_initerMethod · 0.50
createMethod · 0.50
_iterblocksFunction · 0.50
build_initerMethod · 0.50

Calls 1

applyFunction · 0.50

Tested by

no test coverage detected