running python 2 vs 3

Marko Rauhamaa marko at pacujo.net
Thu Mar 20 13:47:10 EDT 2014


Mark H Harris <harrismh777 at gmail.com>:

> If you wanted to you could run your python scripts from the .pyc file
> alone. In other words, you may import as long as the .pyc file exists
> and the source does not need to be there. Some folks use this (not
> recommended) trick to hide or obfuscate their source from their
> users).

I've seen it done, but at least in those Python 2 days the pyc format
changed between minor releases of Python, so Python itself had to be
shipped with the pyc files.


Marko



More information about the Python-list mailing list