retrieve source code from code object as returned by compile()

Justin Ezequiel justin.ezequiel at gmail.com
Thu Apr 24 22:50:15 EDT 2014


On Thursday, April 24, 2014 1:53:38 PM UTC+8, Gregory Ewing wrote:
> Alternatively you could create a .pyc file out of the code
> object and then use Easy Python Decompiler on that. The
> following snippet of code should do that:
> 
> (Taken from: 
> 
> http://stackoverflow.com/questions/8627835/generate-pyc-from-python-ast)

Woohoo! Success! Thank you Greg!



More information about the Python-list mailing list