.pyo Python bytecode
Other formats
| MIME type | application/x-python-bytecode |
|---|---|
| Description | Python bytecode |
| Category | Other 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; }.