This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 77363ecf78ed1b2eaf1d27b6cdb15503366f60f1
tree c12444c68120a328fee93040cfee2e4df2322caf
parent 66aad35513f42db8e91f7a77ca1b5401e9a17431
tree c12444c68120a328fee93040cfee2e4df2322caf
parent 66aad35513f42db8e91f7a77ca1b5401e9a17431
unholy /
| name | age | message | |
|---|---|---|---|
| |
README | Mon May 05 02:28:21 -0700 2008 | [why] |
| |
bin/ | Mon May 05 02:13:31 -0700 2008 | [why] |
| |
decompyle/ | Mon May 05 02:21:51 -0700 2008 | [why] |
| |
lib/ | Mon May 05 02:13:31 -0700 2008 | [why] |
| |
python/ | Mon May 05 02:11:15 -0700 2008 | [why] |
README
$ UNHOLY $
Compile Ruby to Python bytecode.
And, in addition, translate that
bytecode back to Python source
code using Decompyle (included.)
$ INSTALL $
First, install decompyle:
> cd decompyle
> python setup.py build
# python setup.py install
Then, in the main directory, use
the tools.
---
To compile Ruby to a .pyc:
> bin/unholy test.rb
> python test.rb.pyc
---
To translate to Python:
> decompyle test.rb.pyc > test.py
---
And, to view the disassembled
bytes:
> bin/py-dis test.rb.pyc
Thanks to Ned Batchelder for his
rather juicy posts on dissecting
Python bytecode. It is only too
bad that a Rubyist got a hold of
them. :(




