def set_options(pool_or_cursor,row_instance):
  "for connection-level options that need to be set on Row instances"
  # todo: move around an Options object instead
  for option in ('JSON_READ',): setattr(row_instance,option,getattr(pool_or_cursor,option,None))
  return row_instance
def set_options ( pool_or_cursor , row_instance ) : for option in ( 'JSON_READ' , ) : setattr ( row_instance , option , getattr ( pool_or_cursor , option , None ) ) return row_instance
for connection-level options that need to be set on Row instances