can I delete one of *.py *.pyc *.pyo in /usr/lib/python2.3 ?
Pierre Barbier de Reuille
pierre.barbier at cirad.fr
Sat Aug 20 11:02:02 EDT 2005
Lucas Raab a écrit :
> Miernik wrote:
>
[...]
>
> You can delete any two of the three and you shouldn't run into any
> problems. However, the .py files are the source code and .pyc and .pyo
> are compiled Python files. The .pyc and .pyo files will load faster
> because they are compiled. Also, if you keep the .py files and then
> execute them, .pyc files will be generated. In short, I would keep the
> .pyc files and delete the others.
>
As I said in my other post, if you ever run python using the "-O" and
have neither the .py nor the .pyo file, it won't load the module (even
if the .pyc is present ...)
Pierre
More information about the Python-list
mailing list