[Python-Dev] standard library mimetypes module pathologically broken?

R. David Murray rdmurray at bitdance.com
Sat Aug 1 00:33:20 CEST 2009

On Fri, 31 Jul 2009 at 15:17, Brett Cannon wrote:
>>  * It creates a _default_mime_types() function which declares a
>>    bunch of global variables, and then immediately calls
>>    _default_mime_types() below the definition. There is literally
>>    no difference in result between this and just putting those
>>    variables at the top level of the file, so I have no idea why
>>    this function exists, except to make the code more confusing.
> It could potentially be used for testing, but that's a guess.

regrtest calls it from dash_R_cleanup as part of "clear[ing]
assorted module caches".


More information about the Python-Dev mailing list