[File] Python Bytecode
Christos Zoulas
christos at zoulas.com
Sat Feb 15 19:12:26 UTC 2020
I just added it...
christos
> On Feb 13, 2020, at 1:43 PM, Steve Grubb <sgrubb at redhat.com> wrote:
>
> Hello,
>
> I have one last observation that I'd like to share. In checking the system
> for executables that match mime-type application/octet-stream, I'm finding
> that all python bytecode files are detected as application/octet-stream.
>
> file --mime-type -b /usr/lib64/python3.7/site-packages/__pycache__/audit.cpython-37.pyc
> application/octet-stream
>
> I'm scratching my head, though. Because I notice that magic/Magdir/python has
> all the magic numbers to correctly identify all shipping versions of python.
>
> $ file -b /usr/lib64/python3.7/site-packages/__pycache__/audit.cpython-37.pyc
> python 3.7 byte-compiled
>
> I'm curious why it has octet-stream rather than application/x-bytecode.python?
>
> Best Regards,
> -Steve
>
>
> --
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20200215/ae9a9a20/attachment.asc>
More information about the File
mailing list