Yes, it is possible. Decompyle++ aims to translate compiled Python byte-code back into valid and human-readable Python source code.
You cannot edit pyc files. A . pyc file is a compiled version of a . py file.
While managing several different screen sessions with vim open in many of them, in the process of trying to "organize" my sessions I somehow managed to overwrite a very important .py script with a 0Byte file.
However, I have an ipython instance open that, when running that same .py file as a module, still remembers the code that used to be there!
So did I just learn a hard lesson about backups (my last one was done by vim about a week ago, which would leave me with a lot of work to do), or is there any possible, conceivable way to retrieve the .py file from an already loaded module? I probably deserve this for being so cavalier, but I'm seriously desperate here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With