[Python-Dev] mimetypes patch #554192
Walter Dörwald
walter@livinglogic.de
Thu, 15 Aug 2002 19:58:16 +0200
Patch http://www.python.org/sf/554192 adds a function to
mimetypes.py that returns all known extensions for a mimetype,
e.g.
>>> import mimetypes
>>> mimetypes.guess_all_extensions("image/jpeg")
['.jpg', '.jpe', '.jpeg']
Martin v. Loewis and I were discussing whether it would make
sense to make the helper method add_type (which is used for
adding a mapping between one type and one extension) visible
on the module level.
Any comments?
Bye,
Walter Dörwald