diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-02-22 19:03:44 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-02-22 19:03:44 +0000 |
commit | e203b4dd4e2ce24e18fbeb9db515b2bdbbb56bc5 (patch) | |
tree | 5e8127379e1ca1d72f4e4077d601a399bf6dd276 /lib/sqlalchemy/sql/operators.py | |
parent | b1c9082c9486887eaff3ccf95887a2618b939642 (diff) | |
download | sqlalchemy-e203b4dd4e2ce24e18fbeb9db515b2bdbbb56bc5.tar.gz |
- Converted MAGICCOOKIE=object() to a little symbol implementation to ease object inspection and debugging
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r-- | lib/sqlalchemy/sql/operators.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index 19e0c484c..e31d27075 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -5,8 +5,7 @@ from operator import and_, or_, inv, add, mul, sub, div, mod, truediv, \ lt, le, ne, gt, ge, eq - -from sqlalchemy.util import Set +from sqlalchemy.util import Set, symbol def from_(): raise NotImplementedError() @@ -74,9 +73,9 @@ def asc_op(a): _commutative = Set([eq, ne, add, mul]) def is_commutative(op): return op in _commutative - -_smallest = object() -_largest = object() + +_smallest = symbol('_smallest') +_largest = symbol('_largest') _PRECEDENCE = { from_:15, |