[Tutor] .py vs .pyc
Max S.
maxskywalker1 at gmail.com
Thu Apr 19 16:57:37 CEST 2012
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 <russel at 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.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 --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120419/0bcd31cc/attachment.html>
More information about the Tutor
mailing list