On Monday 13 July 2009 13:45:44 Shlomi Fish wrote: > > > 4. Hiding Code By Using .pyc's > > > ------------------------------ > > > > > > The python backend compiles the text-based Python code to bytecode, and > > > caches the result in .pyc files. My partner to the conversation argued > > > that he often uses these .pyc files to "hide" the source code from > > > people he's distributing it to them, so they will be unable to reverse > > > engineer it. > > > > > > I told him that with a symbolic language such as Python, such .pyc > > > files do not provide adequate "protection" as they contain the names of > > > identifiers and other detailed information on the code.
FWIW, when you ask Python to optimize (python -o) it generates .pyo files, which include significantly less symbols and make decompilation a little harder (besides performing better). Your conversation partnet might be interested. Shai. _______________________________________________ Python-il mailing list [email protected] http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
