]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-28866: No type cache for types with specialized mro, invalidation is hard... 13590/head
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 26 May 2019 22:14:23 +0000 (15:14 -0700)
committerGitHub <noreply@github.com>
Sun, 26 May 2019 22:14:23 +0000 (15:14 -0700)
commitbfd0b7720196b9ff647cc33dafbd31a04496402c
tree27624afe606c757cdcee2f074226031b85e1b8a7
parentf3d909428c7c61ea32e8fbb9c8b48344e7904a53
[3.7] bpo-28866: No type cache for types with specialized mro, invalidation is hard. (GH-13157) (GH-13589)

* No type cache for types with specialized mro, invalidation is hard.

* FIX: Don't disable method cache custom types that do not implement mro().

* fixing implem.

* Avoid storing error flags, also decref.

* news entry

* Clear as soon as we're getting an error.

* FIX: Reference leak.
(cherry picked from commit 180dc1b0f4a57c3f66351568ae8488fa8576d7f0)

Co-authored-by: Julien Palard <julien@palard.fr>
https://bugs.python.org/issue28866
Misc/NEWS.d/next/Core and Builtins/2019-05-08-16-36-51.bpo-28866.qCv_bj.rst [new file with mode: 0644]
Objects/typeobject.c