On Jan 24, 2006, at 4:29 PM, Michael Bayer wrote:
but show me what youre trying to do again, a little more simply, so i can see what youre looking for.
hi mike, thanks as always for your response. i unfortunately haven't had a chance to isolate some of the issues that i'm currently having into a simple test case, but i do have one quick question. i'm a bit unclear on why the order of statements matter between: mapping.clear_mapper(oldmap) newmap = mapper(C, t, is_primary=True) and newmap = mapper(C, t, is_primary=True) mapping.clear_mapper(oldmap) the former does what i expect, but the second doesn't ... at first blush (to me) it seems like the function of the two statements are mostly orthogonal, and so i was getting a bit baffled. at most i expected the semantic differences to be that in the first case, oldmap is gone by the time newmap is defined, so everything is normal, while in the second case, there needs to be a "tell oldmap and C that oldmap isn't the primary mapper anymore" thing - but since oldmap is then promptly removed, i may have wasted a few cycles, but the end result (i thought) would be the same. it's probably a simple misunderstanding on my part, but any insight you might offer would be great. thx,d ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Sqlalchemy-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

