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

Function func1

recipes/Python/491265_Automatic_Recursion/recipe-491265.py:61–66  ·  view source on GitHub ↗
(a,b=1,c=2,d=3,e=4)

Source from the content-addressed store, hash-verified

59# examples
60
61def func1(a,b=1,c=2,d=3,e=4):
62 print locals()
63 if e<=0: return
64 else:
65 recurse(func1,locals(),
66 e=e-1 ) # recurse with e changed
67
68def func2(a,b=1,c=2,d=3,e=4):
69 RECURSE=recursor(func2,locals()) # freeze it at the beginning

Callers 1

recipe-491265.pyFile · 0.70

Calls 1

recurseFunction · 0.70

Tested by

no test coverage detected