A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-August/090931.html below:

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

[Python-Dev] standard library mimetypes module pathologically broken? [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".

--David
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4