def rowset(results):

    return set([tuple(row) for row in results])
Converts the results of sql execution into a plain set of column tuples.
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/testing/util.py/rowset