[Tutor] Complied Python program...

Wayne Werner waynejwerner at gmail.com
Sun Jan 31 17:20:37 CET 2010

On Sun, Jan 31, 2010 at 9:46 AM, Ken G. <beachkid at insightbb.com> wrote:

> In using Geany, I have the ability to complied a Python program.  For
> example, I can complied "program.py" to program.pyc."
> What is the purpose of a complied Python program?  Can it be transported to
> another computer without Python installed as run as it is?  For example, use
> "run program.pyc" in Windows?  Currently, I am using Ubuntu 9.04, a Linux
> OS.

As far as I know - it speeds up loading time slightly, and no.

When you say "import foo" it first looks for the .pyc file in the local
directory, then the path. It will also look for the .py file if it can't
find a .pyc.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100131/5ef8ab12/attachment-0001.htm>

More information about the Tutor mailing list