473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

.py from .pyc - how? Have deleted my .py file!

Dear all,

never thought that this could happen to me: I accidently deleted a
..py-file before I could back it up :-(

However, the .pyc file is still there. Can I restore the .py file from
the .pyc file somehow?

Many thanks in advance
Franz GEIGER
Jul 18 '05 #1
5 5274
"F. GEIGER" <f.******@vol.at> wrote in news:cc**********@newshispeed.ch:
Dear all,

never thought that this could happen to me: I accidently deleted a
.py-file before I could back it up :-(

However, the .pyc file is still there. Can I restore the .py file from
the .pyc file somehow?


http://www.crazy-compilers.com/decompyle/

There is one drawback:
"# Costs only 10 EUR per 10 KB (or part thereof, counted per file)"

Matthias
Jul 18 '05 #2
Matthias Huening wrote:
"F. GEIGER" <f.******@vol.at> wrote in news:cc**********@newshispeed.ch:
However, the .pyc file is still there. Can I restore the .py file from
the .pyc file somehow?

http://www.crazy-compilers.com/decompyle/

There is one drawback:
"# Costs only 10 EUR per 10 KB (or part thereof, counted per file)"


There seems to be a free version still floating around, but it doesn't
work for bytecode generated by Python 2.3 or newer:

http://www.pypackage.org/packages/python-decompyle
Jul 18 '05 #3
Chris King wrote:
Matthias Huening wrote:
"F. GEIGER" <f.******@vol.at> wrote in news:cc**********@newshispeed.ch:
However, the .pyc file is still there. Can I restore the .py file
from the .pyc file somehow?


http://www.crazy-compilers.com/decompyle/

There is one drawback:
"# Costs only 10 EUR per 10 KB (or part thereof, counted per file)"

There seems to be a free version still floating around, but it doesn't
work for bytecode generated by Python 2.3 or newer:

http://www.pypackage.org/packages/python-decompyle


No more: "decompyle has moved to
http://www.crazy-compilers.com/decompyle/ Please update out bookmarks."

Guess I'll have to barin-dump it :-/

Anyway, many thanks for trying to help!

Kind regards
Franz GEIGER
Jul 18 '05 #4
F. GEIGER wrote:
http://www.pypackage.org/packages/python-decompyle
No more: "decompyle has moved to
http://www.crazy-compilers.com/decompyle/ Please update out bookmarks."


The .rpm link on that page still works, if you're on Mandrake or RedHat:
http://www.pypackage.org/files/mandr...-1pyp.i586.rpm

decompyle 2.2 is also available in Debian testing and unstable. If you
are running another Linux or Windows, you can grab the source package here:

http://ftp.debian.org/debian/pool/ma...a1.orig.tar.gz
Jul 18 '05 #5
Chris King wrote:
F. GEIGER wrote:
http://www.pypackage.org/packages/python-decompyle


No more: "decompyle has moved to
http://www.crazy-compilers.com/decompyle/ Please update out bookmarks."

The .rpm link on that page still works, if you're on Mandrake or RedHat:
http://www.pypackage.org/files/mandr...-1pyp.i586.rpm
decompyle 2.2 is also available in Debian testing and unstable. If you
are running another Linux or Windows, you can grab the source package here:

http://ftp.debian.org/debian/pool/ma...a1.orig.tar.gz


Hi

A while ago I found an updated version of decompyle that was meant to
work with Python 2.3. Unfortunately the pages it was on
(http://stud.usv.ro/~rchiriliuc/decompyle.php and
http://adal.eu.org/decompyle.php) seem to have disappeared ; I have
contacted the author (Adal Chiriliuc) to find out if he has any more info.

In the mean time I have put both 2.2beta1 and 2.3 up at
http://davidf.sjsoft.com/mirrors/decompyle/

Anyone with any more info, please shout...

David
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil... | last post by:
I have a directory with a lot of jpg files. I want to delete the small ones. Small means less than 100 pixels by 100 pixels. I use File.list() to get the list of files. I use ImageIcon(filename)...
14
by: ajikoe | last post by:
Hello, If I use os.remove(fileName), does it always assure that the code will move to the next code only if the fileName is deleted completely? Pujo
9
by: Robert Brown | last post by:
Our customer (of our ecommerce system) wants to be able to preserve deleted entities in the database so that they can do reporting, auditing etc. The system is quite complex where each end user...
3
by: db2inst2 | last post by:
Hi all, When doing a restore using control center, i see the backups that are no longer existing. That i physically deleted. Is there a specific way to deleted the backups? Should i...
2
by: GordoBR | last post by:
I have an A2K app that I deplyed a year ago in a multiuser environment (only 3-4 users max). The users recently drew my attention to a very odd thing: For one of their records a "Comments" field...
11
by: MLH | last post by:
I don't know how it happened. I have hundreds of hours worth of work invested in a file I foolishly named DB9.mdb. I was intending on renaming the file soon. But I neglected to do so before...
6
by: Kiran | last post by:
Hi, I have program, which opens file at the startup and logs error messages to the file, file handle is closed at the end of the program. However if file is deleted in-between, program do not...
0
by: Tony Johansson | last post by:
Hello! I have a very specific question and that is about how to inherit a visual control for example the control System.Windows.Forms.TextBox without causing the environment to delete the...
7
by: elgiei | last post by:
Good morning at all, i have to implement a server,that every n-seconds (eg. 10sec) sends to other clients,which files and directory has been deleted or modified. i build a n-tree, for each...
6
by: MLH | last post by:
Utilities to recover tbl removed from TABLE tab of database window with the DELETE key?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.