]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Look for dict builtin in InstanceState cleanup
authorRomuald Brunet <romuald@gandi.net>
Mon, 17 Sep 2018 15:44:50 +0000 (11:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Sep 2018 17:57:41 +0000 (13:57 -0400)
commitad8cbcceb340ce19c51611e8f484ad37049dd06e
treeb0b00affa35d9a1da75f85e4707bd5836cb67e0d
parent538589826f5c1ee2d85aa971030be08d4babaef3
Look for dict builtin in InstanceState cleanup

Added a check within the weakref cleanup for the :class:`.InstanceState`
object to check for the presence of the ``dict`` builtin, in an effort to
reduce error messages generated when these cleanups occur during interpreter
shutdown.  Pull request courtesy Romuald Brunet.

Change-Id: If27b94d50a32767de8b4147c09fa423f71596004
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/472
(cherry picked from commit 505941259e4e7181a176e74b3de0b7d96c444e29)
doc/build/changelog/unreleased_12/pr472.rst [new file with mode: 0644]
lib/sqlalchemy/orm/state.py