Message331400
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. |
|
Date |
User |
Action |
Args |
2018-12-08 23:55:35 | steve.dower | set | recipients:
+ steve.dower, paul.moore, tim.golden, pmpp, zach.ware, danishprakash |
2018-12-08 23:55:35 | steve.dower | set | messageid: <1544313335.52.0.788709270274.issue35292@psf.upfronthosting.co.za> |
2018-12-08 23:55:35 | steve.dower | link | issue35292 messages |
2018-12-08 23:55:35 | steve.dower | create | |
|