Commit 70afaefa authored by Jeremy Hylton's avatar Jeremy Hylton

Avoid leaving cyclic trash around.

parent cbdf8b8c
...@@ -224,6 +224,10 @@ cache, so our first reference to it doesn't return a ghost. ...@@ -224,6 +224,10 @@ cache, so our first reference to it doesn't return a ghost.
>>> r1["b"]._p_state >>> r1["b"]._p_state
-1 -1
>>> cn1._transaction = None
(See the Cleanup section below.)
Late invalidation Late invalidation
----------------- -----------------
...@@ -301,7 +305,6 @@ Connection and Transaction. The Transaction has an __del__ method, ...@@ -301,7 +305,6 @@ Connection and Transaction. The Transaction has an __del__ method,
which prevents the cycle from being collected. There's no API for which prevents the cycle from being collected. There's no API for
clearing the Connection's local transaction. clearing the Connection's local transaction.
>>> cn._transaction = None
>>> cn1._transaction = None >>> cn1._transaction = None
>>> cn2._transaction = None >>> cn2._transaction = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment