[issue8751] Threading and KeyError: 51

Mattias Nilsson report at bugs.python.org
Tue May 18 17:41:34 CEST 2010


Mattias Nilsson <mattias.o.nilsson at 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 <report at bugs.python.org>
<http://bugs.python.org/issue8751>
_______________________________________


More information about the Python-bugs-list mailing list