.pyc Python-bytecode
Overige formaten
| MIME-type | application/x-python-bytecode |
|---|---|
| Beschrijving | Python-bytecode |
| Categorie | Overige formaten |
| Andere extensies | .pyo |
Veelgestelde vragen
Wat is een .pyc-bestand?
Een .pyc-bestand is een formaat van het type „Python-bytecode” (MIME-type application/x-python-bytecode).
Waarmee open ik een .pyc-bestand?
Met het programma dat het bestand heeft gemaakt. Onder Linux toont xdg-mime query default met het MIME-type het standaardprogramma, en xdg-open opent het bestand daarmee.
Hoe herken je een echt .pyc-bestand?
Voor dit formaat is geen vaste signatuur aan het begin van het bestand vastgelegd; het wordt vooral aan de extensie herkend. Onder Linux en macOS toont file --mime-type example.pyc het vermoedelijke type.
Welk MIME-type hoort bij .pyc?
Het MIME-type is application/x-python-bytecode. In de Apache-webserver: AddType application/x-python-bytecode .pyc; in nginx: types { application/x-python-bytecode pyc; }.