Skip to content
interpret CPython in pure Python
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
CPython @ 4f097a0
cparser @ 57455f6
.gitignore
.gitmodules
README.md
better_exchook.py
compile_to_py.py
cpython.py
cpython_static.py

README.md

PyCPython

Idea: Use PyCParser to parse and interpret CPython. :)

Status so far:

$ ./cpython.py -V
...
Python 2.7.1

Yea!

Compatibility

PyPy, CPython 2.7 (so it can sort of host itself).

The C data structures itself are compatible with CPython, so in theory, you can even load C extensions and it should work.

Why

Just for fun.

(Maybe, to make it in any way serious: here)

Details

See PyCParser for more.

Something went wrong with that request. Please try again.