◐ Shell
clean mode source ↗

Message 293261 - Python tracker

I suggest to discuss the non-determinism problem in Issue 1043134 (about determining a canonical extension for each content type). I understood this bug (Issue 4963) is about the behaviour of repeated initialization of the same instance of mimetypes.

BTW an ordered dictionary wouldn’t help with duplicate dictionary keys; see guess_extension("application/excel").