def ordered_dict_factory(colnames, rows):
 return [OrderedDict(zip(colnames, row)) for row in rows]

def ordered_dict_factory ( colnames , rows ) : return [ OrderedDict ( zip ( colnames , row ) ) for row in rows ]
like :meth:~cassandra .