summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-12-09 00:00:48 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-12-09 00:00:48 +0000
commit6bc016a76205aefad3ba6f21a89053a318eeb88e (patch)
treefe5e5bb8aff3371a0a7781aa69e4e2c7ee31ce0d /lib/sqlalchemy/sql
parent180569992337435140549c71d67cd1b0729d89e7 (diff)
downloadsqlalchemy-6bc016a76205aefad3ba6f21a89053a318eeb88e.tar.gz
documentation patch 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 b7708c338..a87ef9bd1 100644
--- a/lib/sqlalchemy/sql/expression.py
+++ b/lib/sqlalchemy/sql/expression.py
@@ -1588,11 +1588,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)