[EMAIL PROTECTED] wrote:
> 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)

its possible the oldmap and newmap have the same hash key, in which case
clear_mapper(oldmap) removes the new mapper from the dictionary.

if you show me a test case I can more clearly see why.

generally, all this switching around and clearing out mappers wasnt the
primary intended usage of all this stuff so theres not a lot of test cases
for it.  its possible that I rely too heavily on caching mappers in a
dictionary anyway since it creates complexity, still something i want to
look at further.




-------------------------------------------------------
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

Reply via email to