473,574 Members | 2,470 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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 5280
"F. GEIGER" <f.******@vol.a t> 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.a t> 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.a t> 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
1650
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) to create an ImageIcon. I use getIconHeight() and getIconWidth(). then I try to delete the file if it meets the "small" test. I tried to use...
14
2190
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
1843
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 can belong to multiple institutional affiliations (which can purchase on behalf of the user). The end user also has a rich trail of past...
3
2455
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 manually mark the backups as expired in the history file? NUM_DB_BACKUPS 12
2
3514
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 now has the text "#Deleted." They wanted to change it to input the proper comments but when they try Access gives them a warning that you are about...
11
2318
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 getting caught up in a new project. When I did, I forgot about the filename I was working under. One day, and I don't know how long ago it was, I deleted...
6
5278
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 report any error while writing to the open file handle. On Windows, file shows-up again in explorer and automatically deleted finally when program...
0
1590
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 control when there are some compile errors. It's the same problem with any visual control that you inherit. The control is deleted as soon as you use the...
7
2288
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 files on harddisk there's a node into n- tree, this solution is not good for large hard disk.. and i can't use inotify (it's forbidden), and only c...
6
7778
by: MLH | last post by:
Utilities to recover tbl removed from TABLE tab of database window with the DELETE key?
0
7797
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7715
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8041
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6440
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3739
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2233
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1333
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1053
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.