David Hess <[EMAIL PROTECTED]> added the comment:
Confirmed the presence of this same problem in the source code of
parsermodule.c in branches release25-maint and release26-maint.
--
nosy: +david_k_hess
versions: +Python 2.5, Python 2.6
___
David Hess added the comment:
Concur with @sivert – the result of guess_extension() is non-deterministic
between mimetypes module initialization.
$ python
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or
David Hess added the comment:
And the underlying problem causing this:
$ python -c 'import
mimetypes;print(mimetypes.guess_all_extensions("image/jpeg"))'
['.jpeg', '.jpg', '.jpe']
$ python -c 'import
mimetypes;print(mimetypes.guess