[Python-Dev] standard library mimetypes module pathologically broken? (original) (raw)
R. David Murray rdmurray at bitdance.com
Sat Aug 1 00:33:20 CEST 2009
- Previous message: [Python-Dev] standard library mimetypes module pathologically broken?
- Next message: [Python-Dev] standard library mimetypes module pathologically broken?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 31 Jul 2009 at 15:17, Brett Cannon wrote:
* It creates a defaultmimetypes() function which declares a bunch of global variables, and then immediately calls defaultmimetypes() 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
- Previous message: [Python-Dev] standard library mimetypes module pathologically broken?
- Next message: [Python-Dev] standard library mimetypes module pathologically broken?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]