diff --git a/pytools/datatable.py b/pytools/datatable.py index 6493412ea31682c0bb3cc5ddf59a0e20f5eda57e..6c9de70f5f4c40652c7e23482c4e509e2c5df4e4 100644 --- a/pytools/datatable.py +++ b/pytools/datatable.py @@ -1,3 +1,9 @@ +from pytools import Record +class Row(Record): + pass + + + class DataTable: """An in-memory relational database table.""" @@ -94,8 +100,7 @@ class DataTable: if len(filtered) > 1: raise RuntimeError, "more than one matching entry for get()" - from pytools import Record - return Record(dict(zip(self.column_names, filtered.data[0]))) + return Row(dict(zip(self.column_names, filtered.data[0]))) def clear(self): del self.data[:]