Re: [pygame] Reverse Compiling

2007-08-08 Thread Richard Jones
On Wed, 8 Aug 2007, Ian Mallett wrote:
 All hail king Linux! (or Mac) except .exe files don't run...

You're just not using Wine :)


Richard


Re: [pygame] Reverse Compiling

2007-08-08 Thread Richard Jones
On Wed, 8 Aug 2007, Ian Mallett wrote:
 I was backing up my files onto a CD when I ironically deleted an original
 .py file for a module leaving the .pyc version.  My question here, is can
 you reverse compile it?  I want to make some changes.

[odd, with all that noise no-one has actually answered your question...]

Yes, you can decompile a Python .pyc or .pyo module using decompyle:

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


Richard


Re: [pygame] Reverse Compiling

2007-08-08 Thread Richard Jones
On Wed, 8 Aug 2007, Richard Jones wrote:
 On Wed, 8 Aug 2007, Ian Mallett wrote:
  I was backing up my files onto a CD when I ironically deleted an original
  .py file for a module leaving the .pyc version.  My question here, is can
  you reverse compile it?  I want to make some changes.

 [odd, with all that noise no-one has actually answered your question...]

 Yes, you can decompile a Python .pyc or .pyo module using decompyle:

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

My apologies: I sent that link without completely reading the page -- I know 
the name decompyle from a tool that I've used in the past and just assumed 
that page had a download link somewhere.

It looks like the author of the decompyle software is now providing the 
decompilation as a business. My quick Googling doesn't show up any 
downloadable source though, which is a shame. It is packaged for Debian Linux 
though :)


Richard


Re: [pygame] Reverse Compiling

2007-08-08 Thread Greg Ewing

Richard Jones wrote:
It looks like the author of the decompyle software is now providing the 
decompilation as a business. My quick Googling doesn't show up any 
downloadable source though, which is a shame. It is packaged for Debian Linux 
though :)


I took a peek at the list of files link for one of those
packages, and it sure looks like it contains Python source
files:

http://packages.debian.org/cgi-bin/search_contents.pl?searchmode=filelistword=decompyleversion=unstablearch=powerpc

This version is only claimed to work with Pythons up to 2.3,
though.

--
Greg


Re: [pygame] Reverse Compiling

2007-08-08 Thread Ian Mallett
J'ai deja vu...  except this time it says something about supporting 2.5.  I

On 8/8/07, Richard Jones [EMAIL PROTECTED] wrote:

 On Wed, 8 Aug 2007, Ian Mallett wrote:
  All hail king Linux! (or Mac) except .exe files don't run...

 You're just not using Wine :)

Richard


What's Wine?  If it's what I think it is, it should be preinstalled.  Is it
a Linux thing?  Mac seems to go with bootleg/bootcamp.
Ian


Re: [pygame] Reverse Compiling

2007-08-08 Thread Marius Gedminas
On Tue, Aug 07, 2007 at 03:52:51PM -0700, Ian Mallett wrote:
 I was backing up my files onto a CD when I ironically deleted an original
 .py file for a module leaving the .pyc version.  My question here, is can
 you reverse compile it?  I want to make some changes.

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

Marius Gedminas
-- 
If it weren't for the last minute, nothing would get done.


signature.asc
Description: Digital signature


Re: [pygame] Reverse Compiling

2007-08-08 Thread massimo s.
Ian Mallett ha scritto:

 On Wed, 8 Aug 2007, Ian Mallett wrote:
  All hail king Linux! (or Mac) except .exe files don't run...
 
 You're just not using Wine :)
 
 Richard
 
 
 What's Wine?  If it's what I think it is, it should be preinstalled.  Is
 it a Linux thing?  Mac seems to go with bootleg/bootcamp. 
 Ian

It's an open source Linux (don't know about other Unixen) software that
allows you to run Windows programs under Linux just like they were
native Linux executables. It translates DLL calls to Linux calls, so the
process is almost entirely transparent. You don't even need to have a
Windows copy around. The software you want to run just thinks it's on
Windows... but it's not.

Look at http://www.winehq.org

Of course to have a 1:1 Windows-Linux compatibility layer (done by
*reverse engineering* Windows libraries) it's a gigantic feat, and many
applications still do not work properly. But there is already a lot of
applications that work nicely or at least are usable. Some versions of
MS Office, Photoshop, etc. I use it in my laboratory to run EndNote 9
natively under Kubuntu. A lifesaver.

Here is a compatibility database. Excellent startpoint, but Wine is
under heavy and fast development... ;)

http://appdb.winehq.org/

m.


Re: [pygame] Reverse Compiling

2007-08-08 Thread Greg Ewing

Ian Mallett wrote:

What's Wine?  If it's what I think it is, it should be preinstalled.


WINdows Emulator [1]. From what I hear, it kinda sorta
works, sometimes, if you're lucky. Not really solid
enough to be preinstalled on MacOS.

[1] Some people will try to tell you it stands for
Wine Is Not an Emulator, but that's poppycock. It
*is* an emulator, just not a *hardware* emulator.

--
Greg


[pygame] Reverse Compiling

2007-08-07 Thread Ian Mallett
Hi,
I was backing up my files onto a CD when I ironically deleted an original
.py file for a module leaving the .pyc version.  My question here, is can
you reverse compile it?  I want to make some changes.
Thanks, Ian


Re: [pygame] Reverse Compiling

2007-08-07 Thread Luke Paireepinart

Ian Mallett wrote:

Hi,
I was backing up my files onto a CD when I ironically deleted an 
original .py file for a module leaving the .pyc version.

I don't really see how this is ironic.
  My question here, is can you reverse compile it?  I want to make 
some changes.

You can, but I hear it doesn't produce very manageable code.
What was the file you deleted?
-Luke