Then if I understand correctly, I work with .py files and (should) run them as .pyc files?
On Thu, Apr 19, 2012 at 10:55 AM, Russel Winder <rus...@winder.org.uk>wrote: > 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.win...@ekiga.net > 41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@winder.org.uk > London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor