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

Function test

recipes/Python/578993_Keywordonly_arguments/recipe-578993.py:139–144  ·  view source on GitHub ↗
(f, *args, **kws)

Source from the content-addressed store, hash-verified

137
138if __name__ == '__main__':
139 def test(f, *args, **kws):
140 print(args, kws, '-> ', end='')
141 try:
142 f(*args, **kws)
143 except TypeError as e:
144 print(e.args[0])
145
146 @decorator_factory()
147 def f(a, b, c, d, e='e'):

Callers 1

recipe-578993.pyFile · 0.70

Calls 2

printFunction · 0.85
fFunction · 0.70

Tested by

no test coverage detected