how to get rid of pyc files ?
gagsl-py2 at yahoo.com.ar
Thu Jun 4 08:31:24 CEST 2009
[please keep the discussion on the list]
> may be python need a parameter to regenerate .pyo/pyc explicit ,not
> depending on magic number and modification time.
> but i just wander if you simply just clear all .pyc than generate in
> one system manually, can than program run without error in another
Yes, you can always remove the .pyc files before starting, forcing a
recompile. Also, see the compileall module.
Provided that both systems use the same Python version, you can precompile
.pyc files on one and copy them to the other. Even more, some people
deploy only .pyc files.
More information about the Python-list