pyc file problem
pythonhda at yahoo.com.replacepythonwithlinux
pythonhda at yahoo.com.replacepythonwithlinux
Fri Jan 30 10:10:27 EST 2004
You can also compile the .py to a python optimized file .pyo. That'll get rid of the comments.
Check out the "py_compile" module in the documentation.
The easiest way to do it would be to invoke python with the -O flag and import your module to generate the .pyo file.
On Fri, 30 Jan 2004 18:45:22 +0800
"Leo Yee" <surffirst at yahoo.com> wrote:
> Hi,
>
> I am programming a online game program. I use python as my game's script
> language. To avoid hacking and cheating I don't want anyone to read the
> python script file and find useful information for hacking the game.
>
> I know I can compile the '.py' file to '.pyc' file but I found that a normal
> text editor can read a lot of information from the '.pyc' file even those
> comments I wrote.
>
> My question is if there is a methond to compile the '.py' file into a state
> that there are no human readable strings.
>
> Thanks in advance.
>
> Leo Yee
>
>
>
>
More information about the Python-list
mailing list