def zset_score_pairs(response, **options):
 if ((not response) or (not options['withscores'])):
  return response
 score_cast_func = options.get('score_cast_func', float)
 it = iter(response)
 return list(izip(it, imap(score_cast_func, it)))

def zset_score_pairs ( response , ** options ) : if ( ( not response ) or ( not options [ 'withscores' ] ) ) : return response score_cast_func = options . get ( 'score_cast_func' , float ) it = iter ( response ) return list ( izip ( it , imap ( score_cast_func , it ) ) )
if withscores is specified in the options .