# Bryan Schumaker (8/8/2010) class Table(dict): def __init__(self): dict.__init__(self) self.next_id = 0 def insert(self, tag): id = self.next_id self[id] = (tag.artist, tag.album, tag.title) self.next_id += 1 print id, self.next_id return id