def order_modified_iter(cursor, trim, sentinel):
 for rows in iter((lambda : cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)), sentinel):
  (yield [r[:(- trim)] for r in rows])

def order_modified_iter ( cursor , trim , sentinel ) : for rows in iter ( ( lambda : cursor . fetchmany ( GET_ITERATOR_CHUNK_SIZE ) ) , sentinel ) : ( yield [ r [ : ( - trim ) ] for r in rows ] )
yields blocks of rows from a cursor .