How to use *.py modules instead of *.pyc?

Chris Rebert clp2 at
Mon Jan 19 02:20:29 CET 2009

On Sun, Jan 18, 2009 at 5:13 PM,  <dsblizzard at> wrote:
> How to use *.py modules instead of *.pyc or automatically recompile
> all modules each time I change *.py files?

IIRC, you shouldn't need to worry about this. Python checks the
modification times on the .py and .pyc files and if the .pyc is older,
it regenerates the .pyc from the .py; thus ensuring that the latest
version of the source file is always used.
What led you to conclude otherwise?


Follow the path of the Iguana...

More information about the Python-list mailing list