interpret CPython in pure Python
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CPython @ 4f097a0 CPython small fix Feb 16, 2016
cparser @ 16d57b5 cparser Sep 2, 2016
.gitignore gitignore Oct 25, 2015
.gitmodules CPython Oct 25, 2015
README.md some more readme Dec 8, 2015
better_exchook.py update better_exchook Oct 25, 2015
compile_to_py.py more on static compile Sep 2, 2016
cpython.py handle modsupport.c Feb 26, 2016
cpython_static.py new static Sep 2, 2016

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.