[issue24246] mimetypes.guess_extension returns different values when init() is called several times

2015-05-20 Thread Emmanuel Gamby
Changes by Emmanuel Gamby e.ga...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24246 ___ ___ Python-bugs-list

[issue24246] mimetypes.guess_extension returns different values when init() is called several times

2015-05-20 Thread Emmanuel Gamby
New submission from Emmanuel Gamby: Hi, Following the principle of least astonishment, I would expect the function to return the same value. Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 Type help, copyright, credits or license for more information. import mimetypes