Open behrica opened 1 year ago
If you try from embedded mode it should work. I can't remember the trick but you need to create a base frame by running py/run-simple-string
otherwise.
Footnotes:
(import-python)
you get access to the Python
namespace which will
Let you do python/eval
.@behrica
(import-python)
(python/eval "1" (:globals (py/run-simple-string ""))) ;;=> 1
Black magic.
Actually...
(python/eval "1" (python/dict)) ;;=> 1
also works :thinking:
You know, I gotta say, sometimes libpython-clj confuses me.
(python/eval "eval('eval(\"1\")', {\"eval\": eval})" {"eval" python/eval}) ;;=> 1
while this works
while in python both work: