[Tutor] .pyc files and executables?
Thu, 16 Aug 2001 10:45:13 +0100
> > What I want to know is this: If I run myprogram.py, which starts up
> > the interpreter, will Python see myprogram.pyc there and use it
> > instead of reparsing the code in myprogram.py?
> If I'm not mistaken, that's precisely what will happen.
I don't think so, AFAIK it will always run the script you specify but
if that script imports a module it will use the compiled module.
I guess the definitive answer can only be found in the source again!
I don't know if you can run pyc files directly, that might work...