Skip to content

Commit 2338cb9

Browse files
authored
Update lis.py
1 parent b4ffc54 commit 2338cb9

File tree

1 file changed

+2
-1
lines changed
  • 18-context-mngr/lispy/py3.10

1 file changed

+2
-1
lines changed

18-context-mngr/lispy/py3.10/lis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def __init__(self, parms: list[str], body: Expression, env: Environment):
2525
self.parms, self.body, self.env = parms, body, env
2626

2727
def __call__(self, *args: Expression) -> Any:
28-
env: Environment = ChainMap(dict(zip(self.parms, args)), self.env)
28+
local_env = dict(zip(self.parms, args))
29+
env: Environment = ChainMap(local_env, self.env)
2930
return evaluate(self.body, env)
3031

3132

0 commit comments

Comments
 (0)