def dictfetchmany(cursor, number):
 desc = cursor.description
 for row in cursor.fetchmany(number):
  (yield _dict_helper(desc, row))

def dictfetchmany ( cursor , number ) : desc = cursor . description for row in cursor . fetchmany ( number ) : ( yield _dict_helper ( desc , row ) )
returns a certain number of rows from a cursor as a dict .