Re: Python 2.6 Decompile --- I lost my views.py but have the views.pyc

2009-12-17 Thread Fabian Ezequiel Gallina
2009/12/17 Andrew : > Thanks guys for all the commentsIm on ubuntu on eclipse and there > was no local history alas > > Thems the breaks when you omit to submit ;-) ... to source control... > > I used UnPyc to disassemble the .pyc and I am now rewriting the python > using the assembly as a

Re: Python 2.6 Decompile --- I lost my views.py but have the views.pyc

2009-12-17 Thread Andrew
Thanks guys for all the commentsIm on ubuntu on eclipse and there was no local history alas Thems the breaks when you omit to submit ;-) ... to source control... I used UnPyc to disassemble the .pyc and I am now rewriting the python using the assembly as a guide. Good think I did mainfram

Re: Python 2.6 Decompile --- I lost my views.py but have the views.pyc

2009-12-17 Thread Bill Freeman
The name of the byte code disassembler is dis, and it's part of the standard python install in 2.4, 2.5, 2.6, and 3.0 (the ones I have handy to test with) and will be documented in the default docs. You can confirm that you have it by trying "import dis". On Thu, Dec 17, 2009 at 2:45 PM, Shawn Mi

Re: Python 2.6 Decompile --- I lost my views.py but have the views.pyc

2009-12-17 Thread Shawn Milochik
This won't help you unless there's something you forgot about, but it could help you in the future. In addition to git, I also use JungleDisk. It backs up my entire projects folder every hour. Perhaps you have Carbonite, JungleDisk, Mozy, or one of those services and you might be able to recover

Re: Python 2.6 Decompile --- I lost my views.py but have the views.pyc

2009-12-17 Thread Sean Perry
On Thu Dec 17 11:28 , Bill Freeman sent: >I saw a demo of a byte code disassembler once. It won't get you the >source code back, but you could conceivably construct equivalent from >it. You can, for example, see what it's calling, and sketch out the >contiditionals and any loops. You could g

Re: Python 2.6 Decompile --- I lost my views.py but have the views.pyc

2009-12-17 Thread Bill Freeman
I saw a demo of a byte code disassembler once. It won't get you the source code back, but you could conceivably construct equivalent from it. You can, for example, see what it's calling, and sketch out the contiditionals and any loops. You could google for it, or ask on the python tutor mailing

Python 2.6 Decompile --- I lost my views.py but have the views.pyc

2009-12-17 Thread Andrew
Hi guys, Ok...firstly me bad ... I didn't check into my source control which was stupid. So if I can close that book ;-) I am looking for a decompiler for my views.pyc ... Im using django 1.1.1 and python 2.6.2 ... I have tried UnPyc but fails. Has anyone successfully found a 2.6 decompiler ? Th