MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / __call__

Method __call__

18-with-match/lispy/original/lis.py:19–21  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

17 def __init__(self, parms, body, env):
18 self.parms, self.body, self.env = parms, body, env
19 def __call__(self, *args):
20 env = Environment(dict(zip(self.parms, args)), self.env)
21 return eval(self.body, env)
22
23################ Global Environment
24

Callers

nothing calls this directly

Calls 2

evalFunction · 0.70
EnvironmentClass · 0.50

Tested by

no test coverage detected