Hello list<br><br>I'm not a newbie on python but I'm not an expert either and just found out that code like this gives the above exception.<br><br>        self.db={}<br>        self.db["foo"]=[1,2]<br>        self.db
["bar"]=[2,3]<br><br>I now undestand why this is giving me a problem and I think i'm using the wrong approach<br><br>first of all I'm trying to test some code which will have diferent backends so I'm doing a quick in memory structure that will let me know that the algoritms are ok.
<br><br>my data has the following constrains.<br><br>I have keywords (foo,bar,etc) and then values (1,2,3,etc.) now each keyword is unique and each value may or maynot be unique, although it should be unique but we won't enforce that.
<br><br>now one keywords may return 0 to n values which are all the values matching that certain keyword. something similar to a tagging system. We will never access the data based on values and each Source object has a method with the signature get(keyword) where keyword is a string. ohh and the values are all strings too. 
<br><br>does anyone has a good idea on how to implement this (for the test).<br><br>thanks.<br>