def _offset_or_limit_clause(element, name=None, type_=None):
 if (element is None):
  return None
 elif hasattr(element, '__clause_element__'):
  return element.__clause_element__()
 elif isinstance(element, Visitable):
  return element
 else:
  value = util.asint(element)
  return _OffsetLimitParam(name, value, type_=type_, unique=True)

def _offset_or_limit_clause ( element , name = None , type_ = None ) : if ( element is None ) : return None elif hasattr ( element , '__clause_element__' ) : return element . __clause_element__ ( ) elif isinstance ( element , Visitable ) : return element else : value = util . asint ( element ) return _OffsetLimitParam ( name , value , type_ = type_ , unique = True )
convert the given value to an "offset or limit" clause .