#NEWLINE# def tuple_factory( colnames , rows ) : #NEWLINE# #INDENT# '\n    Returns each row as a tuple\n\n    Example::\n\n        >>> from cassandra.query import tuple_factory\n        >>> session = cluster.connect(\'mykeyspace\')\n        >>> session.row_factory = tuple_factory\n        >>> rows = session.execute("SELECT name, age FROM users LIMIT 1")\n        >>> print rows[0]\n        (\'Bob\', 42)\n\n    .. versionchanged:: 2.0.0\n        moved from ``cassandra.decoder`` to ``cassandra.query``\n    ' #NEWLINE# return colnames