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.

作者 grahamd
收信人 belopolsky, brett.cannon, christian.heimes, grahamd, gvanrossum, ncoghlan, pitrou
日期 2010-07-14.22:36:03
SpamBayes Score 0.0012198754
Marked as misclassified
Message-id <1279146969.89.0.055637673447.issue9260@psf.upfronthosting.co.za>
In-reply-to
内容
How is this going to deal with cyclical imports where different threads could import at the same time different modules within that cycle? I need to look through the proposed patch and work out exactly what it does, but am concerned about whether this approach would cause the classic deadlock problem if not done right?

FWIW, this concept of a lock per module is what I used in the mod_python module importer when it was rewritten. I would have to go look back over that code and see how the way the concept is being implemented differs, but there was one remaining potential race condition in the mod_python code which could in rare instances cause a problem. I never did get around to fixing it. Anyway, what I did learn was that this approach isn't necessarily as simple as it may seem so it will need some really good analysis on whatever solution is developed to ensure subtle problems don't come up.
历史
日期 用户 动作 参数
2010-07-14 22:36:09grahamd修改recipients: + grahamd, gvanrossum, brett.cannon, ncoghlan, belopolsky, pitrou, christian.heimes
2010-07-14 22:36:09grahamd修改messageid: <1279146969.89.0.055637673447.issue9260@psf.upfronthosting.co.za>
2010-07-14 22:36:04grahamd链接issue9260 messages
2010-07-14 22:36:03grahamd创建