Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ __call__
Method
__call__
recipes/Python/574458_Composable_Functions/recipe-574458.py:7–8 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
5
self.func = f
6
7
def
__call__(self, x):
8
return
self.func(x)
9
10
def
__getattr__(self, other):
11
other = globals()[other]
Callers
nothing calls this directly
Calls
1
func
Method · 0.45
Tested by
no test coverage detected