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

Chris Rebert clp2 at rebertia.com
Sun Jan 18 20:42:34 EST 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?
> Thank you in advance.

Also, just for the sake of completeness (since John and I have shown
that your real problem lies elsewhere), I happened to come across the
`compileall` module via a Planet Python blog, which mass-compiles
.py-s into .pyc-s:

http://blog.doughellmann.com/2009/01/pymotw-compileall.html

Cheers,
Chris

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



More information about the Python-list mailing list