Skip to content

Instantly share code, notes, and snippets.

@oubiwann
Last active August 29, 2015 14:10
LFE and Python 3
$ git clone git@github.com:oubiwann/erlport-demo.git
$ cd erlport-demo
$ cd python
$ python3.4 -m venv .venv
$ . .venv/bin/activate
$ cd ../
$ cd lfe
$ make repl
[snip]
Starting an LFE REPL ...
Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:8:8] ...
LFE Shell V6.2 (abort with ^G)
>
> (set `#(ok ,pid) (python:start))
#(ok <0.32.0>)
> (set result (python:call pid 'sys 'version.__str__ ()))
"3.4.2 (v3.4.2:ab2c023a9432, Oct 5 2014, 20:42:22) ..."
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment