From e203b4dd4e2ce24e18fbeb9db515b2bdbbb56bc5 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Fri, 22 Feb 2008 19:03:44 +0000 Subject: - Converted MAGICCOOKIE=object() to a little symbol implementation to ease object inspection and debugging --- lib/sqlalchemy/sql/operators.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/sqlalchemy/sql/operators.py') 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, -- cgit v1.2.1