Binary Python file.

Philip Swartzleonard starx at pacbell.net
Wed Feb 6 04:21:41 EST 2002


Lukasz Pawelczyk || Tue 05 Feb 2002 01:46:09a:

> Hello,
> 
> Is there a possibility to make a binary python file?
> I would like to hide the code in unix environment.

Well, the compile function listed here will give you a pyc file...
http://www.python.org/doc/current/lib/module-pycompile.html#l2h-3816

...but from what i've heard it's only a little bit better then say, rot-13, 
for keeping people out of your source. It will probably keep out the 
slightly curious, the incapable, and those of us who just don't care what's 
in there :)

-- 
Philip Sw "Starweaver" [rasx] :: www.rubydragon.com



More information about the Python-list mailing list