How to compile a python script to *.pyo

A. Lloyd Flanagan alloydflanagan at attbi.com
Tue Apr 8 16:14:55 CEST 2003


Peter Hansen <peter at engcorp.com> wrote in message news:<3E8B53BA.DBB0C84C at engcorp.com>...
...
> 
> Generally this doesn't work.  You have to import
> a module (or use other techniques) for it to be compiled.
> Python does not store a .pyc or .pyo file for the main 
> module, perhaps surprisingly.
> 
> -Peter

Yes, that's surprising.  Does anyone happen to know why this is the
case?  It doesn't make sense to me.




More information about the Python-list mailing list