[sqlalchemy] Re: What's the use of expunge?

2009-02-26 Thread Michael Bayer
On Feb 26, 2009, at 1:29 AM, 一首诗 wrote: The document says: Expunge removes an object from the Session, sending persistent instances to the detached state, and pending instances to the transient state:

[sqlalchemy] Re: What's the use of expunge?

2009-02-26 Thread Wichert Akkerman
Previously Michael Bayer wrote: On Feb 26, 2009, at 8:21 AM, Wichert Akkerman wrote: What happens if you do not call expunge on it, but pickle the object in a cache, load it later and then merge it? the state of the newly unpickled object, that is the current value of its mapped

[sqlalchemy] Re: What's the use of expunge?

2009-02-26 Thread Michael Bayer
On Feb 26, 2009, at 10:27 AM, Wichert Akkerman wrote: Previously Michael Bayer wrote: On Feb 26, 2009, at 8:21 AM, Wichert Akkerman wrote: What happens if you do not call expunge on it, but pickle the object in a cache, load it later and then merge it? the state of the newly unpickled