A decompiler for CPython bytecode
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.rst
decompile.py
test_decompile.py

README.rst

Python Decompiler

This project aims to create a comprehensive decompiler for CPython bytecode (likely works with PyPy as well, and any other Python implementation that uses CPython's bytecode). At the moment it is relatively incomplete, with many things not supported, including, but certainly not limited to:

  • Unpacking
  • try/except/finally
  • else clauses on try/for loops
  • any sort of arithmatic
  • keyword argument and *args, **kwargs to functions

I'm taking patches, but I suspect at least some of those will require refactorings and I've grown a tad too bored to do it myself.