what is a .pyo file?
Benoit Dupire
bdupire at seatech.fau.edu
Wed Jul 12 10:25:36 EDT 2000
Yes! .pyo files contain stripped of line numbers, assertions, and other debugging
information. Therefore they run slightly faster.
Benoit.
Kalle Svensson wrote:
> On 23 Jun 2000, Venkatesh Prasad Ranganath wrote:
>
> > what are the contents of .pyo file? When is it generated? What is it used for?
>
> It's optimized byte code, generated by importing a module or using
> py_compile.compile() in a python process run with the -O command line
> option. The advantages of the .pyo over the .pyc file is just that it's
> optimized and thus runs faster. I guess... :)
>
> HTH,
> Kalle Svensson
More information about the Python-list
mailing list