[Tutor] .py vs .pyc

Max S. maxskywalker1 at gmail.com
Thu Apr 19 16:47:53 CEST 2012


Could anyone tell me why I should use a .pyc file rather than a .py?  After
doing some research, I have found that a .py file is first precompiled and
then run, while a .pyc file is already precompiled and is simply run.  But
unless I'm mistaken, it seems that a .pyc is no faster or better than a .py
file.  When should I use a .py, and when should I use a .pyc?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120419/a93eff6e/attachment.html>


More information about the Tutor mailing list