.PYC file — Python bytecode
Compiled Python cache file tied to interpreter bytecode versions; inspect metadata without importing unknown code.
Technical information
| Extension | .pyc |
|---|---|
| Category | Developer |
| MIME type hint | application/octet-stream |
| PRONOM PUID | fmt/939 |
Evidence for .pyc
- PRONOM record
- Python Compiled File (fmt/939)
- Version on this record
- 2.7
- External extensions
- .pyc
- Same extension in the registry
- 15
- Record provenance
- Digital Preservation Department / The National Archives
Compare your file with .pyc
Read the file on this device to compare byte evidence with the registry and show any competing candidates. The result is a lead for investigation.
Registry evidence and possible variants
The registry associates .pyc with 15 record(s). These are version or format candidates, not confirmation of the contents of your file.
| PUID | Recorded format | Version | Signature references |
|---|---|---|---|
| fmt/939 | Python Compiled File | 2.7 | 1281 |
| fmt/940 | Python Compiled File | 3.4 | 1282 |
| fmt/1106 | Python Compiled File | 2.0 | 1489 |
| fmt/1107 | Python Compiled File | 2.1 | 1490 |
| fmt/1108 | Python Compiled File | 2.2 | 1491 |
| fmt/1109 | Python Compiled File | 2.3 | 1492 |
| fmt/1110 | Python Compiled File | 2.4 | 1493 |
| fmt/1111 | Python Compiled File | 2.5 | 1494 |
| fmt/1112 | Python Compiled File | 2.6 | 1495 |
| fmt/1113 | Python Compiled File | 3.0 | 1496 |
| fmt/1114 | Python Compiled File | 3.1 | 1497 |
| fmt/1115 | Python Compiled File | 3.2 | 1498 |
View all 15 registry candidates
FileTypeKit includes 15 fixed-byte rule(s) associated with this extension. A match is a candidate only; the full DROID signature engine is not implemented.
Source: PRONOM/DROID V125; registry names and version labels are retained as published. DROID V125 · Open Government Licence v2.0
How to open or inspect this file
- Keep the original and use File Identifier to inspect the contents. Extensions alone are not conclusive.
- Application to research (verify exact version): Python bytecode inspection tools. Check the version and official compatibility documentation.
- Verify the output on a separate copy; never execute unfamiliar files just to inspect them.
Common questions
Can I open this file in FileTypeKit?
File Identifier and SHA-256 can inspect bytes, but a dedicated renderer is not promised for this format.
Will changing the extension convert my file?
No. A filename change leaves the underlying bytes unchanged. Use a compatible converter and keep the original.