On Sun, Jan 31, 2010 at 9:46 AM, Ken G. <beach...@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.

http://www.python.org/doc/1.5.1p1/tut/node43.html

HTH,
Wayne
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to