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

Function wrap

recipes/Python/528929_Dynamic/recipe-528929.py:14–21  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

12 in a Composer object.
13 '''
14 def wrap(f):
15 def weaving(*args, **kwd):
16 g = f
17 for h in composer.callables:
18 g = h(g)
19 return g(*args, **kwd)
20 weaving.__name__ = f.__name__
21 return weaving
22 return wrap
23
24def composite(f):

Callers 1

_display_wrapped_rowFunction · 0.50

Calls 2

fFunction · 0.50
gFunction · 0.50

Tested by

no test coverage detected