]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-1617161: Make the hash and equality of methods not depending on the value of...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 31 Jul 2018 06:18:24 +0000 (09:18 +0300)
committerGitHub <noreply@github.com>
Tue, 31 Jul 2018 06:18:24 +0000 (09:18 +0300)
commitac20e0f98d6727ba97a9575bfa2a11b2f6247c35
tree3b7938d610796051659b1b6fff27387a731c934c
parentc48e26dcadbff8620bb5881d3bd148fc8894d0ef
bpo-1617161: Make the hash and equality of methods not depending on the value of self. (GH-7848)

* The hash of BuiltinMethodType instances no longer depends on the hash
  of __self__. It depends now on the hash of id(__self__).
* The hash and equality of ModuleType and MethodWrapperType instances no
  longer depend on the hash and equality of __self__. They depend now on
  the hash and equality of id(__self__).
* MethodWrapperType instances no longer support ordering.
Lib/test/test_class.py
Lib/test/test_descr.py
Misc/NEWS.d/next/Core and Builtins/2018-06-21-21-42-15.bpo-1617161.tSo2yM.rst [new file with mode: 0644]
Objects/classobject.c
Objects/descrobject.c
Objects/methodobject.c