Skip to content

Instantly share code, notes, and snippets.



Created Sep 17, 2017
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
sibilant > bar
sibilant > baz
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/", 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/", line 188, in evaluator
return eval(code, mod_globals)
File "<sibilant>", line 1, in __main__
NameError: name 'tacos' is not defined

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