[issue8751] Threading and KeyError: 51

2010-05-18 Thread Vignesh
New submission from Vignesh vigne...@mail.med.upenn.edu: I have a python script which runs a particular script large number of times (for monte carlo purpose) and the way I have scripted it is that, I queue up the script the desired number of times it should be run then I spawn threads and

[issue8751] Threading and KeyError: 51

2010-05-18 Thread Mattias Nilsson
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

[issue8751] Threading and KeyError: 51

2010-05-18 Thread Raghuram Devarakonda
Raghuram Devarakonda draghu...@gmail.com added the comment: As suggested, please post in c.l.py or other forums. Open a bug here only if you are sure that there is a bug in Python. -- nosy: +draghuram resolution: - invalid status: open - closed ___