Not all .PY files are compiled to .PYC during execution
Tony C
cappy2112 at yahoo.com
Thu Feb 12 21:49:38 EST 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
class.)
When I run my application as in
python myapp.py
the file which contains the class definition (class.py), is compiled
to a .PYC file, but the application (myapp.py) is not.
Why is the application file not compiled to .PYC ?
thanks
More information about the Python-list
mailing list