Steve Dower <steve.do...@python.org> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35292>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to