.pyo Python bytecode

Other formats

MIME typeapplication/x-python-bytecode
DescriptionPython bytecode
CategoryOther formats
Other extensions.pyc

Frequently asked questions

What is a .pyo file?

A .pyo file is a “Python bytecode” (MIME type application/x-python-bytecode).

How do I open a .pyo file?

With the program that created the file. On Linux, xdg-mime query default with the MIME type shows the default application, and xdg-open opens the file with it.

How can you tell a genuine .pyo file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.pyo shows the guessed type.

Which MIME type belongs to .pyo?

The MIME type is application/x-python-bytecode. In the Apache web server: AddType application/x-python-bytecode .pyo; in nginx: types { application/x-python-bytecode pyo; }.

Nearby entries