Message110410
OK, more specifically, here's the kind of situation where items in a set are mutable:
company = Session.query(Company).first()
# company.employees is a set()
company.employees
# each employee references the parent company
for e in company.employees:
assert e.company is company
So nothing is mutated relationally in this case. It's just a plain old bidirectional structure. If two objects are related via many-to-many, then you might have a set in both directions. I'm not sure if this specific situation produces the pickle bug, however, it's been awhile since I've seen which specific case causes the problem. But there are mutable items in a set in these examples and it doesn't seem unreasonable to me. |
|
Date |
User |
Action |
Args |
2010-07-16 02:05:33 | zzzeek | set | recipients:
+ zzzeek, rhettinger, belopolsky, grubert, jackdied, alexandre.vassalotti, schmir, eric.araujo |
2010-07-16 02:05:33 | zzzeek | set | messageid: <1279245933.93.0.0486710211332.issue9269@psf.upfronthosting.co.za> |
2010-07-16 02:05:31 | zzzeek | link | issue9269 messages |
2010-07-16 02:05:29 | zzzeek | create | |
|