Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ recipe-528937.py
File
recipe-528937.py
recipes/Python/528937_Accessing_current_function/recipe-528937.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
bindfunction(f):
2
def
bound_f(*args, **kwargs):
3
return
f(bound_f, *args, **kwargs)
4
bound_f.__name__ = f.__name__
Callers
nothing calls this directly
Calls
3
factorial
Function · 0.70
counter
Function · 0.70
c
Function · 0.50
Tested by
no test coverage detected