[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???
report at bugs.python.org
Sun Nov 21 20:18:34 CET 2010
Chris Lambacher <chris at kateandchris.net> added the comment:
There is already a method which returns all the extensions. What is required is a flag (or separate dict) which provides a canonical extension. The questions is whether it is sufficient to rely on the default provided mimetypes for the default in the face of mimetypes read out of the mimetypes files or windows registry.
I don't see a way to fix the bug, without also providing an API to "pick the winner" for those cases that are not provided in the default list.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list