def __insert_across(self, values):
        "Inserts values into new row while checking data types."
        row = {}
        for value, (index, name, data_type) in zip(values, self.__columns):
            assert isinstance(value, data_type), \
                'Wrong datatype: {} ({!r}, {!r})'.format(name, value, data_type)
            row[index] = value
        return row
Inserts values into new row while checking data types.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py