[issue6626] show Python mimetypes module some love

Jacob Rus report at bugs.python.org
Sun Aug 2 22:43:48 CEST 2009


Jacob Rus <jacobolus at gmail.com> added the comment:

This version (#4) switches to expressing the default types as a list of 
tuples instead of as a dict, so that we can include duplicate rows so that 
"reverse" type -> extension lookups will behave properly, once we start 
changing the actual content of the defaults.

The types_map and common_types dictionaries (aliases to the singleton 
MimeTypes object's types_map property) have been left behaving as before 
for backwards compatibility.

The tests still pass.

----------
Added file: http://bugs.python.org/file14632/mimetypes4.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6626>
_______________________________________


More information about the Python-bugs-list mailing list