]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39382: Avoid dangling object use in abstract_issubclass() (GH-18530)
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>
Sat, 22 Feb 2020 13:11:48 +0000 (15:11 +0200)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2020 13:11:48 +0000 (15:11 +0200)
commit1c56f8ffad44478b4214a2bf8eb7cf51c28a347a
treec2303c03737343e14f7720a97200bb007845ac7b
parenta025d4ca99fb4c652465368e0b4eb03cf4b316b9
bpo-39382: Avoid dangling object use in abstract_issubclass() (GH-18530)

Hold reference of __bases__ tuple until tuple item is done with, because by
dropping the reference the item may be destroyed.
Lib/test/test_isinstance.py
Misc/ACKS
Misc/NEWS.d/next/Core and Builtins/2020-02-18-01-40-13.bpo-39382.OLSJu9.rst [new file with mode: 0644]
Objects/abstract.c