Mattias Nilsson <mattias.o.nils...@gmail.com> added the comment: 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. ---------- nosy: +Mattias.Nilsson _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8751> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com