Martin v. Löwis <mar...@v.loewis.de> added the comment:

The patch is not thread-safe. If two threads where to do the same thing 
simultaneously, they might (simultaneously) both determine that the lock is not 
installed, and then one would overwrite the lock of the other, leading exactly 
to the situation that the patch is meant to prevent.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7672>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to