summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2002-09-06 16:15:58 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2002-09-06 16:15:58 (GMT)
commit5ccaf8f1298628bea5a4c7442413f2901914f1bc (patch)
tree218c01a700b8053931a5748029331cb756801656 /Misc
parent2c519981fb7b0992afe8168bb7781e6ed8d49531 (diff)
downloadcpython-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')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index b877703..d08bc34 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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