Author r.david.murray
Recipients barry, benhoyt, brian.curtin, dlchambers, ishimoto, r.david.murray, sayap, terry.reedy, tim.golden
Date 2012-12-07.13:33:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354887224.55.0.18677282731.issue15207@psf.upfronthosting.co.za>
In-reply-to
Content
I will note that on unix the user is also free to update the machine's mime types registry (that's more than half the point of the mimetypes module).  Usually this is only done by installed software...as I believe is the case on Windows as well.

That said, there should be a way to explicitly bypass this loading of local data for a program that wishes to use only the Python supplied types.  And indeed, this is possible: just pass an empty list of filenames to init.  This bypasses the windows registry lookup.  (Note that this could be better documented...it is not made explicit that an empty list is different from not specifying a list or specifying it as None, but it is).
History
Date User Action Args
2012-12-07 13:33:44r.david.murraysetrecipients: + r.david.murray, barry, terry.reedy, ishimoto, tim.golden, sayap, brian.curtin, benhoyt, dlchambers
2012-12-07 13:33:44r.david.murraysetmessageid: <1354887224.55.0.18677282731.issue15207@psf.upfronthosting.co.za>
2012-12-07 13:33:44r.david.murraylinkissue15207 messages
2012-12-07 13:33:44r.david.murraycreate