Hello,

In the scope of a single session, are objects representing the same row of 
data uniqued? I ran multiple selects and received the same object back, so 
I suspect that they are uniqued. With that, is it safe to compare object 
references, e.g. when searching through a collection?

For example, a one-to-many relationship 
<http://docs.sqlalchemy.org/en/latest/orm/basic_relationships.html#one-to-many> 
maps to a list of many objects. Can I iterate over that list and safely 
compare object references instead of their content?

Thanks!

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to