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 Mattias.Nilsson
Recipients Mattias.Nilsson, Vignesh.K
Date 2010-05-18.15:41:32
SpamBayes Score 0.00058324495
Marked as misclassified No
Message-id <1274197294.46.0.179598846608.issue8751@psf.upfronthosting.co.za>
In-reply-to
Content
Correct me if I'm wrong, but you seem to be creating a new lock object for each iteration in the loop?
If other threads should be blocked, they must be using the same lock object and you can't create new ones for each time you want to write something to the file.

This doesn't seem to be a Python bug at all, but instead a problem in your implementation. It might be better to post this at stackoverflow.com or somewhere similar.
History
Date User Action Args
2010-05-18 15:41:34Mattias.Nilssonsetrecipients: + Mattias.Nilsson, Vignesh.K
2010-05-18 15:41:34Mattias.Nilssonsetmessageid: <1274197294.46.0.179598846608.issue8751@psf.upfronthosting.co.za>
2010-05-18 15:41:32Mattias.Nilssonlinkissue8751 messages
2010-05-18 15:41:32Mattias.Nilssoncreate