def _CheckLimit(limit):
 return _CheckInteger(limit, 'limit', zero_ok=False, upper_bound=MAXIMUM_DOCUMENTS_RETURNED_PER_SEARCH)

def _CheckLimit ( limit ) : return _CheckInteger ( limit , 'limit' , zero_ok = False , upper_bound = MAXIMUM_DOCUMENTS_RETURNED_PER_SEARCH )
checks the limit of documents to return is an integer within range .