def _limit(lower, upper):
 if ((lower < 0) or (upper <= 0) or (upper < lower)):
  raise Exception('Illegal argument to _limit')
 return (unicod('{%d,%d}') % (lower, upper))

def _limit ( lower , upper ) : if ( ( lower < 0 ) or ( upper <= 0 ) or ( upper < lower ) ) : raise Exception ( 'Illegal argument to _limit' ) return ( unicod ( '{%d,%d}' ) % ( lower , upper ) )
returns a regular expression quantifier with an upper and lower limit .