Python (and me) getting confused finding keys

Zac Burns zac256 at gmail.com
Tue Dec 22 12:05:46 EST 2009


On Tue, Dec 22, 2009 at 8:56 AM, John <john at nurfuerspam.de> wrote:

> > another thread can remove the key prior to the has_key call; or perhaps
> >  edges isn't a real dictionary?
> >
>
> of course. But unless there is a way of using threading without being aware
> of
> it, this is not the case. Also, edges is definitely a dict (has been
> declared
> some lines before, and no obscure functions have been called in the
> meantime,
> just some adding to edges). Python would also fail on edges.keys() if edges
> wasn't a dict...
>
>
> cheers,
> john
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Perhaps e doesn't have a consistent hash value.

--
Zachary Burns
(407)590-4814
Aim - Zac256FL
Production Engineer (Digital Overlord)
Zindagi Games
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091222/24641900/attachment-0001.html>


More information about the Python-list mailing list