Not all .PY files are compiled to .PYC during execution

Tony C cappy2112 at
Fri Feb 13 03:49:38 CET 2004

After using Python for just over a year now, I've noticed something
for the first time.

I've written an application in one .PY file, and a class definition in
another.PY file. (The application instantiates one instance of the

When I run my application as in


the file which contains the class definition (, is compiled
to a .PYC file, but the application ( is not.

Why is the application file not compiled to .PYC  ?


More information about the Python-list mailing list