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

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


On Sun, Jan 18, 2009 at 5:13 PM,  <dsblizzard at gmail.com> 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?

Cheers,
Chris

-- 
Follow the path of the Iguana...
http://rebertia.com



More information about the Python-list mailing list