[New-bugs-announce] [issue34340] mimetypes libmagic compatibility

bpypy report at bugs.python.org
Sun Aug 5 12:48:48 EDT 2018

New submission from bpypy <python at bzx2.com>:

An obvious use case for mimetypes would be to check if file has correct mimetype, by getting the type with some of libmagic wrappers, and then comparing to guess_type result.

But it seems that they don't always match. One example:
applicattion/rar vs application/x-rar

Kills half the usefullness of the module.

components: Extension Modules
messages: 323160
nosy: bpypy
priority: normal
severity: normal
status: open
title: mimetypes libmagic compatibility
type: enhancement

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list