]> 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:29 +0000 (13:57 -0400)
commit505941259e4e7181a176e74b3de0b7d96c444e29
tree7ec7a57c631ff17f611a50883a0bac1eff3b3fc1
parent67a2cd92295bef55d914a5c560b4cead5d456837
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
doc/build/changelog/unreleased_12/pr472.rst [new file with mode: 0644]
lib/sqlalchemy/orm/state.py