diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-07-22 17:05:14 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-07-22 17:05:14 -0400 |
commit | 4cfb2b6174ccbe5d87e3d5aea7dd9745aed0aec6 (patch) | |
tree | 9913e2912e1511536d28dd20b5fcc2565e1457c8 /lib/sqlalchemy/sql/operators.py | |
parent | faa9b2c8da63aa116579fc6c43a30ce479b92ac2 (diff) | |
download | sqlalchemy-4cfb2b6174ccbe5d87e3d5aea7dd9745aed0aec6.tar.gz |
some doc fixes
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r-- | lib/sqlalchemy/sql/operators.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index 9adab2acf..89681fa6a 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -114,7 +114,7 @@ class Operators(object): is a bitwise AND of the value in ``somecolumn``. :param operator: a string which will be output as the infix operator - between this :class:`.ClauseElement` and the expression passed to the + between this element and the expression passed to the generated function. :param precedence: precedence to apply to the operator, when @@ -183,8 +183,8 @@ class custom_op(object): class ColumnOperators(Operators): """Defines comparison and math operations. - By default all methods call down to - :meth:`Operators.operate` or :meth:`Operators.reverse_operate` + By default, all methods call down to + :meth:`.operate` or :meth:`.reverse_operate`, passing in the appropriate operator function from the Python builtin ``operator`` module or a SQLAlchemy-specific operator function from @@ -199,15 +199,16 @@ class ColumnOperators(Operators): def eq(a, b): return a == b - A SQLAlchemy construct like :class:`.ColumnElement` ultimately + The core column expression unit :class:`.ColumnElement` overrides :meth:`.Operators.operate` and others - to return further :class:`.ClauseElement` constructs, + to return further :class:`.ColumnElement` constructs, so that the ``==`` operation above is replaced by a clause construct. The docstrings here will describe column-oriented behavior of each operator. For ORM-based operators - on related objects and collections, see :class:`.RelationshipProperty.Comparator`. + on related objects and collections, see + :class:`.RelationshipProperty.Comparator`. """ |