def _CheckOffset(offset):
 return _CheckInteger(offset, 'offset', zero_ok=True, upper_bound=MAXIMUM_SEARCH_OFFSET)

def _CheckOffset ( offset ) : return _CheckInteger ( offset , 'offset' , zero_ok = True , upper_bound = MAXIMUM_SEARCH_OFFSET )
checks the offset in document list is an integer within range .