How can we edit .pyc files?

How can we edit .pyc files?

Anonymous
Not applicable
15,979 Views
2 Replies
Message 1 of 3

How can we edit .pyc files?

Anonymous
Not applicable
Hi!
This is Krishna from India.
How can we edit or modify .pyc files..? its not opening in wordpad or not pad..
I installed python apps but i dint get good result.... is there any GUI for these files
plz give me one suggetion for open these files...

Thq...
Krish......
0 Likes
15,980 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
You cannot edit pyc files. A .pyc file is a compiled version of a .py file. If you want to edit a python script you'll need the source .py file.
0 Likes
Message 3 of 3

w.david.lewis
Explorer
Explorer
A quick search revealed:
http://stackoverflow.com/questions/378127/pyc-to-py-files

and

http://stackoverflow.com/questions/48211/free-python-decompiler-that-is-not-an-online-service

I have no experience with any of these so can make no recommendations. Maybe report back on what you decide upon.

--- David
0 Likes