precompiled scripts?

Pieter Claerhout Pieter_Claerhout at CreoScitex.com
Fri May 11 03:09:36 EDT 2001


You can also use freeze to create an executable version... No way to
disassemble that code.

Pieter


-----Original Message-----
From: Stephen Hansen [mailto:news at myNOSPAM.org]
Sent: Friday, May 11, 2001 12:15 AM
To: python-list at python.org
Subject: Re: precompiled scripts?


    When you first run a script, Python produces a bytecode-compiled version
of the script which has the extention of '.pyc'. That would serve your
purposes, but note that I believe they have to be running the same version
of Python as you, because the specifics of bytecode have a tendency to
change between versions.

    Note that this is not perfect. It can be disassembled with the standard
library 'dis' module, and I believe there is a python decompiler out there.

--S
(replace 'NOSPAM' with 'seraph' to respond in email)

"Ben" <h0444nid at rz.hu-berlin.de> wrote in message
news:Pine.GSO.4.20.0105102103140.18611-100000 at amor...
> hi,
> i need to write an applet but don't want the source to be visible. so i
> need to know, wether it is possible to use a kind of precompiled binary of
> a python script or not. i know, that it is possible with perl an tcl/tk,
> but i'd better like to use python because of its graphical functions.
>
> thanx,
>
> ben
>
> p.s.: please reply also per pm to:
>   dietze at freepage.de
>


-- 
http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list