diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-12-09 00:00:48 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-12-09 00:00:48 +0000 |
| commit | 6bc016a76205aefad3ba6f21a89053a318eeb88e (patch) | |
| tree | fe5e5bb8aff3371a0a7781aa69e4e2c7ee31ce0d /lib/sqlalchemy/sql | |
| parent | 180569992337435140549c71d67cd1b0729d89e7 (diff) | |
| download | sqlalchemy-6bc016a76205aefad3ba6f21a89053a318eeb88e.tar.gz | |
documentation patch for [ticket:1354]
Diffstat (limited to 'lib/sqlalchemy/sql')
| -rw-r--r-- | lib/sqlalchemy/sql/expression.py | 10 |
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) |
