diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2016-05-03 22:47:23 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2016-05-03 22:47:23 +0300 |
commit | 49d12142b37dc5ec117a00849f92a503506a08ab (patch) | |
tree | 28e6e60ba36ae89c209b03359565690d5add3204 /lib/sqlalchemy/ext/hybrid.py | |
parent | bde46e33593805584c7c0dedb3a666909fb67888 (diff) | |
download | sqlalchemy-pr/266.tar.gz |
Spelling fixespr/266
Diffstat (limited to 'lib/sqlalchemy/ext/hybrid.py')
-rw-r--r-- | lib/sqlalchemy/ext/hybrid.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/ext/hybrid.py b/lib/sqlalchemy/ext/hybrid.py index bbf386742..077df2c02 100644 --- a/lib/sqlalchemy/ext/hybrid.py +++ b/lib/sqlalchemy/ext/hybrid.py @@ -124,7 +124,7 @@ Defining Expression Behavior Distinct from Attribute Behavior Our usage of the ``&`` and ``|`` bitwise operators above was fortunate, considering our functions operated on two boolean values to return a new one. In many cases, the construction of an in-Python -function and a SQLAlchemy SQL expression have enough differences that +function and an SQLAlchemy SQL expression have enough differences that two separate Python expressions should be defined. The :mod:`~sqlalchemy.ext.hybrid` decorators define the :meth:`.hybrid_property.expression` modifier for this purpose. As an @@ -416,7 +416,7 @@ previous ``CaseInsensitiveComparator`` class with a new "Label to apply to Query tuple results" Above, the ``CaseInsensitiveWord`` object represents ``self.word``, -which may be a SQL function, or may be a Python native. By +which may be an SQL function, or may be a Python native. By overriding ``operate()`` and ``__clause_element__()`` to work in terms of ``self.word``, all comparison operations will work against the "converted" form of ``word``, whether it be SQL side or Python side. @@ -765,7 +765,7 @@ class hybrid_property(interfaces.InspectionAttrInfo): return self def expression(self, expr): - """Provide a modifying decorator that defines a SQL-expression + """Provide a modifying decorator that defines an SQL-expression producing method.""" self.expr = expr |