[issue5868] mimetypes.MAGIC_FUNCTION initialization not thread-safe in Python 2.6.2

2009-04-28 Thread Alain Poirier
New submission from Alain Poirier alain.poir...@net-ng.com: In Python 2.6.2, the fix for the issue 5401 changed the way the mimetypes module is initialized. But now the initialization is not thread-safe : a thread can set ``inited`` to ``True`` and then be preempted before to overwrite the

[issue5868] mimetypes.MAGIC_FUNCTION initialization not thread-safe in Python 2.6.2

2009-04-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Already fixed in r72048. If you try the fix and find out it has some problems, please reopen the bug. -- nosy: +pitrou resolution: - duplicate status: open - closed superseder: - mimetypes.guess_type() hits recursion limit