This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pombredanne
Recipients X-Istence, a.badger, barry, christian.heimes, dhess, l0nwlf, martin.panter, maxking, pitrou, pombredanne, r.david.murray, sascha_silbe, siona, sivert, steve.dower, terry.reedy, wichert, wodny
Date 2021-01-09.15:22:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The changes introduced by this ticket in are problematic.

I discovered this from having tests failing when testing on Python 3.7 and up

The bug is that calling mimetypes.init(files) will NOT use my files, but instead use both my files and knownfiles.
This was not the case before as knownfiles would be ignored as expected when I provide my of files list.

This is a breaking API change IMHO and  introduces a buggy unstability : even if I want to ignore knownfiles by providing my list of of files, knownfiles will always be added and this results in erratic and buggy behaviour as the content of "knownfiles" is completely random based on the OS version and else. 

The code I am using is here

I think we should reopen to fix (or create a new ticket)
Date User Action Args
2021-01-09 15:22:29pombredannesetrecipients: + pombredanne, barry, terry.reedy, pitrou, christian.heimes, wichert, a.badger, r.david.murray, siona, sascha_silbe, l0nwlf, X-Istence, martin.panter, steve.dower, wodny, maxking, sivert, dhess
2021-01-09 15:22:29pombredannesetmessageid: <>
2021-01-09 15:22:29pombredannelinkissue4963 messages
2021-01-09 15:22:28pombredannecreate