Re: Generating .pyo from .py

2005-06-20 Thread skn
Thanks a lot !! It works fine !! regards, skn "Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > skn wrote: > > Does the python compiler provide an option to generate a .pyo(optimized byte > > code file) from a .py (source file)? > > > > For generating .pyc I know that

Re: Generating .pyo from .py

2005-06-16 Thread Leif K-Brooks
skn wrote: > Does the python compiler provide an option to generate a .pyo(optimized byte > code file) from a .py (source file)? > > For generating .pyc I know that I only have to pass the source file name as > an argument to py_compile.py. py_compile.py checks __debug__ to decide whether to use

Re: Generating .pyo from .py

2005-06-16 Thread Maurice LING
say your code is "test.py" and you usually run it as "python test.py", then the "-O" option will generate .pyo files. That is "python -O test.py" Cheers maurice skn wrote: > Hello., > > Does the python compiler provide an option to generate a .pyo(optimized byte > code file) from a .py (source

Generating .pyo from .py

2005-06-15 Thread skn
Hello., Does the python compiler provide an option to generate a .pyo(optimized byte code file) from a .py (source file)? For generating .pyc I know that I only have to pass the source file name as an argument to py_compile.py. But for generating .pyo, I could not find anything. Any clues/help w