This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients gry, r.david.murray, terry.reedy
Date 2010-12-19.02:38:35
SpamBayes Score 0.0044379844
Marked as misclassified No
Message-id <1292726316.54.0.604440304044.issue10730@psf.upfronthosting.co.za>
In-reply-to
Content
Separate issue: from the mimetypes doc ...
"MimeTypes.types_map 
Dictionary mapping filename extensions to MIME types. This is initially a copy of the global types_map defined in the module."

But on Windows, I get a *tuple*, not a dict, of two dicts. The first has just a few pairs
>>> mi.types_map[0]
{'.xul': 'text/xul', '.pic': 'image/pict', '.pict': 'image/pict', '.jpg': 'image/jpg', '.rtf': 'application/rtf', '.pct': 'image/pict', '.mid': 'audio/midi', '.midi': 'audio/midi'}
and the second about a hundred more. Is this a bug?
History
Date User Action Args
2010-12-19 02:38:45terry.reedysetrecipients: + terry.reedy, r.david.murray, gry
2010-12-19 02:38:36terry.reedysetmessageid: <1292726316.54.0.604440304044.issue10730@psf.upfronthosting.co.za>
2010-12-19 02:38:35terry.reedylinkissue10730 messages
2010-12-19 02:38:35terry.reedycreate