14 lines
208 B
Python
14 lines
208 B
Python
# Bryan Schumaker (8/8/2010)
|
|
|
|
class Table(dict):
|
|
def __init__(self):
|
|
dict.__init__(self)
|
|
self.next_id = 0
|
|
|
|
|
|
def insert(self, tags):
|
|
id = self.next_id
|
|
self[id] = tags
|
|
self.next_id += 1
|
|
return id
|