def __getattr__(self, column):
        "Returns a column from the row this instance in adapting."
        if self.__map is None:
            return self.__unmapped(column)
        if column in self.__map:
            return self.__row[self.__map[column]]
        new_map = {}
        column += '.'
        for name in self.__map:
            if name.startswith(column):
                new_map[name[len(column):]] = self.__map[name]
        assert new_map, 'Name did not match any known column: ' + repr(column)
        return type(self)(self.__row, new_map)
Returns a column from the row this instance in adapting.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py