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.

作者 apoirier
收信人 apoirier, benjamin.peterson
日期 2009-04-28.14:51:54
SpamBayes Score 0.00032274154
Marked as misclassified
Message-id <1240930317.8.0.75459471021.issue5868@psf.upfronthosting.co.za>
In-reply-to
内容
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
functions guess_type(), guess_extension() ...

With such a partial initialization, the next thread will raise an 
excessive recursion exception when calling one of this functions.

A fix could be to wrap ``mimetypes.init()`` with a thread lock.
历史
日期 用户 动作 参数
2009-04-28 14:51:57apoirier修改recipients: + apoirier, benjamin.peterson
2009-04-28 14:51:57apoirier修改messageid: <1240930317.8.0.75459471021.issue5868@psf.upfronthosting.co.za>
2009-04-28 14:51:56apoirier链接issue5868 messages
2009-04-28 14:51:54apoirier创建