diff options
author | Walter Dörwald <walter@livinglogic.de> | 2002-09-06 16:15:58 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2002-09-06 16:15:58 (GMT) |
commit | 5ccaf8f1298628bea5a4c7442413f2901914f1bc (patch) | |
tree | 218c01a700b8053931a5748029331cb756801656 /Misc/NEWS | |
parent | 2c519981fb7b0992afe8168bb7781e6ed8d49531 (diff) | |
download | cpython-5ccaf8f1298628bea5a4c7442413f2901914f1bc.zip cpython-5ccaf8f1298628bea5a4c7442413f2901914f1bc.tar.gz cpython-5ccaf8f1298628bea5a4c7442413f2901914f1bc.tar.bz2 |
Apply diff3.txt (plus additional documentation)
from SF patch http://www.python.org/sf/554192
This adds two new functions to mimetypes:
guess_all_extensions() which returns a list of all known
extensions for a mime type, and add_type() which adds one
mapping between a mime type and an extension.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -321,6 +321,11 @@ Extension modules Library +- mimetypes has two new functions: guess_all_extensions() which + returns a list of all known extensions for a mime type, and + add_type() which adds one mapping between a mime type and + an extension to the database. + - New module: sets, defines the class Set that implements a mutable set type using the keys of a dict to represent the set. There's also a class ImmutableSet which is useful when you need sets of sets |