15 lines
262 B
Python
15 lines
262 B
Python
|
# 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
|