[issue1538778] pyo's are not overwritten by different optimization levels

Barry A. Warsaw report at bugs.python.org
Mon Sep 13 17:16:01 CEST 2010

Barry A. Warsaw <barry at python.org> added the comment:

How is this different than overwriting pyc files, except that there's probably less of a use case for pycs?  IOW, if we were to do something about this, it should probably be an option to ignore any existing pyc (or pyo if -O is used) files and write new ones.  It *could* be a command line switch, but honestly I think "find ... -exec rm {}" is just as good.

I'd probably prefer adding a switch to Lib/py_compile's main to remove pyo/pyc's first or some such, but I'd still be -0 on supporting this directly in Python.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list