def _between_impl(expr, op, cleft, cright, **kw):
 return BinaryExpression(expr, ClauseList(_check_literal(expr, operators.and_, cleft), _check_literal(expr, operators.and_, cright), operator=operators.and_, group=False, group_contents=False), op, negate=(operators.notbetween_op if (op is operators.between_op) else operators.between_op), modifiers=kw)

def _between_impl ( expr , op , cleft , cright , ** kw ) : return BinaryExpression ( expr , ClauseList ( _check_literal ( expr , operators . and_ , cleft ) , _check_literal ( expr , operators . and_ , cright ) , operator = operators . and_ , group = False , group_contents = False ) , op , negate = ( operators . notbetween_op if ( op is operators . between_op ) else operators . between_op ) , modifiers = kw )
see :meth: .