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

Function func2

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

Source from the content-addressed store, hash-verified

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
70 print locals()
71 if e<=0: return
72 else:
73 RECURSE(e=e-1)
74
75def func3(a,b=1,c=2,d=3,e=4):
76 print locals()

Callers 1

recipe-491265.pyFile · 0.70

Calls 1

recursorFunction · 0.85

Tested by

no test coverage detected