

def order_modified_iter(cursor, trim, sentinel):
    "\n    Yields blocks of rows from a cursor. We use this iterator in the special\n    case when extra output columns have been added to support ordering\n    requirements. We must trim those extra columns before anything else can use\n    the results, since they're only needed to make the SQL valid.\n    "
    for rows in iter((lambda : cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)), rows):
        (yield [r[:(- trim)] for r in rows])

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/models/sql/compiler.py order_modified_iter/VarMisuse@32/155 `sentinel`->`rows`