def check_argument_range(low, high, parameter_name):
 def _in_range(value):
  value = int(value)
  if (not (low <= value < high)):
   print_error((u'\n** ERROR: khmer only supports %i <= %s < %i.\n' % (low, parameter_name, high)))
   sys.exit(1)
  else:
   return value
 return _in_range

def check_argument_range ( low , high , parameter_name ) : def _in_range ( value ) : value = int ( value ) if ( not ( low <= value < high ) ) : print_error ( ( u'\n** ERROR: khmer only supports %i <= %s < %i.\n' % ( low , parameter_name , high ) ) ) sys . exit ( 1 ) else : return value return _in_range
check if parameter value is in the range low to high .