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 steve.dower
Recipients danishprakash, paul.moore, pmpp, steve.dower, tim.golden, zach.ware
Date 2018-12-08.23:55:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544313335.52.0.788709270274.issue35292@psf.upfronthosting.co.za>
In-reply-to
Content
So, you're suggesting doing a lazy mimetypes.init() on Windows and not on the others? There's no reason to have such a semantic difference between platforms, and since the whole point of mimetypes.init() is to avoid initializing on import, it makes the most sense to avoid initializing on import.

In fact, it probably makes the *most* sense for http.server to have its own overrides, but otherwise fall back to the mimetypes function when needed. Bypassing the public API doesn't really add anything other than fragility.
History
Date User Action Args
2018-12-08 23:55:35steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, pmpp, zach.ware, danishprakash
2018-12-08 23:55:35steve.dowersetmessageid: <1544313335.52.0.788709270274.issue35292@psf.upfronthosting.co.za>
2018-12-08 23:55:35steve.dowerlinkissue35292 messages
2018-12-08 23:55:35steve.dowercreate