[Tutor] .py vs .pyc
Russel Winder
russel at winder.org.uk
Thu Apr 19 16:55:58 CEST 2012
On Thu, 2012-04-19 at 10:47 -0400, Max S. wrote:
> 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?
pyc files are just internal PVM files. Although they appear on the
filestore visible to the programmer, just leave management of them to
the PVM. Humans deal only with .py files -- or possibly pyx if you are
using Cython.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/tutor/attachments/20120419/7b642827/attachment.pgp>
More information about the Tutor
mailing list