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
2013-12-12 10:54:54 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
269f31a25b36b4ac37235cced97d49b00310134a
269f31a2
1 parent
ad47b853
hopefully fixed let
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
snakes/nets.py
snakes/nets.py
View file @
269f31a
...
...
@@ -905,9 +905,12 @@ class Expression (ArcAnnotation) :
if
self
.
_true
:
return
Token
(
True
)
else
:
env
=
binding
.
dict
()
env
[
"__binding__"
]
=
env
env
=
binding
.
_dict
env
[
"__binding__"
]
=
binding
.
_dict
try
:
return
Token
(
self
.
globals
(
self
.
_expr
,
env
))
finally
:
del
env
[
"__binding__"
]
def
__call__
(
self
,
binding
)
:
"""Returns the value from `bind` (but not encapsulated in a
`Token`).
...
...
Please
register
or
login
to post a comment