Dictionary membership check failure

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Zac Burns

    Dictionary membership check failure

    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.Dictionar yType
    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
Working...