def _is_num_param(names, values, to_float=False):
 fun = ((to_float and float) or int)
 out_params = []
 for (name, val) in zip(names, values):
  if (val is None):
   out_params.append(val)
  elif isinstance(val, (int, long, float, string_type)):
   try:
    out_params.append(fun(val))
   except ValueError as e:
    raise VdtParamError(name, val)
  else:
   raise VdtParamError(name, val)
 return out_params

def _is_num_param ( names , values , to_float = False ) : fun = ( ( to_float and float ) or int ) out_params = [ ] for ( name , val ) in zip ( names , values ) : if ( val is None ) : out_params . append ( val ) elif isinstance ( val , ( int , long , float , string_type ) ) : try : out_params . append ( fun ( val ) ) except ValueError as e : raise VdtParamError ( name , val ) else : raise VdtParamError ( name , val ) return out_params
return numbers from inputs or raise vdtparamerror .