[Python-Dev] Retrieve an arbitrary element from a setwithoutremoving it

Yuvgoog Greenle ubershmekel at gmail.com
Fri Nov 6 00:52:54 CET 2009


On Fri, Nov 6, 2009 at 1:17 AM, James Y Knight <foom at fuhm.net> wrote:

>
> Is this thread over yet?
>
>
Sorry, I just had to point out that pop/add has a side effect that would be
apparent on a set that multiple threads access - it loses an item and then
gets it back. Sounds like a sleeper race condition that's going to be rare
but extremely hard to find if it does occur. Crooked as a gil.

--yuv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20091106/11ac81fd/attachment.htm>


More information about the Python-Dev mailing list