Hi.

I suggest that the attached patch be applied to trunk. I was working
on a small database-comparison tool which used "!=" between two
RowProxy objects, and it took me a little while to realize that it was
not behaving equivalently to "==" negated.

-- 
Knut Aksel Røysland

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Property changes on: lib/sqlalchemy/sql
___________________________________________________________________
Name: svn:ignore
   + *.pyc


Index: lib/sqlalchemy/engine/base.py
===================================================================
--- lib/sqlalchemy/engine/base.py	(revision 3887)
+++ lib/sqlalchemy/engine/base.py	(working copy)
@@ -1244,6 +1244,9 @@
                 (other == tuple([self.__parent._get_col(self.__row, key)
                                  for key in xrange(len(self.__row))])))
 
+    def __ne__(self, other):
+        return not self.__eq__(other)
+
     def __repr__(self):
         return repr(tuple(self))
 

Reply via email to