[Tutor] 2nd bonehead question...

Magnus Lycka magnus@thinkware.se
Sat Dec 21 17:57:03 2002


At 17:26 2002-12-21 -0500, GREENDAY31087@aol.com wrote:
>What is the difference(s) between py and pyc?


.py is for source files--the kind of file you write.

.pyc is a .py file compiled into byte-code, a binary
format that the python interpreter reads. These files
are created automatically when a python module is
imported, if there isn't already an updated .pyc file.

You could say that .py and .pyc in Python corresponds to
.java and .class in Java, if that means anything to you.


-- 
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se