summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-12-09 00:01:35 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-12-09 00:01:35 +0000
commita8024fffce6493e4a784c1dfa2f63e12471bb681 (patch)
tree7d6c2c91ead361ccec1fe88ce41d8beda3ad16c4 /lib/sqlalchemy/sql
parent121f701c36c155dadbf7b496a1207c5a8ba95650 (diff)
downloadsqlalchemy-a8024fffce6493e4a784c1dfa2f63e12471bb681.tar.gz
merge r6551 of trunk for [ticket:1354]
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/expression.py10
1 files changed, 8 insertions, 2 deletions
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)