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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4