Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ recipe-491265.py
File
recipe-491265.py
recipes/Python/491265_Automatic_Recursion/recipe-491265.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# simple dirty trick for automatic recursion: keyword args from locals()
2
3
def
myfunc(a,b=1,c=2,d=3,e=4):
4
_kwargs=locals().copy()
# freeze unconditional at very beginning
Callers
nothing calls this directly
Calls
9
recursor1
Function · 0.85
func3
Function · 0.85
func4
Function · 0.85
func_with_echo
Function · 0.85
myfunc
Function · 0.70
func1
Function · 0.70
func2
Function · 0.70
Class
Class · 0.70
meth
Method · 0.45
Tested by
no test coverage detected