Skip to main content

gopy internals

gopy is a from-scratch reimplementation of CPython 3.14 in Go. The goal is behavioural compatibility: same bytecode, same objects, same error messages. The implementation follows CPython page for page, so each page in this section has a direct counterpart in the CPython pillar.

Layout

Flat packages at the module root, no internal/ directory.

AreaPackages
Pipelineparser/, compile/, ast/
Executionvm/, pythonrun/
Runtimeobjects/, module/, stdlib/

Reading order

Start with pipeline for an end-to-end tour of how a .py file becomes running bytecode. Then follow the same per-subsystem pages as the CPython pillar.