From 9272ae4f77d670bd2ff4c55f50bf47ad374e8319 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 28 May 2020 16:14:11 -0400 Subject: Remove loader option cycle removed a reference cycle set up by loader options due to the attribute dictionary containing Load objects that reference that dictionary. Change-Id: Ie3159a084f819ae44ca4992b0dbe094fb69b2fa7 --- lib/sqlalchemy/orm/context.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/sqlalchemy/orm/context.py') diff --git a/lib/sqlalchemy/orm/context.py b/lib/sqlalchemy/orm/context.py index 09f3e7a12..5589f0e0c 100644 --- a/lib/sqlalchemy/orm/context.py +++ b/lib/sqlalchemy/orm/context.py @@ -117,11 +117,6 @@ class QueryContext(object): % ", ".join(compile_state._no_yield_pers) ) - def dispose(self): - self.attributes.clear() - self.load_options._refresh_state = None - self.load_options._lazy_loaded_from = None - class ORMCompileState(CompileState): class default_compile_options(CacheableOptions): -- cgit v1.2.1