]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't apply sets or similar to objects in IdentitySet
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 May 2020 00:27:24 +0000 (20:27 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 May 2020 00:33:17 +0000 (20:33 -0400)
commit35552e88ca798b809c7391bae11890c1557a3dd2
treef1a689be9de573d6ba885a0921c5b123fbaa8ff5
parent00d40775b73cf94fa5d1b765dac1e600e93e172f
Don't apply sets or similar to objects in IdentitySet

Modified the internal "identity set" implementation, which is a set that
hashes objects on their id() rather than their hash values, to not actually
call the ``__hash__()`` method of the objects, which are typically
user-mapped objects.  Some methods were calling this method as a side
effect of the implementation.

Fixes: #5304
Change-Id: I0ed8762f47622215a54dcad9f210377b1becf8e8
doc/build/changelog/unreleased_13/5304.rst [new file with mode: 0644]
lib/sqlalchemy/util/_collections.py
test/base/test_utils.py