MCPcopy 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

1def 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

factorialFunction · 0.70
counterFunction · 0.70
cFunction · 0.50

Tested by

no test coverage detected