Gython is a simplified python virtual machine implemented in Go. It reads a source file compiled in a special bytecode format named CoCo which is easier to be parsed than .pyc format. The compiler is example/disassembler.py.
Gython implement a subset of Python 3 bytecodes(not compatible with Python 2).the feature supported now are below:
- basic data structures: int/float/string/list/tuple/function
- control flow statements: for/while/if
- closure
I wrote this just for understanding python internel and practicing Go, so it will never be completely compatible with CPython.
- Read .pyc file directly
- Exception
- iterator
- class
- module
BSD 2-Clause