python _binary_ code

Chris Rebert clp2 at
Tue Jul 14 08:00:00 CEST 2009

On Mon, Jul 13, 2009 at 10:41 PM, sanju ps<sanu1267 at> wrote:
> Hi
>  Can anyone give me solution to create a python binary file (bytecode) other
> than pyc file .So my source code be secure.. I am working on ubuntu 9.04
> with python2.6.. I

PyInstaller ( will generate a
self-contained executable, but it won't hide the bytecode (which can
be decompiled w/ decompyle).
It's generally accepted to be impossible (or at least more trouble
than it's worth) to protect Python source.

for excellent and more detailed answers.


More information about the Python-list mailing list