Tool:Decompyle3
| Developer | Rocky Bernstein |
|---|---|
| Website | https://github.com/rocky/python-decompile3 |
| On this wiki | Facts · Code · Notes · Topics |
decompyle3 (rocky) is a reworked uncompyle6 for Python 3.7 and 3.8 bytecode; its README says it runs on and is tested with Python 3.7 or 3.8 only.
Scope
The README states that decompyle3 accepts bytecode from Python 3.7 on, but that the code can be run on Python 3.7 or 3.8 and that bytecode of versions 3.7 and 3.8 has been tested. Older bytecode is left to Tool:Uncompyle6. Install with pip install decompyle3; run decompyle3 file.pyc; --syntax-verify checks the result with the running interpreter, so use it only with the matching interpreter version.
Why it exists
Uncompyle6 matches control flow by instruction patterns and COME_FROM markers, which the author calls not robust and slow; decompyle3 refactors the grammar, and the author says proper dominator-based control flow is being done in a separate non-public project.
Failure modes
The README says only released (not candidate) versions are supported and that dozens of isolated bugs are known. License: the root file is named COPYING (not LICENSE) and holds the GNU General Public License version 3 text; pyproject.toml line 18 declares license = "GPL-3.0-or-later" (commit 0b97289634ffed8b785be5463ebab7cdf1743a15).
Related
Technique:Choosing a decompiler.
Sources
- README.rst of https://github.com/rocky/python-decompile3.
Code & repositories
- https://github.com/rocky/python-decompile3 @
0b97289634ffed8b785be5463ebab7cdf1743a15· license: unrecognized (COPYING)
decompyle3, Python 3.7/3.8 bytecode decompiler
Tested on: source read, not run: not run; README read · checked 2026-10-18; the license file was not recognized automatically: read it