micropython/table.py | raw changeset files shortlog |
1.1 --- a/micropython/table.py Tue Dec 11 00:55:23 2007 +0100 1.2 +++ b/micropython/table.py Sun Jan 13 02:14:46 2008 +0100 1.3 @@ -159,6 +159,12 @@ 1.4 self.names = self.names or list(self.attributes) 1.5 return self.names 1.6 1.7 + def get_index(self, name): 1.8 + 1.9 + "Return the index of the given 'name'." 1.10 + 1.11 + return self.attribute_names().index(name) 1.12 + 1.13 def as_matrix(self): 1.14 1.15 """