This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author corona10
Recipients corona10, vstinner
Date 2020-06-02.06:42:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The current mimetypes.guess_type API guesses file types based on file extensions.

However, there is a more accurate method which is calling sniffing.

Some languages like Go( provides mimesniff API and the method is implemented based on a standard way which is published on

I have a sample code implementation this
But the API interface will be changed to mimetypes API.

So I would like to provide mimetypes.sniff API rather than a new stdlib package like mimesniff.
Date User Action Args
2020-06-02 06:42:45corona10setrecipients: + corona10, vstinner
2020-06-02 06:42:45corona10setmessageid: <>
2020-06-02 06:42:45corona10linkissue40841 messages
2020-06-02 06:42:44corona10create