Skip to content

Instantly share code, notes, and snippets.

@obriencj

obriencj/example

Created Sep 17, 2017
Embed
What would you like to do?
mapbind works just fine in sibilant
maybe:python-sibilant siege$ sibilant
sibilant > (defimport mapbind)
sibilant > (define data (dict foo: 100 bar: 200 baz: 300 tacos: 'yum))
sibilant > data
{'tacos': <symbol 'yum'>, 'foo': 100, 'bar': 200, 'baz': 300}
sibilant > (define-values (foo bar baz) (mapbind.mapbind data))
sibilant > foo
100
sibilant > bar
200
sibilant > baz
300
sibilant > tacos
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sibilant-0.9.0-py3.5.egg/sibilant/module.py", line 197, in run_time
return evaluator(code_obj)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sibilant-0.9.0-py3.5.egg/sibilant/module.py", line 188, in evaluator
return eval(code, mod_globals)
File "<sibilant>", line 1, in __main__
NameError: name 'tacos' is not defined
@obriencj

This comment has been minimized.

Copy link
Owner Author

@obriencj obriencj commented Sep 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment