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.

Author pitrou
Recipients brett.cannon, ncoghlan, pitrou
Date 2010-07-13.19:05:29
SpamBayes Score 2.5228983e-05
Marked as misclassified No
Message-id <1279047931.75.0.287450849516.issue9251@psf.upfronthosting.co.za>
In-reply-to
Content
The import lock is lacking tests that it functions properly.

Coming up with a way of checking it was unexpectedly hard. I finally managed to write a script which quite reliably fails if you patch Python/import.c to not take the import lock. The script relies on garbage collection trickery to release the GIL at arbitrary moments.
It should probably be converted to an unit test.
History
Date User Action Args
2010-07-13 19:05:32pitrousetrecipients: + pitrou, brett.cannon, ncoghlan
2010-07-13 19:05:31pitrousetmessageid: <1279047931.75.0.287450849516.issue9251@psf.upfronthosting.co.za>
2010-07-13 19:05:30pitroulinkissue9251 messages
2010-07-13 19:05:30pitroucreate