Dictionary membership check failure

Zac Burns zac256 at gmail.com
Wed Nov 5 14:34:44 EST 2008


Greetings,

I have a dictionary that seems to be misbehaving on a membership
check. This test code:

1: import types
2: assert myDict.__class__ is types.DictionaryType
3: assert (key in myDict.keys()) == (key in myDict)

raises AssertionError on line three. The dictionary items are all of
type (string, function).

There are no threads.

Python version is 2.5.1, I cannot go to 2.5.2 right now because of a
module that we use that depends on 2.5.1 (maya standalone), but does
anyone know if this bug has been fixed in 2.5.2 or if I can give
anyone more information to help fix this bug?

--
Zachary Burns
Aim - Zac256FL
Production Engineer
Zindagi Games



More information about the Python-list mailing list