[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: Ensure strong ref to obj before calling persistent_
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2016-10-03 16:46:44
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/728ce8cc480d/ Changeset: 728ce8cc480d Branch: master User: zzzeek Date: 2016-10-03 16:25:42+00:00 Summary: Ensure strong ref to obj before calling persistent_to_deleted, others Add checks in spots where state.obj() might be late-GC'ed before we get a chance to call the event. There may be more cases of these which we should address as they come up. The Session should always be maintaining strong refs to objects that have pending operations left on them, so for these cases we need to ensure that ref remains long enough for the event to be called. Change-Id: I1a7c7bc57130acc11f54ad55924af2e36ac75101 Fixes: #3808 Affected #: 4 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |