Dictionary membership check failure
zac256 at gmail.com
Wed Nov 5 20:34:44 CET 2008
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?
Aim - Zac256FL
More information about the Python-list