Éric Araujo <mer...@netwok.org> added the comment:

The proposed patch does not solve the issue.  In the current API, there is no 
way to do it, so this bug requires a new feature.  I think it would involve a 
new dict, like preferred_extensions, which would be seeded with default values, 
like .jpg for image/jpeg and .txt for text/plain, and a few functions/methods 
to query the dict or add items.

----------
keywords:  -easy, patch
title: mimetypes.guess_extension('text/plain') == '.ksh' ??? -> Add preferred 
extensions for MIME types

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1043134>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to