diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-12-27 15:02:31 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-12-30 14:07:18 -0500 |
commit | 04fbb9e63c098dd2de40b545eed210dfd93893ce (patch) | |
tree | f509e09f71c9a382b2d7934cf81262ad019df377 /lib/sqlalchemy/sql/traversals.py | |
parent | 9d4a58d35c53484a1de66396139fc34cd65f5be8 (diff) | |
download | sqlalchemy-04fbb9e63c098dd2de40b545eed210dfd93893ce.tar.gz |
Test for short term reference cycles and resolve as many as possible
Added test support and repaired a wide variety of unnecessary reference
cycles created for short-lived objects, mostly in the area of ORM queries.
Fixes: #5056
Change-Id: Ifd93856eba550483f95f9ae63d49f36ab068b85a
Diffstat (limited to 'lib/sqlalchemy/sql/traversals.py')
-rw-r--r-- | lib/sqlalchemy/sql/traversals.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/traversals.py b/lib/sqlalchemy/sql/traversals.py index 84a5623d3..68a3a0749 100644 --- a/lib/sqlalchemy/sql/traversals.py +++ b/lib/sqlalchemy/sql/traversals.py @@ -29,6 +29,8 @@ def compare(obj1, obj2, **kw): class HasCacheKey(object): _cache_key_traversal = NO_CACHE + __slots__ = () + def _gen_cache_key(self, anon_map, bindparams): """return an optional cache key. |