when the Session.is_active is True.
[ticket:2241]
+ - Identity map .discard() uses dict.pop(,None)
+ internally instead of "del" to avoid KeyError/warning
+ during a non-determinate gc teardown [ticket:2267]
+
- Fixed regression in new composite rewrite where
deferred=True option failed due to missing
import [ticket:2253]
def discard(self, state):
st = dict.get(self, state.key, None)
if st is state:
- dict.__delitem__(self, state.key)
+ dict.pop(self, state.key, None)
self._manage_removed_state(state)
def prune(self):
if obj is not None:
st = attributes.instance_state(obj)
if st is state:
- dict.__delitem__(self, state.key)
+ dict.pop(self, state.key, None)
self._manage_removed_state(state)
def prune(self):