From a8024fffce6493e4a784c1dfa2f63e12471bb681 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 9 Dec 2009 00:01:35 +0000 Subject: merge r6551 of trunk for [ticket:1354] --- lib/sqlalchemy/sql/expression.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index cf08ec195..a1ebb179f 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -1506,11 +1506,17 @@ class _CompareMixin(ColumnOperators): somecolumn * 5 - operator - a string which will be output as the infix operator between + + :param operator: a string which will be output as the infix operator between this ``ClauseElement`` and the expression passed to the generated function. + This function can also be used to make bitwise operators explicit. For example:: + + somecolumn.op('&')(0xff) + + is a bitwise AND of the value in somecolumn. + """ return lambda other: self.__operate(operator, other) -- cgit v1.2.1