Doing this to test equality between ORM objects:
a = sess1.query(Thing).get(1)
b = sess2.query(Thing).get(1) # different session
Was somewhat surprised to find that:
a == b gives False
Is this by design? Do I need to add a custom __eq__ method to my declarative
Base classes to make a==b come out True?
Thanks,
Michael Hipp
--
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
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.