Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Franck Pommereau
/
snakes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2014-02-18 15:50:50 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d684371722a944a66323f741af12e943130ab0ae
d6843717
1 parent
13f9f94d
minor edit to clarify code
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
snakes/nets.py
snakes/nets.py
View file @
d684371
...
...
@@ -906,11 +906,13 @@ class Expression (ArcAnnotation) :
return
Token
(
True
)
else
:
env
=
binding
.
_dict
env
[
"__binding__"
]
=
binding
.
_dict
# just to allow a cleaner implementation of let
env
[
"__binding__"
]
=
env
env
[
"__globals__"
]
=
self
.
globals
try
:
return
Token
(
self
.
globals
(
self
.
_expr
,
env
))
finally
:
# cleanup what was added above
del
env
[
"__binding__"
]
del
env
[
"__globals__"
]
def
__call__
(
self
,
binding
)
:
...
...
Please
register
or
login
to post a comment