Re: Extracting bytecode out of frozen programs

2009-02-08 Thread Martin v. Löwis
> get_frozen_object exists at least since 1.5.2, but has never been > documented, and the source code says it's obsolete. Should be documented > now? Any alternative? get_frozen_object has been marked obsolete in 1997. Whether it can be un-deprecated should be discussed on python-dev; I can't gues

Re: Extracting bytecode out of frozen programs

2009-02-08 Thread Gabriel Genellina
En Sun, 08 Feb 2009 19:19:12 -0200, Martin v. Löwis escribió: Is there a way of extracting them so they are importable in a python shell? Try imp.get_frozen_object. Ouch... this looks better than using ctypes. get_frozen_object exists at least since 1.5.2, but has never been documented

Re: Extracting bytecode out of frozen programs

2009-02-08 Thread Gabriel Genellina
En Sun, 08 Feb 2009 18:38:22 -0200, David Kraeutmann escribió: Hello, I need to extract the modules/packages out of a frozen script. It was compiled using Python 2.2.3 and the standard freeze.py. I managed to get a shell after execution using PYTHONINSPECT=y and find the start of a module/pac

Re: Extracting bytecode out of frozen programs

2009-02-08 Thread Martin v. Löwis
> Is there a way of extracting them so they are importable in a python shell? Try imp.get_frozen_object. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Extracting bytecode out of frozen programs

2009-02-08 Thread David Kraeutmann
Hello, I need to extract the modules/packages out of a frozen script. It was compiled using Python 2.2.3 and the standard freeze.py. I managed to get a shell after execution using PYTHONINSPECT=y and find the start of a module/package using a hex editor (I got the sta, but these modules don't seem